Cannot access Dokploy dashboard on domain. How can I debug CloudFlare bad gateway error?
I use a VPS on Hetzner and a domain on CloudFlare.
I have two A records on Cloudflare pointing to the IP address of the server.
1.
*.domain.com
2. domain.com
In Dokploy I successfuly deployed an app and specified the domain to be domain.com
.
I also specified the Dokploy domain to be available on dokploy.domain.com
in Dokploy settings.
This setup worked this week.
I stopped and started the server on Hetzner.
While the app is still available on domain.com
I no longer can access the Dokploy dashobard on dokploy.domain.com
.
I am getting a bad gateway error from CloudFlare:
Restarting the VPS doesn't help.
And Im unsure of how to debug this, any help is welcome.
The dokploy.domain.com
worked this week without problems.
I am unsure of what caused the issue to happen.
- Why would a VPS restart cause this?
- I think cleaning the storage in Settings might have caused this? But I don't know...
I use Dokploy v0.7.2.6 Replies
Check traefik logs, I had invalid configuration in one application and after restart some applications was not reachable
Try to run this:
1. docker service ls
2. docker service logs dokplo-traefik
as @Bunny said if you have invalid traefik configuration you run in the risk of losing the access to domains
Typo in second command
docker service logs dokploy-traefik
Thank you @Bunny @Siumauricio unfortunately in turn of events, I won't be able to try you suggestion until next week.
Here is the output of
docker service logs dokploy-traefik
Here is a prettified version of the logs:
Here are the things running on port 80, 443, 8080:
Here is how the /etc/traefik/traefik.yml
looks like
I am not sure what
docker-pr
is and why it taken the ports.
is this related?
https://stackoverflow.com/questions/56568370/docker-pr-proc-already-listening-on-port-80-installed-docker-with-snappy-on-ubuStack Overflow
docker-pr proc already listening on port 80? Installed docker with ...
I ran this:
docker run -ti -p 80:80 --name esproxy "$tag"
but I get this error:
docker: Error response from daemon: driver failed programming external
connectivity on endpoint esproxy
(
Well I f*** up
I think I will just reinstall Dokploy