dokploy icon indicating copy to clipboard operation
dokploy copied to clipboard

Error log spam in traefik logs: ERR error="service \"dokploy-traefik\" error: port is missing"

Open Paillat-dev opened this issue 1 year ago • 7 comments

To Reproduce

  1. 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

Paillat-dev avatar Jan 24 '25 12:01 Paillat-dev

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.

ali-issa avatar Jan 26 '25 07:01 ali-issa

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.

Paillat-dev avatar Jan 26 '25 09:01 Paillat-dev

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.

ali-issa avatar Jan 26 '25 09:01 ali-issa

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.

Paillat-dev avatar Jan 26 '25 11:01 Paillat-dev

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.

Siumauricio avatar Jan 26 '25 21:01 Siumauricio

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

Paillat-dev avatar Jan 26 '25 21:01 Paillat-dev

having the same Dokploy v 0.17.8. (dont see regular traefik logs and cant restart traefik from UI)

dev7ch avatar Jan 28 '25 18:01 dev7ch