Skip to content

Agents displaying 0 running containers #362

@Cesc1986

Description

@Cesc1986

Drydock version

v1.5.0-rc.19

What happened?

Hi,

again, great piece of software. May be due to the steep learning curve and complex setup an error on my behalf, but I see constantly single or multiple agents reporting 0 running containers, even though there are runnig containers on that machine. I couldn't detect a pattern, its sometimes agent 1, sometimes agent 2, sometimes agent 3, sometimes all are working. All agents have exactly the same configuration, password, PATs, etc.

Take this case, only my host "apps" is reporting 0 containers running.

Image

This is strange, as the actual drydock agent running on this machine is detecting 25 containers. When I restart the local host machine, I think I have observed that all 3 agents are reporting the correct amount of containers as running.

[08:00:49.187] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[08:00:49.222] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[08:00:49.228] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[08:00:49.230] WARN (drydock/7): local_immich_redis - No Registry Provider found

[08:00:49.617] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_postgres"}

[08:00:54.082] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[08:00:57.269] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[08:01:00.814] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[08:01:00.833] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[08:01:09.192] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_server"}

[08:01:18.326] INFO (drydock/7): Cron finished (25 containers watched, 3 errors, 13 available updates) {"component":"watcher.docker.local"}

[08:58:16.691] INFO (drydock/7): Controller drydock with ip ::ffff:192.168.11.42 disconnected. {"component":"agent-api-event"}

[08:58:19.033] INFO (drydock/7): Controller drydock with ip ::ffff:192.168.11.42 connected. {"component":"agent-api-event"}

[09:00:25.761] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[09:00:25.794] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[09:00:25.796] WARN (drydock/7): local_immich_redis - No Registry Provider found

[09:00:25.805] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[09:00:34.260] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_server"}

[09:00:41.380] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[09:00:57.441] INFO (drydock/7): Cron finished (25 containers watched, 2 errors, 14 available updates) {"component":"watcher.docker.local"}

[10:00:42.363] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[10:00:42.403] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[10:00:42.405] WARN (drydock/7): local_immich_redis - No Registry Provider found

[10:00:42.407] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[10:00:54.639] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[10:01:12.615] WARN (drydock/7): Error when processing (timeout of 30000ms exceeded) {"component":"watcher.docker.local","container":"local_n8n"}

[10:01:20.335] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_server"}

[10:01:35.610] WARN (drydock/7): Error when processing (timeout of 30000ms exceeded) {"component":"watcher.docker.local","container":"local_immich_postgres"}

[10:01:35.622] INFO (drydock/7): Cron finished (25 containers watched, 4 errors, 12 available updates) {"component":"watcher.docker.local"}

[11:00:51.790] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[11:00:51.823] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[11:00:51.825] WARN (drydock/7): local_immich_redis - No Registry Provider found

[11:00:51.834] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[11:00:56.064] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[11:01:00.882] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[11:01:01.489] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[11:01:12.865] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[11:01:31.608] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[11:01:31.618] INFO (drydock/7): Cron finished (25 containers watched, 1 errors, 14 available updates) {"component":"watcher.docker.local"}

[12:00:47.057] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[12:00:47.093] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[12:00:47.095] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[12:00:47.096] WARN (drydock/7): local_immich_redis - No Registry Provider found

[12:00:47.555] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[12:00:48.256] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_postgres"}

[12:00:53.313] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_server"}

[12:01:36.342] INFO (drydock/7): Cron finished (25 containers watched, 3 errors, 13 available updates) {"component":"watcher.docker.local"}

[13:00:50.734] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[13:00:50.770] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[13:00:50.771] WARN (drydock/7): local_immich_redis - No Registry Provider found

[13:00:50.780] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[13:00:57.355] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[13:01:21.614] INFO (drydock/7): Cron finished (25 containers watched, 1 errors, 14 available updates) {"component":"watcher.docker.local"}

[14:00:22.629] INFO (drydock/7): Cron started (0 * * * *) {"component":"watcher.docker.local"}

[14:00:22.664] WARN (drydock/7): immich_postgres: Cannot get a reliable tag for this image [ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0@sha256:bcf63357191b76a916ae5eb93464d65c07511da41e3bf7a8416db519b40b1c23] {"component":"watcher.docker.local"}

[14:00:22.666] WARN (drydock/7): immich_redis: Cannot get a reliable tag for this image [docker.io/valkey/valkey:9@sha256:3b55fbaa0cd93cf0d9d961f405e4dfcc70efe325e2d84da207a0a8e6d8fde4f9] {"component":"watcher.docker.local"}

[14:00:22.668] WARN (drydock/7): local_immich_redis - No Registry Provider found

[14:00:24.511] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:24.527] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:24.859] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:24.980] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:26.754] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:32.854] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_server"}

[14:00:33.549] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_postgres"}

[14:00:44.996] WARN (drydock/7): Error when processing (Request failed with status code 429) {"component":"watcher.docker.local","container":"local_immich_machine_learning"}

[14:00:47.749] WARN (drydock/7): GitHub release notes lookup is rate-limited {"component":"release-notes.provider.github"}

[14:00:52.887] WARN (drydock/7): Error when processing (timeout of 30000ms exceeded) {"component":"watcher.docker.local","container":"local_paperless-ngx-db"}

[14:00:56.465] WARN (drydock/7): Error when processing (timeout of 30000ms exceeded) {"component":"watcher.docker.local","container":"local_n8n-postgres"}

[14:00:56.476] INFO (drydock/7): Cron finished (25 containers watched, 5 errors, 11 available updates) {"component":"watcher.docker.local"}

Please note, I have valid PATs for github and dockerhub, so another topic is the constant timeouts that I find confusing still.

What did you expect?

This is a better view where all containers are shown as running. I achieved this by restarting the drydock host where I run the UI on. Please note: The amound of 48 running containers on local is not correct, that's actually the sum of all containers across all agents / local...

Image

Steps to reproduce

  1. Install drydock incl. agents
  2. set them up via docker:
  3. Use it and see inconsistent reporting of running containers

Host

   environment:
      - DD_WATCHER_LOCAL_HOST=socket-proxy
      - DD_WATCHER_LOCAL_PORT=2375
      # --- Remote agent connection ---
      - DD_AGENT_APPS_HOST=192.168.11.43
      - DD_AGENT_APPS_PORT=3030
      - DD_AGENT_APPS_SECRET=secret!
      - DD_AGENT_ML_HOST=192.168.11.44
      - DD_AGENT_ML_PORT=3000
      - DD_AGENT_ML_SECRET=secret!
      - DD_AGENT_TEST_HOST=192.168.11.49
      - DD_AGENT_TEST_PORT=3000
      - DD_AGENT_TEST_SECRET=secret!

Agents (one has a different port set up)

    environment:
      # Must match controller's DD_AGENT_REMOTE1_SECRET
      - DD_AGENT_SECRET=secret!
      # Watcher — discovers containers on this host
      - DD_WATCHER_LOCAL_HOST=drydock-socket-proxy
      - DD_WATCHER_LOCAL_PORT=2375

Installation method

Docker Compose

Docker version

28.0.1

OS / Architecture

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions