mirror of
https://github.com/fosrl/newt.git
synced 2026-05-06 07:59:04 -05:00
[GH-ISSUE #164] Docker labels breaking Pangolin if duplicate names are used #1121
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).
Original GitHub issue: https://github.com/fosrl/newt/issues/164
Originally assigned to: @oschwartz10612 on GitHub.
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.@oschwartz10612 commented on GitHub (Nov 19, 2025):
Yeah unfortunately I think this is expected at least on the ID in the path. The resource ID in the label (pangolin.proxy-resources.) is used to identify the resource when setting things on it and I think we will want to keep it that way. What should NOT happen is strange behavior with subdomains. I will take a look into that.