-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Caddy service can't start #205
Comments
I'm having the same issue. |
+1 |
I am facing the same issue |
log goroutine 1 [running]: |
I changed the network dockprom_monitor-net ownership from administrator to public and re-deploy caddy container works for me |
Can users with the issue please report the output of:
With the information you have provided I would suspect it's one of the packages you upgraded that's causing the issue. |
|
On centos work fine |
Same. This is some kind of global problem: |
My solution was to use the original caddy image |
OK, i've figured this out @nightah The problem is that as of ubuntu 20.04 'trust-ad' is added to the end of resolv.conf. Could others confirm that /etc/resolv.conf ends with?
Mine is:
When docker runs it copies the resolv.conf from the host. However, the But caddy uses a version prior: https://github.com/caddyserver/caddy/search?q=github.com%2Fmiekg%2Fdns A quick fix it to somehow overwrite the resolv.conf that docker uses. Docker makes this slightly complicated, but the easiest way i found is to create a copy of /etc/resolv.conf somewhere, and edit it to remove the last My edited resolv.conf looks like:
docker-compose.yml under services: caddy edit volumes to:
Result: container starts as expected. An alternative fix would be to manually edit your resolv.conf in place on the system, so the copy that is brought across works. I haven't tried to do that because of the way ubuntu manages this file that i don't completely understand. This is fixed in version 2 of caddy |
Thanks for the write up @DigiDr, this issue has been resolved with v3.30.0. |
I'm have ubuntu 20.04. After last upgrade system service caddy can't start with state Exit 2.
i tested on multiple hosts with ubuntu 20.04 with latest updates, same problem everywhere.
On ububntu 18.04 there are no such problems.
What could be the reason?
The text was updated successfully, but these errors were encountered: