Closed DreiPixel closed 9 months ago
Is this a fresh installation?
Send me the unbound log file located at /opt/unbound/etc/unbound/unbound.log
inside the container.
Also try this solution: https://github.com/origamiofficial/docker-pihole-unbound/issues/21#issuecomment-1913541536
the log is completely empty. also tried the solution you suggested. when i try to restart it fails now at this "Unable to create new database /etc/pihole/gravity.db_temp"
Tried fresh install without the volumes?
it stopped compaining about unable to create new database but still wont start. Current docker compose file looks like this.
version: '3.8'
services:
pihole:
image: rlabinc/pihole-unbound:latest
ports:
- "80:80/tcp"
- "443:443/tcp"
- "192.168.3.203:53:53/tcp"
- "192.168.3.203:53:53/udp"
environment:
- TZ=${TIMEZONE}
- WEBPASSWORD=${WEBPASSWORD}
# This below is just Docker Swarm stuff
deploy:
replicas: 1
placement:
constraints: [node.labels.pihole == true ]
restart_policy:
condition: on-failure
max_attempts: 3
Share the docker log?
_pihole-unbound_pihole.1.zdf27tczpcn3418nrce1w0lrd_logs.txt this is the complete log it gives me.
uh i also tried with the exact same docker compose file the "old" image cbcrowe/pihole-unbound:latest. and that works fine but it uses a old pihole version.
It seems something is wrong with the database. Can you run the container with your main compose file but without the Docker Swarm stuff and check if it works? If this issue is related to Docker Swarm then I'm afraid I can't help you out.
Also, send me the FTL.log
and FTL.log.1
from /var/log/pihole/
inside the container along with the complete docker log.
ok i got it to work on certain conditions.
New Containers will ALWAYS crash for me no matter what with or without the swarm stuff (and Docker swarm starts always starts new containers)
if i try to start a existing container again with "docker compose up" when the container has already crashed once it will start fine.
there is a pihole-1 | [1706568999] unbound[239:0] warning: unbound is already running as pid 259.
line in the log when it has started fine.
with docker compose up --force-recreate it will always crash.
Edit: just Tested with with a Fresh Raspberry pi with DietPi installed. Same thing as above. New Containers will always Crash once. after the container is restarted it will run fine.
As I can't recreate this issue on my end and you've found a fix, I'm closing this issue.
As I can't recreate this issue on my end and you've found a fix, I'm closing this issue.
no i havent found a fix for docker swarm since containers are always recreated resulting in a crash no matter what. i just decided that i wont use this repo and used another that works fine.
This is a: Run Issue
Details
I tried to run this Docker image on my Docker Swarm and it fails with this error message in the Logs:
the Normal Pihole Docker image Runs fine. What is also noticed that the pihole folder i use gets the permission changed from the usual default i give it to 999:lxd which im pretty sure the normal image doesnt. also had it stuck hard on the unbound.sh once and the container wouldn't get killed.
Related Issues
How to reproduce the issue
Environment data
docker-compose.yml contents, docker run shell command, or paste a screenshot of any UI based configuration of containers here
services: pihole: image: rlabinc/pihole-unbound:latest