Better handle syntax errors in docker labels for a single container #1639
-
DescriptionService discovery fully errors out and will not provide any services if a single container has a syntax error in one of it's labels. Steps to reproduceFound this out when trying to add adguard-home with the following labels in docker-compose:
When (re-)loading the homepage, all docker services added through labels are no longer present. Upon removal of the last 3 lines all works well again. homepage versionv0.6.21 Installation methodDocker ConfigurationNo response Container Logs[2023-06-28T11:36:07.184Z] error: Failed to discover services, please check docker.yaml for errors o Browser LogsNo response TroubleshootingIt's a service widet, but that's not the part that seems to be failing... OtherNo response Before submitting, I have made sure to
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I believe this might be caused by the following code block being executed inside a try / catch, instead of a try / catch for each of the containers. |
Beta Was this translation helpful? Give feedback.
-
I dont think this is a bug, youre asking that homepage handle this better, which is reasonable but theres no claim that it will handle invalid service labels. Its not so different than having an invalid yaml for homepage... Anyway I can look at doing this later |
Beta Was this translation helpful? Give feedback.
-
Closed by #1640 |
Beta Was this translation helpful? Give feedback.
-
This discussion has been automatically locked since there has not been any recent activity after it was closed. Please open a new discussion for related concerns. |
Beta Was this translation helpful? Give feedback.
Closed by #1640