Error log spam in traefik logs: ERR error="service \"dokploy-traefik\" error: port is missing"
To Reproduce
- Under server -> Traefik click on "Watch logs"
Current vs. Expected behavior
In the logs, traefik continues to log the following error:
ERR error="service \"dokploy-traefik\" error: port is missing"
It shouldn't, dokploy should be set up in such a way that this error doesn't happen.
Provide environment information
Dokploy 0.17.8
Which area(s) are affected? (Select all that apply)
Traefik
Are you deploying the applications where Dokploy is installed or on a remote server?
Same server where Dokploy is installed
Additional context
No response
Will you send a PR to fix it?
No
Getting the same error after a fresh install. Domains are not working. The only thing I did was setting up a custom domain in server settings.
I don't think the fact that domains aren't working is related to this issue. This issue doesn't prevent anything from working, just fills the logs with unwanted stuff.
Yeah, I caught that after stumbling on issue #446. My initial search for issues didn't pick it up. I had trouble reloading Traefik and kept seeing different errors even after a fresh install for some reason. So, I reinstalled Dokploy on a new server, and that finally got Traefik working as expected. But I'm still seeing that error, which, I guess, is to be expected. I think this issue should be closed.
Having an error log spammed because of an incorrect automatic configuration is not to be expected. All that will do is fill out logs and make them unreadable.
Previously I had already responded to this problem, this problem came since we migrated from traefik v2.x to 3, as a result I encountered several weird things related to swarm and traefik, for some reason the traefik container was not sending logs when it was in a docker swarm service and the solution I found was adding this line https://github. com/Dokploy/dokploy/blob/canary/packages/server/src/setup/traefik-setup.ts#L71, if we remove this line the error goes away, however it is likely that in some cases you can't see the traefik logs through the UI.
I think I know the source of this and will update here. I may not know exactly how to fix it in this codebase though
having the same Dokploy v 0.17.8. (dont see regular traefik logs and cant restart traefik from UI)