diun icon indicating copy to clipboard operation
diun copied to clipboard

No notification, although newer images are available

Open StefanSa opened this issue 9 months ago • 3 comments

Support guidelines

I've found a bug and checked that ...

  • [x] ... the documentation does not mention anything about my problem
  • [x] ... there are no open or closed issues that are related to my problem

Description

Hi there, No notification, although newer images are available. Although the docker swarm service uses an image with an older tag 4.27 and there is a new image in the repo 4.29, no action is performed.

Any idea ?

thx for any help here

Expected behaviour

As soon as there is an update or newer image, a notification should be sent, in this case by e-mail.

Actual behaviour

diun image list:

/ # diun image list
+---------------------------------------------------------------+-----------------+-------------+----------------------+-------------------------------------------------------------------------+
| NAME                                                          | MANIFESTS COUNT | LATEST TAG  | LATEST CREATED       | LATEST DIGEST                                                           |
+---------------------------------------------------------------+-----------------+-------------+----------------------+-------------------------------------------------------------------------+
| harbor.test.local:8443/dockerhub-replica/crazymax/diun |              10 | 4.29        | 2024-12-19T17:28:40Z | sha256:49d0b7f7010da5fa6ad75819eca5af44b4680b1df4c9bbbbdcb8bf5a8257958b |
| quay.test.local/drakkan/sftpgo                         |               1 | edge-alpine | 2025-03-04T17:08:59Z | sha256:3413756ec30a8c416d0dc5f6930c8507a98ea0bef07ba04a2979546b95e5f976 |
+---------------------------------------------------------------+-----------------+-------------+----------------------+-------------------------------------------------------------------------+
| TOTAL                                                         |               2 |             |                      |                                                                         |
+---------------------------------------------------------------+-----------------+-------------+----------------------+-------------------------------------------------------------------------+
/ # ^C

labes from service (docker swarm)

      labels:
        - "diun.enable=true"
        - "diun.notify_on=new;update"
        - "diun.watch_repo=true"

image from service (docker swarm):

services:
  diun:
    image: harbor.test.local:8443/dockerhub-replica/crazymax/diun:4.27

diun container logs:

Wed, 12 Mar 2025 15:05:47 UTC INF Starting Diun version=v4.27.0
Wed, 12 Mar 2025 15:05:47 UTC INF Configuration loaded from file: /diun.yml
Wed, 12 Mar 2025 15:05:47 UTC INF Configuration loaded from 17 environment variable(s)
Wed, 12 Mar 2025 15:05:47 UTC INF Cron triggered
Wed, 12 Mar 2025 15:05:47 UTC INF Found 2 image(s) to analyze provider=swarm
Wed, 12 Mar 2025 15:05:48 UTC INF Jobs completed added=0 failed=0 skipped=0 unchanged=11 updated=0
Wed, 12 Mar 2025 15:05:48 UTC INF Cron initialized with schedule 0 */6 * * *
Wed, 12 Mar 2025 15:05:48 UTC INF Next run in 2 hours 54 minutes (2025-03-12 18:00:10.917844622 +0000 UTC)

Steps to reproduce

Create diun according to instructions

Diun version

4.29

Docker info

Client:
 Version:    27.5.1-ce
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  0.20.1
    Path:     /usr/lib/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  2.33.1
    Path:     /usr/lib/docker/cli-plugins/docker-compose

Server:
 Containers: 8
  Running: 8
  Paused: 0
  Stopped: 0
 Images: 16
 Server Version: 27.5.1-ce
 Storage Driver: overlay2
  Backing Filesystem: btrfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: json-file
 Cgroup Driver: systemd
 Cgroup Version: 2
 Plugins:
  Volume: local
  Network: bridge host ipvlan macvlan null overlay
  Log: awslogs fluentd gcplogs gelf journald json-file local splunk syslog
 Swarm: active
  NodeID: s43tnvkc1ts0zpa08ofxejaro
  Is Manager: true
  ClusterID: qeo2bnb3l77eo9is4fv3u4p0i
  Managers: 3
  Nodes: 6
  Default Address Pool: 10.0.0.0/8  
  SubnetSize: 24
  Data Path Port: 4789
  Orchestration:
   Task History Retention Limit: 1
  Raft:
   Snapshot Interval: 10000
   Number of Old Snapshots to Retain: 0
   Heartbeat Tick: 1
   Election Tick: 10
  Dispatcher:
   Heartbeat Period: 5 seconds
  CA Configuration:
   Expiry Duration: 3 months
   Force Rotate: 0
  Autolock Managers: false
  Root Rotation In Progress: false
  Node Address: 172.17.34.50
  Manager Addresses:
   172.17.34.50:2377
   172.17.34.54:2377
   172.17.34.55:2377
 Runtimes: io.containerd.runc.v2 oci runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 57f17b0a6295a39009d861b89e3b3b87b005ca27
 runc version: v1.2.5-0-g59923ef18c98
 init version: 
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.13.5-1-default
 Operating System: openSUSE Tumbleweed
 OSType: linux
 Architecture: x86_64
 CPUs: 4
 Total Memory: 15.62GiB
 Name: master-01.feltengroup.local
 ID: 192ebc4b-3529-4f99-bb47-5f95321eb09e
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Username: stefansab1961
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false
 Default Address Pools:
   Base: 10.10.0.0/16, Size: 24

