Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem during start of monitoring #166

Open
darren-harrison-nz opened this issue Nov 28, 2024 · 7 comments
Open

Problem during start of monitoring #166

darren-harrison-nz opened this issue Nov 28, 2024 · 7 comments

Comments

@darren-harrison-nz
Copy link

darren-harrison-nz commented Nov 28, 2024

Hi,
I'm getting a couple of errors showing up in my logs, related to a Docker container which I have, but haven't referenced.
I'm not quite sure how monitor_docker even knows about it.

This error originated from a custom integration.

Logger: custom_components.monitor_docker.helpers
Source: custom_components/monitor_docker/helpers.py:494
integration: Monitor Docker (documentation, issues)
First occurred: 12:26:08 AM (183 occurrences)
Last logged: 3:36:09 PM

[Docker] -drupal-drupal-1: Problem during start of monitoring

The second error is about the same container.

This error originated from a custom integration.

Logger: custom_components.monitor_docker.helpers
Source: custom_components/monitor_docker/helpers.py:755
integration: Monitor Docker (documentation, issues)
First occurred: 12:26:08 AM (183 occurrences)
Last logged: 3:36:09 PM

[Docker] -drupal-drupal-1: Container not available anymore (2a) (DockerError(404, 'No such container: -drupal-drupal-1'))

My setup specifies some other containers

name: Docker
containers:
  - home-assistant
  - mosquitto
  - tasmoadmin
rename:
  home-assistant: "Home Assistant"
  mosquitto: MQTT
  tasmoadmin: TasmoAdmin
monitored_conditions:
  - version
  - containers_running
  - containers_total
  - state
  - status
  - memory
scan_interval: 30

The errors are annoying and I can ignore them, but it would be nice to figure out why and stop them.
Any ideas?

Thanks,
Darren.

@ualex73
Copy link
Owner

ualex73 commented Jan 19, 2025

This still happens?

@darren-harrison-nz
Copy link
Author

This still happens?

Hi, Yes, this is still happening.

Core 2025.1.2
Frontend 20250109.0
Monitor Docker v 1.18

@mfugate1
Copy link

In custom_components/monitor_docker/helpers.py:

            # We will monitor all containers, including excluded ones.
            # This is needed to get total CPU/Memory usage.

I have ephemeral containers for a few automated processes that cause this error as well, and I suspect this is the reason why.

@ualex73
Copy link
Owner

ualex73 commented Jan 23, 2025 via email

@darren-harrison-nz
Copy link
Author

That almost makes sense, but in my case the containers are there, and always have been.
Well, they get updated maybe every couple of weeks but a container with that name is always there.

@ualex73
Copy link
Owner

ualex73 commented Jan 26, 2025

Question ... When you get this error, does the "-drupal-drupal-1" container still exists (with the same name) or did change slightly?

@darren-harrison-nz
Copy link
Author

Hi, I made a mistake in my last message.
I replaced the Drupal stack I had with nginx, so the stack has been stopped and the containers have not been there for a number of months.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants