New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PiHole container does not start on UDMPSE #321
Comments
Im having the same issue, and from what I can tell when the 10-dns.sh is running not everything in the system is ready, like the /run/dnsmasq.conf.d isnt a valid path yet |
seems the /run/dnsmasq.conf.d/ directory is missing at that initial moment the startup script is ran, and I suspect other key components are also not ready yet. I suspect things are happening out of order than the script expects to be ready by the time its fired off on the UDMP-SE. I by no means understand everything going on here but came to this bandaid by adding in some troubleshooting echos and narrowed it down to things missing at the time of run. what I have done here is likely a bandaid job but ... I modified the 10-dns.sh after line 32 and inserted the following
This tells the script to wait till this directory exists before moving forward so my 10-dns now looks like
|
so the dnsmasq stuff is there for allowing conditional forwarding, where does the UDMPSE keep it's dnsmasq confs? |
Its the same location /run/dnsmasq.conf.d/ ... but it seems when the script gets fired off at boot it doesn't exist yet. the UDMP-SE seems to regenerate that directory on boot. That's why I wrote that logic to monitor the path location, wait for it to exist, and then resume the script. but now there is a new problem... my SE just updated to Unifi OS 2.3.14 last night and podman did not survive the upgrade. I'm hoping the startup scripts on boot portion survived. The answer might be to have a startup script at the front check/wait till all required locations like the dnsmasq.conf directory to exist. then kick off an initialization script to reinstall all our required bits like podman. |
@dadealus I have following bash script which runs on boot to create symlinks so that podman can run after update.
So, instead of installing podman, I just have symlinks to all the files which get recreated on boot. Let me know if you need any help getting this working, I had my challanges getting pi-hole working on my UDMPSE but seems to be working smoothly now. |
@maggarwal The artifact I downloaded from https://github.com/boostchicken-dev/udm-utilities/actions/runs/2014794526 only had a |
@amomchilov I just created them myself, following are each of them. policy.json
storage.conf
docker.conf
|
I followed instructions pretty precisely, then had to fiddle a bit - honestly not sure what all I ended up needing to do. Had to modify the systemd unit file for udm-onboot to match #316
The behavior that I'm experiencing is that on boot (unclean reboot?) of the UDM, the container fails to start despite the on-boot script running.
Manually starting the container, or manually restarting the systemd unit allows the container to start correctly.
The text was updated successfully, but these errors were encountered: