-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
Comments
Selector doesn't look correct, we don't support wildcard, it should be |
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 |
Also getting this error, but sporadically. Sometimes it's these images, sometimes it others, and sometime ones that threw errors previously will work fine.
|
Support guidelines
I've found a bug and checked that ...
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:
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
Docker Compose config
No response
Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: