Macvlan is not persisting and PiHole container does not startup after reboot

Please follow the below template, it will help us to help you!

If you are Experiencing issues with a Pi-hole install that has non-standard elements (e.g you are using nginx instead of lighttpd, or there is some other aspect of your install that is customised) - please use the Community Help category.

Expected Behaviour:

Macvlan and pihole container should be up and running after a reboot.

Actual Behaviour:

After reboot, ifconfig does not show macvlan nor is the pihole container running. When trying to manually start it returns with the below error. Yes, I have macvlan0 created.

If I restart docker service, then it fix itself.

I have the below to run at startup but returns "cannot find device error".

However, if I run it manually after startup, no issue.

Any help is appreciated. Thank you.

Debug Token:

https://tricorder.pi-hole.net/D0c9Nwct/

How did you create the network? Compose file? Using docker command?
Do you see the network listed if you run sudo docker network ls command?

How did you create the network?
Docker command
image

Do you see the network listed if you run sudo docker network ls command?
I do
image

This doesn't look like a Pi-hole issue.

Your screenshots show some pi-vlan.service as well as a /usr/local/bin/pi-vlan.sh.
Note that those files are not part of Pi-hole.

It would seem you've created a service wrapper around your Pi-hole Docker container.
Your observation could be related to the startup order of services on your system, if either the network or Docker itself may not be fully up and running when your pi-vlan.service is trying to start.

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.