[GH-ISSUE #15] self route 生成的service name与/save不一致问题 #15

Closed
opened 2026-05-06 12:22:41 +02:00 by BreizhHardware · 2 comments

Originally created by @fybody on GitHub (Apr 8, 2026).
Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/15

Originally assigned to: @chr0nzz on GitHub.

Image setup生成service name不带service后缀,通过”traefik manager“编辑traefik-manager route后,会有2个service,"traefik-manager" | ”traefik-manager-service“
Originally created by @fybody on GitHub (Apr 8, 2026). Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/15 Originally assigned to: @chr0nzz on GitHub. <img width="1459" height="870" alt="Image" src="https://github.com/user-attachments/assets/e4c0262c-8722-41aa-8c87-6c0183965658" /> setup生成service name不带service后缀,通过”traefik manager“编辑traefik-manager route后,会有2个service,"traefik-manager" | ”traefik-manager-service“
BreizhHardware 2026-05-06 12:22:41 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@chr0nzz commented on GitHub (Apr 8, 2026):

Good catch - this is a naming inconsistency between how the self-route is initially created and how the /save endpoint handles edits.

Root cause: The setup script writes the self-route with the same name for both the router and the service (e.g., traefik-manager). The /save endpoint always appends -service to the service key (e.g., traefik-manager-service). When editing the self-route, the old service key (traefik-manager) was only cleaned up if the route was being renamed. Since you kept the same name, the cleanup was skipped and both service entries coexisted.

Fix: The edit path now always removes the old service key if it differs from the new one, regardless of whether the router name changed. Will be in the next release.

<!-- gh-comment-id:4206925798 --> @chr0nzz commented on GitHub (Apr 8, 2026): Good catch - this is a naming inconsistency between how the self-route is initially created and how the /save endpoint handles edits. Root cause: The setup script writes the self-route with the same name for both the router and the service (e.g., traefik-manager). The /save endpoint always appends -service to the service key (e.g., traefik-manager-service). When editing the self-route, the old service key (traefik-manager) was only cleaned up if the route was being renamed. Since you kept the same name, the cleanup was skipped and both service entries coexisted. Fix: The edit path now always removes the old service key if it differs from the new one, regardless of whether the router name changed. Will be in the next release.
Author
Owner

@chr0nzz commented on GitHub (Apr 8, 2026):

update v0.10.4 fixes the issue

<!-- gh-comment-id:4209653593 --> @chr0nzz commented on GitHub (Apr 8, 2026): update v0.10.4 fixes the issue
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/traefik-manager#15
No description provided.