Hi jphil,
I have the same problem but with a different setup. I run Pi-Hole with portainer.
Each time I restart It keeps looping exactly like described, trace is the same.
Until I find a solution, I have a dirty workaround: before restart, I delete
/home/pi/pihole/pihole folder on my raspberry Pi host wich is /etc/pihole in my portainer/container config.
Cheers
Hi, I guess I had a problem similar to yours. Unfortunately, I won't help you, because I have no idea how I solved it.
At that time, I was solving problems with noexec and I tried everything possible and impossible.
I know this probably won't solve your problem, but here is my installation command:
docker run --detach \
--name pihole2 \
--restart always \
--volume /etc/localtime:/etc/localtime:ro \
--volume /srv/dev-disk-by-label-Zaloha/AppData/pihole2/etc-pihole:/etc/pihole \
--volume /srv/dev-disk-by-label-Zaloha/AppData/pihole2/etc-dnsmasq.d:/etc/dnsmasq.d \
--cap-add NET_ADMIN \
--dns=127.0.0.1 \
--dns=1.1.1.1 \
--env "DNS1=1.1.1.1" \
--env "DNS2=1.0.0.1" \
--env "ServerIP=192.168.1.10" \
--env "DNSMASQ_LISTENING=all" \
--env "WEBPASSWORD=test" \
--env "TZ=Europe/Prague" \
pihole/pihole
I had to create the etc-pihole and etc-dnsmasq.d folders manually.
I'm a beginner with Linux, so I guess I won't help you either. But if I could help in some way, write how and I will try to find out on my installation.
PS: my system runs on raspbian, openmediavault and portainer
This is a list of permissions in my Pihole configuration folders:
root@OMV:/srv/dev-disk-by-label-Zaloha/AppData/pihole# ls -l *
etc-dnsmasq.d:
total 4
-rw-r--r--+ 1 root root 1434 May 6 06:03 01-pihole.conf
etc-pihole:
total 20028
-rw-rw-rw-+ 1 root root 18 May 5 21:22 GitHubVersions
-rw-rw-rw-+ 1 root root 313 Apr 30 22:05 adlists.list
-rw-rw-rw-+ 1 root root 0 May 6 06:05 black.list
-rw-rw-rw-+ 1 root root 0 May 1 10:43 blacklist.txt
-rw-rw-rw-+ 1 root root 596 May 6 06:02 dns-servers.conf
-rw-rw-rw-+ 1 root root 1893873 May 6 06:05 gravity.list
-rw-------+ 1 root root 1707424 May 6 06:04 list.0.raw.githubusercontent.com.domains
-rw-------+ 1 root root 594673 Apr 30 22:05 list.1.mirror1.malwaredomains.com.domains
-rw-------+ 1 root root 638705 Apr 30 22:05 list.2.sysctl.org.domains
-rw-------+ 1 root root 613 Apr 30 22:05 list.3.s3.amazonaws.com.domains
-rw-------+ 1 root root 43616 Apr 30 22:05 list.4.s3.amazonaws.com.domains
-rw-rw-rw-+ 1 root root 1893873 May 6 06:05 list.preEventHorizon
-rw-rw-rw-+ 1 root root 47 May 6 06:05 local.list
-rw-rw-rw-+ 1 root root 20 May 6 10:20 localbranches
-rw-rw-rw-+ 1 root root 40 May 6 10:20 localversions
-rw-r--r-- 1 openmediavault-webgui spi 0 Apr 30 22:05 pihole-FTL.conf
-rw-r--r--+ 1 root root 13684736 May 6 10:25 pihole-FTL.db
-rwxrwxrwx 1 openmediavault-webgui spi 0 Apr 30 22:05 regex.list
-rw-rw-rw-+ 1 root root 470 May 6 06:03 setupVars.conf
-rw-rw-rw-+ 1 root root 470 May 6 06:02 setupVars.conf.update.bak
-rw-rw-rw-+ 1 root root 0 May 1 10:31 whitelist.txt
The container runs as root. In the web interface pihole:
User / Group: root / root
PS: My entire docker has a changed location (it is also installed on the external drive and not on the OS drive). If you have docker installed with the OS, then it probably won't be a problem.
Hey Vejv-cz
Thanks for sharing your permission setup.
I will have a look and compare with my setup...
What I dont get is that I m using portainer (it helps me to avoid dirty hands with docker) in a very common way, nothing specific, just one volume, 2 folders and few env variables.... How can my permissions be different between the first and the second start.
Will also ditch portainer and replace it by a "standard" docker implementation.
Cheers