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

Cannot get image digest #1325

Open
1 of 3 tasks
RohanYashwantrao opened this issue Jan 8, 2025 · 3 comments
Open
1 of 3 tasks

Cannot get image digest #1325

RohanYashwantrao opened this issue Jan 8, 2025 · 3 comments

Comments

@RohanYashwantrao
Copy link

Support guidelines

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

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

Description

Hi Team,
I am using diun using docker-compose. I am also deploying several services using that docker compose. Diun is supposed to send me notification on email, when tag is deployed . But I am getting below error . It is not able to authenticate. I have done docker login ghcr.io and also mentioned my creds in diun.yml.Please help resolve this issue.

'diun-1 | Tue, 07 Jan 2025 17:26:24 UTC INF Cron triggered
diun-1 | Tue, 07 Jan 2025 17:26:24 UTC INF Found 3 image(s) to analyze provider=docker
diun-1 | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker
diun-1 | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker
diun-1 | Tue, 07 Jan 2025 17:26:26 UTC INF Jobs completed added=0 failed=2 skipped=0 unchanged=1 updated=0
diun-1 | Tue, 07 Jan 2025 17:26:26 UTC INF Next run in 45 seconds 914 milliseconds (2025-01-07 17:27:10.86206423 +0000 UTC)
postgres-db | 2025-01-07 17:26:52.505 UTC [790] FATAL: role "root" does not exist
diun-1 | Tue, 07 Jan 2025 17:27:10 UTC INF Cron triggered
diun-1 | Tue, 07 Jan 2025 17:27:10 UTC INF Found 3 image(s) to analyze provider=docker
diun-1 | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker
diun-1 | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker'

`# General Configuration
logLevel: debug
timezone: "Asia/Kolkata"

Watcher Configuration

watch:
workers: 20
schedule: "* * * * *" # Run every minute
jitter: 30s

Docker Provider

providers:
docker:
watchByDefault: true

Registry Configuration

registry:

  • name: "ghcr.io"
    selector: "ghcr.io/blueray-automation/*"
    username: "Akash3242535" #dummy
    password: "ghp_asdwdwdadfrbddggdg" #dummy
    timeout: 50s

Email Notifications Configuration

notif:
mail:
host: "smtp.gmail.com"
port: 587
ssl: false
username: "[email protected]"
password: "abcd efgh ijkl"
from: "[email protected]"
to: "[email protected]"`

Expected behaviour

It should login to ghcr.io and compare its latest tag with the image running locally and send notification on email

Actual behaviour

Getting below error :
'diun-1 | Tue, 07 Jan 2025 17:26:24 UTC INF Cron triggered diun-1 | Tue, 07 Jan 2025 17:26:24 UTC INF Found 3 image(s) to analyze provider=docker diun-1 | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker diun-1 | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker diun-1 | Tue, 07 Jan 2025 17:26:26 UTC INF Jobs completed added=0 failed=2 skipped=0 unchanged=1 updated=0 diun-1 | Tue, 07 Jan 2025 17:26:26 UTC INF Next run in 45 seconds 914 milliseconds (2025-01-07 17:27:10.86206423 +0000 UTC) postgres-db | 2025-01-07 17:26:52.505 UTC [790] FATAL: role "root" does not exist diun-1 | Tue, 07 Jan 2025 17:27:10 UTC INF Cron triggered diun-1 | Tue, 07 Jan 2025 17:27:10 UTC INF Found 3 image(s) to analyze provider=docker diun-1 | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker diun-1 | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker'

Steps to reproduce

1: Have diun
2. Try fetching image digest from ghcr.io private registry

Diun version

crazymax/diun:latest

Docker info

Client: Docker Engine - Community
 Version:    27.4.1
 Context:    default
 Debug Mode: false
 Plugins:
  buildx: Docker Buildx (Docker Inc.)
    Version:  v0.19.3
    Path:     /usr/libexec/docker/cli-plugins/docker-buildx
  compose: Docker Compose (Docker Inc.)
    Version:  v2.32.1
    Path:     /usr/libexec/docker/cli-plugins/docker-compose

Server:
 Containers: 9
  Running: 0
  Paused: 0
  Stopped: 9
 Images: 27
 Server Version: 27.4.1
 Storage Driver: overlay2
  Backing Filesystem: extfs
  Supports d_type: true
  Using metacopy: false
  Native Overlay Diff: true
  userxattr: false
 Logging Driver: loki
 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: 19rw578esv7ga7gvmuiskpc6x
  Is Manager: true
  ClusterID: iroe28cvyteenfwmkjdhtwmbd
  Managers: 1
  Nodes: 1
  Default Address Pool: 10.0.0.0/8  
  SubnetSize: 24
  Data Path Port: 4789
  Orchestration:
   Task History Retention Limit: 5
  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: 192.168.1.40
  Manager Addresses:
   192.168.1.40:2377
 Runtimes: io.containerd.runc.v2 runc
 Default Runtime: runc
 Init Binary: docker-init
 containerd version: 88bf19b2105c8b17560993bee28a01ddc2f97182
 runc version: v1.2.2-0-g7cb3632
 init version: de40ad0
 Security Options:
  apparmor
  seccomp
   Profile: builtin
  cgroupns
 Kernel Version: 6.8.0-50-generic
 Operating System: Ubuntu 22.04.5 LTS
 OSType: linux
 Architecture: x86_64
 CPUs: 12
 Total Memory: 15.35GiB
 Name: user-IdeaPad-Slim-5-14IAH8
 ID: 8c49f837-2b6e-4976-92c9-dc77f36f811a
 Docker Root Dir: /var/lib/docker
 Debug Mode: false
 Experimental: false
 Insecure Registries:
  127.0.0.0/8
 Live Restore Enabled: false

