[GH-ISSUE #11] Errors for standalone Elements #12

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

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

Originally assigned to: @chr0nzz on GitHub.

Native Install v0.10.x

not sure if this also counts as a bug but its making traefik mad.

Traefik throwing errors for standalone elements in file creation and edit.

{"level":"error","providerName":"file","error":"collecting file configs: /etc/traefik/conf.d/0100-test-middleware.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)","time":"2026-04-06T04:36:35Z","caller":"github.com/traefik/traefik/v3/pkg/provider/file/file.go:196","message":"Error occurred during watcher callback"}

during middleware creation
I.e.

  routers: {}
  services: {}
  middleware:
    middleware_continued....

Traefik doesn't appear to get as mad during router creation, but for consistency.

{"level":"error","providerName":"file","error":"collecting file configs: /etc/traefik/conf.d/0100-test-httprouter.yml: middlewares cannot be a standalone element (type map[string]*dynamic.Middleware)","time":"2026-04-06T05:16:56Z","caller":"github.com/traefik/traefik/v3/pkg/provider/file/file.go:196","message":"Error occurred during watcher callback"}
http:
  routers:
    test_service:
      router/service cont....
  middlewares: {}

Edit 04/06/26-0120: I got it to throw the error on a service

Originally created by @wolfnacht44 on GitHub (Apr 6, 2026). Original GitHub issue: https://github.com/chr0nzz/traefik-manager/issues/11 Originally assigned to: @chr0nzz on GitHub. Native Install v0.10.x not sure if this also counts as a bug but its making traefik mad. Traefik throwing errors for standalone elements in file creation and edit. ``` {"level":"error","providerName":"file","error":"collecting file configs: /etc/traefik/conf.d/0100-test-middleware.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)","time":"2026-04-06T04:36:35Z","caller":"github.com/traefik/traefik/v3/pkg/provider/file/file.go:196","message":"Error occurred during watcher callback"} ``` during middleware creation I.e. ```http: routers: {} services: {} middleware: middleware_continued.... ``` Traefik doesn't appear to get as mad during router creation, but for consistency. ``` {"level":"error","providerName":"file","error":"collecting file configs: /etc/traefik/conf.d/0100-test-httprouter.yml: middlewares cannot be a standalone element (type map[string]*dynamic.Middleware)","time":"2026-04-06T05:16:56Z","caller":"github.com/traefik/traefik/v3/pkg/provider/file/file.go:196","message":"Error occurred during watcher callback"} ``` ``` http: routers: test_service: router/service cont.... middlewares: {} ``` Edit 04/06/26-0120: I got it to throw the error on a service
BreizhHardware 2026-05-06 12:22:39 +02:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

update out should fix the issue

<!-- gh-comment-id:4192979056 --> @chr0nzz commented on GitHub (Apr 6, 2026): update out should fix the issue
Author
Owner

@wolfnacht44 commented on GitHub (Apr 7, 2026):

was persistent after update, resolved with fresh install.

<!-- gh-comment-id:4196783330 --> @wolfnacht44 commented on GitHub (Apr 7, 2026): was persistent after update, resolved with fresh install.
Author
Owner

@anoniuuiti commented on GitHub (Apr 26, 2026):

This error happens again in beta versions. Once after disabling and reenabling a route, middlewares:{} appended to the re-enabled yml. Hope getting a fix soon 🙏🏻

<!-- gh-comment-id:4321461026 --> @anoniuuiti commented on GitHub (Apr 26, 2026): This error happens again in beta versions. Once after disabling and reenabling a route, middlewares:{} appended to the re-enabled yml. Hope getting a fix soon 🙏🏻
Author
Owner

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

beta3.1 is out, please update and report back thanks.

<!-- gh-comment-id:4321955816 --> @chr0nzz commented on GitHub (Apr 26, 2026): beta3.1 is out, please update and report back thanks.
Author
Owner

@anoniuuiti commented on GitHub (Apr 26, 2026):

beta3.1 is out, please update and report back thanks.

yay! perfectly fixed! Appreciate for quick fix!!

<!-- gh-comment-id:4322053678 --> @anoniuuiti commented on GitHub (Apr 26, 2026): > beta3.1 is out, please update and report back thanks. yay! perfectly fixed! Appreciate for quick fix!!
Author
Owner

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

beta3.1 is out, please update and report back thanks.

yay! perfectly fixed! Appreciate for quick fix!!

Perfect. You are welcome. Thanks.

<!-- gh-comment-id:4322223871 --> @chr0nzz commented on GitHub (Apr 26, 2026): > > beta3.1 is out, please update and report back thanks. > > yay! perfectly fixed! Appreciate for quick fix!! Perfect. You are welcome. Thanks.
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#12
No description provided.