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

Watchtower cannot pull images anymore "401 Unauthorized" #1081

Closed
NeoTrace82 opened this issue Oct 4, 2021 · 4 comments
Closed

Watchtower cannot pull images anymore "401 Unauthorized" #1081

NeoTrace82 opened this issue Oct 4, 2021 · 4 comments

Comments

@NeoTrace82
Copy link

NeoTrace82 commented Oct 4, 2021

Running Watchtower on ARM 64 Raspbian, has been working ever since and stopped now with the following error message:

Could not do a head request for "sha256:e1688bbea26473c306345275b9b1f2ccad6c9293af9298d28098c629a77fcbf6", falling back to regular pull.
Reason: registry responded to head request with "401 Unauthorized", auth: "Bearer realm=\"https://auth.docker.io/token\",service=\"registry.docker.io\",scope=\"repository:library/sha256:pull\",error=\"insufficient_scope\""
Unable to update container "/watchtower": Error response from daemon: pull access denied for sha256, repository does not exist or may require 'docker login': denied: requested access to the resource is denied. Proceeding to next.

nothing was changed in the config and i do run watchtower every 5 days, so pull request shouldn't be an issue

anyone having or had that issue and knows what to do?

watchtower config:

version: "2"
services:
  watchtower:
    image: containrrr/watchtower:latest
    container_name: watchtower
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    command: --schedule "0 0 4 * * *"
    environment:
      - TZ=Europe/Vienna
      - WATCHTOWER_DEBUG=false
      - WATCHTOWER_NOTIFICATIONS_LEVEL=debug
      - WATCHTOWER_CLEANUP=true
      - DOCKER_API_VERSION=1.24
      - WATCHTOWER_INCLUDE_STOPPED=true
      #- WATCHTOWER_POLL_INTERVAL=13200
      #- WATCHTOWER_POLL_INTERVAL=10
      - WATCHTOWER_NO_PULL=false
      - WATCHTOWER_MONITOR_ONLY=false
      - WATCHTOWER_NOTIFICATIONS=email

      - WATCHTOWER_NOTIFICATION_EMAIL_DELAY=2
      - WATCHTOWER_NOTIFICATION_EMAIL_SUBJECTTAG=DONTPANIC
    restart: unless-stopped
@github-actions
Copy link

github-actions bot commented Oct 4, 2021

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

@piksel
Copy link
Member

piksel commented Oct 4, 2021

The actual error is that the image name is just a hash (sha256:e1688bbea26473c306345275b9b1f2ccad6c9293af9298d28098c629a77fcbf) which means that watchtower cannot update it. See #1050

@NeoTrace82
Copy link
Author

NeoTrace82 commented Oct 4, 2021

The actual error is that the image name is just a hash (sha256:e1688bbea26473c306345275b9b1f2ccad6c9293af9298d28098c629a77fcbf) which means that watchtower cannot update it. See #1050

can't run "latest-dev" as it is only available for amd64 for now, but ill watch #1050
thanks

@piksel
Copy link
Member

piksel commented Oct 9, 2021

Closing as duplicate of #1050

@piksel piksel closed this as completed Oct 9, 2021
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

2 participants