Docker Compose config

No response

Logs

''diun-1                | Tue, 07 Jan 2025 17:26:24 UTC INF Cron triggered
diun-1                | Tue, 07 Jan 2025 17:26:24 UTC INF Found 3 image(s) to analyze provider=docker
diun-1                | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker
diun-1                | Tue, 07 Jan 2025 17:26:25 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker
diun-1                | Tue, 07 Jan 2025 17:26:26 UTC INF Jobs completed added=0 failed=2 skipped=0 unchanged=1 updated=0
diun-1                | Tue, 07 Jan 2025 17:26:26 UTC INF Next run in 45 seconds 914 milliseconds (2025-01-07 17:27:10.86206423 +0000 UTC)
postgres-db           | 2025-01-07 17:26:52.505 UTC [790] FATAL:  role "root" does not exist
diun-1                | Tue, 07 Jan 2025 17:27:10 UTC INF Cron triggered
diun-1                | Tue, 07 Jan 2025 17:27:10 UTC INF Found 3 image(s) to analyze provider=docker
diun-1                | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-be-customer-v2:develop-0.3.12462362524 provider=docker
diun-1                | Tue, 07 Jan 2025 17:27:11 UTC WRN Cannot get remote manifest error="cannot get image digest from HEAD request: unable to retrieve auth token: invalid username/password: unauthorized" image=ghcr.io/blueray-automation/nova-web-admin:develop-0.3.12502076899 provider=docker'

Additional info

No response

@crazy-max
Copy link
Owner

selector: "ghcr.io/blueray-automation/*"

Selector doesn't look correct, we don't support wildcard, it should be ghcr.io/blueray-automation.

@RohanYashwantrao
Copy link
Author

RohanYashwantrao commented Jan 8, 2025

I fixed that, but still it gives the same issue . I am able to login to docker using 'docker login ghcr.io' and pull image , but diun is not able to authenticate even after providing correct creds in diun.yml

@royaltongue
Copy link

Also getting this error, but sporadically. Sometimes it's these images, sometimes it others, and sometime ones that threw errors previously will work fine.

2025-01-13T04:10:09.538129395Z Sun, 12 Jan 2025 23:10:09 EST INF Starting Diun version=v4.29.0
2025-01-13T04:10:09.538711610Z Sun, 12 Jan 2025 23:10:09 EST INF Configuration loaded from 11 environment variable(s)
2025-01-13T04:10:09.543369851Z Sun, 12 Jan 2025 23:10:09 EST INF Cron triggered
2025-01-13T04:10:09.704933292Z Sun, 12 Jan 2025 23:10:09 EST INF Found 62 image(s) to analyze provider=docker
2025-01-13T04:10:22.522092410Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: pinging container registry lscr.io: Get \"https://lscr.io/v2/\": dial tcp: lookup lscr.io on 127.0.0.11:53: server misbehaving" image=lscr.io/linuxserver/code-server:latest provider=docker
2025-01-13T04:10:22.522119227Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: pinging container registry lscr.io: Get \"https://lscr.io/v2/\": dial tcp: lookup lscr.io on 127.0.0.11:53: server misbehaving" image=lscr.io/linuxserver/bookstack:latest provider=docker
2025-01-13T04:10:22.523696084Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Ambentley%2Fomada-controller%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/mbentley/omada-controller:latest provider=docker
2025-01-13T04:10:22.523947868Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fradarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/radarr:latest provider=docker
2025-01-13T04:10:22.524154293Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fsonarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/sonarr:latest provider=docker
2025-01-13T04:10:22.524166431Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fsonarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/sonarr:latest provider=docker
2025-01-13T04:10:22.524171752Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fsonarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/sonarr:latest provider=docker
2025-01-13T04:10:22.524176840Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fradarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/radarr:latest provider=docker
2025-01-13T04:10:22.524243131Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fqbittorrent%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/qbittorrent:latest provider=docker
2025-01-13T04:10:22.524341825Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fsabnzbd%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/sabnzbd:latest provider=docker
2025-01-13T04:10:22.524563195Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fprowlarr%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/prowlarr:latest provider=docker
2025-01-13T04:10:22.524573864Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Fplex%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/plex:latest provider=docker
2025-01-13T04:10:22.526184888Z Sun, 12 Jan 2025 23:10:22 EST WRN Cannot get remote manifest error="cannot get image digest from HEAD request: Get \"https://auth.docker.io/token?scope=repository%3Alinuxserver%2Ftautulli%3Apull&service=registry.docker.io\": dial tcp: lookup auth.docker.io on 127.0.0.11:53: server misbehaving" image=docker.io/linuxserver/tautulli:latest provider=docker
2025-01-13T04:10:26.895985504Z Sun, 12 Jan 2025 23:10:26 EST INF Jobs completed added=0 failed=13 skipped=0 unchanged=49 updated=0
2025-01-13T04:10:26.896010156Z Sun, 12 Jan 2025 23:10:26 EST INF Cron initialized with schedule 00 12 * * FRI
2025-01-13T04:10:26.896073120Z Sun, 12 Jan 2025 23:10:26 EST INF Next run in 4 days 12 hours (2025-01-17 12:00:02.239507422 -0500 EST)

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

No branches or pull requests

3 participants