I have exact the same issue:
2025-02-21 20:08:00.655 UTC [58M] ERROR: getrandom() failed in generate_password()
2025-02-21 20:08:00.655 UTC [58M] ERROR: Failed to generate CLI password hash
Hardware:
Synology DS1517+
- CPU INTEL Atom C2538 x86 architecture
- OS Linux version 3.10.108 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 SMP Fri Mar 24 00:28:41 CST 2023
In portainer I have used these for compose:
services:
pihole:
image: pihole/pihole
container_name: pi-hole
network_mode: host
security_opt:
- no-new-privileges:false
restart: on-failure:5
volumes:
- /volume1/docker/pihole/dnsmasq.d:/etc/dnsmasq.d:rw
- /volume1/docker/pihole/pihole:/etc/pihole:rw
environment:
TZ: europe/brussels
FTLCONF_webserver_api_password: pihole
FTLCONF_webserver_port: 8181
FTLCONF_debug_api: 'true'
DNSMASQ_USER: root # root is required for Synology NAS'ses
PIHOLE_UID: 1027
PIHOLE_GID: 101
cap_add:
- SYS_TIME
- SYS_NICE