mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
Docker labels breaking Pangolin if duplicate names are used #67
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DennisGaida on GitHub (Oct 19, 2025).
Describe the Bug
Trying to make Pangolin be more config based, I want to leverage docker labels, just like I am able with traefik.
Unfortunately labels (blueprints) seem to be yanky currently. Having duplicate label names on different machines connected via newt completely breaks Pangolin and I have to fix stuff in the sqlite database.
Environment
To Reproduce
The database now contains
(NULL)for allsubdomainthat are configured via newt agents. ThefullDomainis set to the base domain (if the subdomain would have beensyncthing2.domain.example.com,fullDomainnow isdomain.example.com). This leads to an infinite redirect since there are multiple endpoints for the base domain (the base domain is also where my Pangolin is hosted, i.e.domain.example.comis Pangolin.The only way to fix this is to manually edit the database and specify subdomain & fullDomain for the broken entries. To fix the database I have to stop Pangolin, then start it again and also restart traefik.
After playing around with this some more, I also figured out that the label key
pangolin.proxy-resources.**<name>**.nameis important, next to the value of the name itself. This really isn't represented in the documentation. I guess the best practice right now is then to create the following configuration if I had two services that are essentially the same, besides the host:host1:
host2:
Expected Behavior
Pangolin shouldn't break like this due to a misconfiguration of docker labels - worse yet, having to remember to not re-use an ID I already used on another host. If an ID already exists, just add a
-1or whatever as a suffix.