Docker Compose config


Logs

Wed, 12 Mar 2025 15:05:47 UTC INF Starting Diun version=v4.27.0
Wed, 12 Mar 2025 15:05:47 UTC INF Configuration loaded from file: /diun.yml
Wed, 12 Mar 2025 15:05:47 UTC INF Configuration loaded from 17 environment variable(s)
Wed, 12 Mar 2025 15:05:47 UTC INF Cron triggered
Wed, 12 Mar 2025 15:05:47 UTC INF Found 2 image(s) to analyze provider=swarm
Wed, 12 Mar 2025 15:05:48 UTC INF Jobs completed added=0 failed=0 skipped=0 unchanged=11 updated=0
Wed, 12 Mar 2025 15:05:48 UTC INF Cron initialized with schedule 0 */6 * * *
Wed, 12 Mar 2025 15:05:48 UTC INF Next run in 2 hours 54 minutes (2025-03-12 18:00:10.917844622 +0000 UTC)

Additional info

No response

StefanSa avatar Mar 12 '25 15:03 StefanSa

Can you enable debug with LOG_LEVEL=debug env and post the logs please?

crazy-max avatar Apr 13 '25 22:04 crazy-max

We are seeing the same thing. Like OP, we are using a specific version tag on the containers. Current running version (in this case, for Authentik) is specified as 2025.4.0 Available version is 2025.4.1

Relevant snippet from compose.yml:

services:
  server:
    image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:${AUTHENTIK_TAG:-2025.4.0}

Diun logs:

diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Starting Diun version=v4.29.0
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No configuration file found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Configuration loaded from 14 environment variable(s)
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG {
diun-diun-1  |   "db": {
diun-diun-1  |     "path": "/data/diun.db"
diun-diun-1  |   },
diun-diun-1  |   "watch": {
diun-diun-1  |     "workers": 20,
diun-diun-1  |     "schedule": "0 */6 * * *",
diun-diun-1  |     "jitter": 30000000000,
diun-diun-1  |     "firstCheckNotif": false,
diun-diun-1  |     "runOnStartup": true,
diun-diun-1  |     "compareDigest": true
diun-diun-1  |   },
diun-diun-1  |   "defaults": {
diun-diun-1  |     "watchRepo": false,
diun-diun-1  |     "notifyOn": [
diun-diun-1  |       "new",
diun-diun-1  |       "update"
diun-diun-1  |     ],
diun-diun-1  |     "sortTags": "reverse"
diun-diun-1  |   },
diun-diun-1  |   "notif": {
diun-diun-1  |     "mail": {
diun-diun-1  |       "host": "<redacted>",
diun-diun-1  |       "port": 587,
diun-diun-1  |       "ssl": false,
diun-diun-1  |       "insecureSkipVerify": false,
diun-diun-1  |       "localName": "<redacted>",
diun-diun-1  |       "from": "<redacted>",
diun-diun-1  |       "to": [
diun-diun-1  |         "<redacted>"
diun-diun-1  |       ],
diun-diun-1  |       "templateTitle": "{{ .Meta.Hostname }} | {{ .Entry.Image }} {{ if (eq .Entry.Status \"new\") }}is available{{ else }}has been updated{{ end }}",
diun-diun-1  |       "templateBody": "Docker tag {{ if .Entry.Image.HubLink }}[**{{ .Entry.Image }}**]({{ .Entry.Image.HubLink }}){{ else }}**{{ .Entry.Image }}**{{ end }}\nwhich you subscribed to through {{ .Entry.Provider }} provider {{ if (eq .Entry.Status \"new\") }}is available{{ else }}has been updated{{ end }}\non **{{ .Entry.Image.Domain }}** registry (triggered by _{{ escapeMarkdown .Meta.Hostname }}_ host).\n\nThis image has been {{ if (eq .Entry.Status \"new\") }}created{{ else }}updated{{ end }} at\n\u003ccode\u003e{{ .Entry.Manifest.Created.Format \"Jan 02, 2006 15:04:05 UTC\" }}\u003c/code\u003e with digest \u003ccode\u003e{{ .Entry.Manifest.Digest }}\u003c/code\u003e\nfor \u003ccode\u003e{{ .Entry.Manifest.Platform }}\u003c/code\u003e platform.\n\nNeed help, or have questions? Go to {{ .Meta.URL }} and leave an issue."
diun-diun-1  |     }
diun-diun-1  |   },
diun-diun-1  |   "providers": {
diun-diun-1  |     "docker": {
diun-diun-1  |       "tlsVerify": true,
diun-diun-1  |       "watchByDefault": true,
diun-diun-1  |       "watchStopped": false
diun-diun-1  |     }
diun-diun-1  |   }
diun-diun-1  | }
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG 1 notifier(s) created
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG 7 entries found in manifest bucket
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Current database version: 2
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Cron triggered
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=89f6aeff69243bb5b3e2613947194fefa4a1418cee7d53e6ed0ebfbdef8dcb8e ctn_image=caddy:2.10.0-alpine ctn_labels={"com.docker.compose.config-hash":"5ad24671eff4864409ad72f0e111954a8a825b35cfb69843c12e24859bbf5678","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"","com.docker.compose.image":"sha256:14300de7e087290520999f00d6a12b61385d1fe780ea83f38eabb7e8be66225f","com.docker.compose.oneoff":"False","com.docker.compose.project":"authentik","com.docker.compose.project.config_files":"/persistent/containers/authentik/compose.yml,/persistent/containers/authentik/compose.override.yml","com.docker.compose.project.working_dir":"/persistent/containers/authentik","com.docker.compose.replace":"cd527da895a7710238f641d47567cddee29305b443e7521c270266a41d224f2f","com.docker.compose.service":"caddy","com.docker.compose.version":"2.22.0","org.opencontainers.image.description":"a powerful, enterprise-ready, open source web server with automatic HTTPS written in Go","org.opencontainers.image.documentation":"https://caddyserver.com/docs","org.opencontainers.image.licenses":"Apache-2.0","org.opencontainers.image.source":"https://github.com/caddyserver/caddy-docker","org.opencontainers.image.title":"Caddy","org.opencontainers.image.url":"https://caddyserver.com","org.opencontainers.image.vendor":"Light Code Labs","org.opencontainers.image.version":"v2.10.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=9b5950c2f4a46dfeefa6b29004c283207558ee76bf53c2329d92e941a78dfbb8 ctn_image=crazymax/diun:4.29.0 ctn_labels={"com.docker.compose.config-hash":"e2066a342869d92f09e67543f929511c3599ef0295712387c945f946058b3058","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"","com.docker.compose.image":"sha256:d404f13e22b537b00d034b4719e0dcd4abcb191b1dcf35c22bc357ad7d3fde79","com.docker.compose.oneoff":"False","com.docker.compose.project":"diun","com.docker.compose.project.config_files":"/persistent/containers/diun/compose.yml","com.docker.compose.project.working_dir":"/persistent/containers/diun","com.docker.compose.service":"diun","com.docker.compose.version":"2.22.0","org.opencontainers.image.created":"2024-12-19T17:20:18.783Z","org.opencontainers.image.description":"Docker image update notifier","org.opencontainers.image.licenses":"MIT","org.opencontainers.image.revision":"1ca5d37370a57965fa55979d9e9aa4e177ddf193","org.opencontainers.image.source":"https://github.com/crazy-max/diun","org.opencontainers.image.title":"Diun","org.opencontainers.image.url":"https://github.com/crazy-max/diun","org.opencontainers.image.vendor":"CrazyMax","org.opencontainers.image.version":"4.29.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=f0abf29abaa6716d132ea4b37d9fb00bdc8d43442fbf8b04623121f39e2fbca5 ctn_image=docker.io/library/postgres:16-alpine ctn_labels={"com.docker.compose.config-hash":"b564dd9f478c1165a7c289ed76c6e1bb443531ea37f9b10a047c5af6496cada1","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"","com.docker.compose.image":"sha256:b56133b65cd327b22cd183d6cea183ffbacd35520b6418f1d01d89b4579caff4","com.docker.compose.oneoff":"False","com.docker.compose.project":"authentik","com.docker.compose.project.config_files":"/persistent/containers/authentik/compose.yml,/persistent/containers/authentik/compose.override.yml","com.docker.compose.project.working_dir":"/persistent/containers/authentik","com.docker.compose.replace":"f2afcea54f5767e8578bfd5a938592194df76a5344987a1e4d0912c9b2e3b572","com.docker.compose.service":"postgresql","com.docker.compose.version":"2.22.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=0a3c6b0b9d0a72a38d64aee13a82f1bb7a7702988de366422e719109a18df438 ctn_image=docker.io/library/redis:alpine ctn_labels={"com.docker.compose.config-hash":"01720be5fcb5dd82b07a4c3e55f1969509ba672127af733fcd89085d0ad7dd4c","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"","com.docker.compose.image":"sha256:d470ca4bc10ce2d16268912e403494f8785413a2ab6677d8cd444412349bfc2d","com.docker.compose.oneoff":"False","com.docker.compose.project":"authentik","com.docker.compose.project.config_files":"/persistent/containers/authentik/compose.yml,/persistent/containers/authentik/compose.override.yml","com.docker.compose.project.working_dir":"/persistent/containers/authentik","com.docker.compose.replace":"bf648b337731344b3e1cb1d6e1d088c8d43a55b15223126ba4811bdaab1a32ef","com.docker.compose.service":"redis","com.docker.compose.version":"2.22.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=0399ff73ba6507f5f88727f5f1279255cb1019fdb61281e5d78cd2559b2cf67e ctn_image=ghcr.io/goauthentik/server:2025.4.0 ctn_labels={"com.docker.compose.config-hash":"39bf98007f93c10f84f9b42d527822ca545c4f3a1baf4ba23952eb4158b3b87f","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"postgresql:service_healthy:false,redis:service_healthy:false","com.docker.compose.image":"sha256:c4d4d94e5aa609a51276c914a258f0de349122fd40e9dfeaae2488ed727af268","com.docker.compose.oneoff":"False","com.docker.compose.project":"authentik","com.docker.compose.project.config_files":"/persistent/containers/authentik/compose.yml,/persistent/containers/authentik/compose.override.yml","com.docker.compose.project.working_dir":"/persistent/containers/authentik","com.docker.compose.replace":"e29df1f7d76c70ed3485fad87a87042ed5b14ebb7362d04269f79b05e4a9c4cf","com.docker.compose.service":"server","com.docker.compose.version":"2.22.0","org.opencontainers.image.description":"goauthentik.io Main server image, see https://goauthentik.io for more info.","org.opencontainers.image.revision":"","org.opencontainers.image.source":"https://github.com/goauthentik/authentik","org.opencontainers.image.url":"https://goauthentik.io","org.opencontainers.image.version":"refs/tags/version/2025.4.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Validate image ctn_id=a0e29b84a415dc257379d770c3eb196b44222d049448926c3b71a6fbf49957e8 ctn_image=ghcr.io/goauthentik/server:2025.4.0 ctn_labels={"com.docker.compose.config-hash":"a5f5c9e5cbcefca16b07530e2c1286ddff12af16256b4f313e8f29e159715ca3","com.docker.compose.container-number":"1","com.docker.compose.depends_on":"postgresql:service_healthy:false,redis:service_healthy:false","com.docker.compose.image":"sha256:c4d4d94e5aa609a51276c914a258f0de349122fd40e9dfeaae2488ed727af268","com.docker.compose.oneoff":"False","com.docker.compose.project":"authentik","com.docker.compose.project.config_files":"/persistent/containers/authentik/compose.yml,/persistent/containers/authentik/compose.override.yml","com.docker.compose.project.working_dir":"/persistent/containers/authentik","com.docker.compose.replace":"1f095d164dd9cfd4d61b395447b9d0b6bb20c0ba89c588fb457d52c8a1103bec","com.docker.compose.service":"worker","com.docker.compose.version":"2.22.0","org.opencontainers.image.description":"goauthentik.io Main server image, see https://goauthentik.io for more info.","org.opencontainers.image.revision":"","org.opencontainers.image.source":"https://github.com/goauthentik/authentik","org.opencontainers.image.url":"https://goauthentik.io","org.opencontainers.image.version":"refs/tags/version/2025.4.0"} provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Found 6 image(s) to analyze provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Loading registries configuration "/etc/containers/registries.conf"
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for docker.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for docker.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for docker.io/library/caddy from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for docker.io/library/caddy:2.10.0-alpine, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://registry-1.docker.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for docker.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching docker.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for docker.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for ghcr.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /run/containers/0/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.config/containers/auth.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.docker/config.json
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials matching ghcr.io found in /root/.dockercfg
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] No credentials for ghcr.io found
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for ghcr.io/goauthentik/server from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for ghcr.io/goauthentik/server:2025.4.0, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/ghcr.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://ghcr.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for docker.io/crazymax/diun from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for docker.io/crazymax/diun:4.29.0, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://registry-1.docker.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for ghcr.io/goauthentik/server from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for ghcr.io/goauthentik/server:2025.4.0, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/ghcr.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://ghcr.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for docker.io/library/postgres from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for docker.io/library/postgres:16-alpine, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://registry-1.docker.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Using registries.d directory /etc/containers/registries.d
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Returning credentials for docker.io/library/redis from DockerAuthConfig
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image]  No signature storage configuration found for docker.io/library/redis:alpine, using built-in default file:///var/lib/containers/sigstore
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Looking for TLS certificates and private keys in /etc/docker/certs.d/docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://registry-1.docker.io/v2/
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://registry-1.docker.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://auth.docker.io/token?scope=repository%3Alibrary%2Fredis%3Apull&service=registry.docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://ghcr.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://ghcr.io/token?scope=repository%3Agoauthentik%2Fserver%3Apull&service=ghcr.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://ghcr.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://ghcr.io/token?scope=repository%3Agoauthentik%2Fserver%3Apull&service=ghcr.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://registry-1.docker.io/v2/library/redis/manifests/alpine
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Increasing token expiration to: 60 seconds
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://ghcr.io/v2/goauthentik/server/manifests/2025.4.0
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Increasing token expiration to: 60 seconds
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://ghcr.io/v2/goauthentik/server/manifests/2025.4.0
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=ghcr.io/goauthentik/server:2025.4.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=ghcr.io/goauthentik/server:2025.4.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=ghcr.io/goauthentik/server:2025.4.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=ghcr.io/goauthentik/server:2025.4.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://registry-1.docker.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://auth.docker.io/token?scope=repository%3Alibrary%2Fpostgres%3Apull&service=registry.docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://registry-1.docker.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://auth.docker.io/token?scope=repository%3Acrazymax%2Fdiun%3Apull&service=registry.docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] Ping https://registry-1.docker.io/v2/ status 401
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] GET https://auth.docker.io/token?scope=repository%3Alibrary%2Fcaddy%3Apull&service=registry.docker.io
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://registry-1.docker.io/v2/library/postgres/manifests/16-alpine
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=docker.io/library/redis:alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=docker.io/library/redis:alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://registry-1.docker.io/v2/crazymax/diun/manifests/4.29.0
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG [containers/image] HEAD https://registry-1.docker.io/v2/library/caddy/manifests/2.10.0-alpine
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=docker.io/library/postgres:16-alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=docker.io/library/postgres:16-alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=docker.io/crazymax/diun:4.29.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=docker.io/crazymax/diun:4.29.0 provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG No changes image=docker.io/library/caddy:2.10.0-alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC DBG Manifest saved to database image=docker.io/library/caddy:2.10.0-alpine provider=docker
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Jobs completed added=0 failed=0 skipped=0 unchanged=6 updated=0
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Cron initialized with schedule 0 */6 * * *
diun-diun-1  | Mon, 19 May 2025 17:11:50 UTC INF Next run in 48 minutes 17 seconds (2025-05-19 18:00:08.627442944 +0000 UTC)

I'm pretty sure that when I first set up Diun, I noticed this and switched to using a providers.yml file specifying the images I was interested and just used latest as the tag. With that, however, the update notification doesn't tell which version is available, so I recently switched back to analyzing the local Docker instance.

Maybe this is expected behavior when the version is given instead of using latest, but best practice is to always use a specific version.

water-pc avatar May 19 '25 22:05 water-pc

@water-pc As far as I understand it, this behavior is expected in your case. Unless your container has a label with diun.watch_repo = true, only the tags you are using will be checked for updates. The OP said they already did this and were still having troubles, but based on your logs, it does not appear that any of your images have this tag set. You can find some more information about this setting in Diun's Docker provider documentation.

scribblemaniac avatar May 20 '25 03:05 scribblemaniac

As @scribblemaniac said you need to have watch repo enabled.

crazy-max avatar Aug 04 '25 08:08 crazy-max

I should point out that my reply only answers @water-pc's question, not the original question by @StefanSa. In the original question it does seem to me that they do have watch repo enabled already on the services.

scribblemaniac avatar Aug 04 '25 08:08 scribblemaniac