ThijmenGThN / swaparr

✦ A robust solution addressing stalled downloads in Starr apps.
MIT License
43 stars 0 forks source link

Unable to update automatically through watchtower #26

Closed cnstudios closed 1 month ago

cnstudios commented 1 month ago

After installing Swaparr I setup watchtower to automatically update the container, but watchtower is receiving an unauthorized error:

time="2024-07-22T00:09:06+02:00" level=debug msg="Pulling image" container=/swaparrwhisparr image="ghcr.io/thijmengthn/swaparr:latest" time="2024-07-22T00:09:35+02:00" level=debug msg="Error pulling image ghcr.io/thijmengthn/swaparr:latest, Error response from daemon: Head \"https://ghcr.io/v2/thijmengthn/swaparr/manifests/latest\": unauthorized" time="2024-07-22T00:09:35+02:00" level=info msg="Unable to update container \"/swaparrwhisparr\": Error response from daemon: Head \"https://ghcr.io/v2/thijmengthn/swaparr/manifests/latest\": unauthorized. Proceeding to next." time="2024-07-22T00:09:35+02:00" level=debug msg="Trying to load authentication credentials." container=/swaparrradarr image="ghcr.io/thijmengthn/swaparr:latest" time="2024-07-22T00:09:35+02:00" level=debug msg="No credentials for ghcr.io found" config_file=/config.json time="2024-07-22T00:09:35+02:00" level=debug msg="Got image name: ghcr.io/thijmengthn/swaparr:latest" time="2024-07-22T00:09:35+02:00" level=debug msg="Checking if pull is needed" container=/swaparrradarr image="ghcr.io/thijmengthn/swaparr:latest" time="2024-07-22T00:09:35+02:00" level=debug msg="Built challenge URL" URL="https://ghcr.io/v2/" time="2024-07-22T00:09:35+02:00" level=debug msg="Got response to challenge request" header="Bearer realm=\"https://ghcr.io/token\",service=\"ghcr.io\",scope=\"repository:user/image:pull\"" status="401 Unauthorized" time="2024-07-22T00:09:35+02:00" level=debug msg="Checking challenge header content" realm="https://ghcr.io/token" service=ghcr.io time="2024-07-22T00:09:35+02:00" level=debug msg="Setting scope for auth token" image=ghcr.io/thijmengthn/swaparr scope="repository:thijmengthn/swaparr:pull" time="2024-07-22T00:09:35+02:00" level=debug msg="No credentials found." time="2024-07-22T00:09:35+02:00" level=debug msg="Parsing image ref" host=ghcr.io image=thijmengthn/swaparr normalized=ghcr.io/thijmengthn/swaparr tag=latest time="2024-07-22T00:09:35+02:00" level=debug msg="Doing a HEAD request to fetch a digest" url="https://ghcr.io/v2/thijmengthn/swaparr/manifests/latest" time="2024-07-22T00:09:35+02:00" level=warning msg="Could not do a head request for \"ghcr.io/thijmengthn/swaparr:latest\", falling back to regular pull." container=/swaparrradarr image="ghcr.io/thijmengthn/swaparr:latest" time="2024-07-22T00:09:35+02:00" level=warning msg="Reason: registry responded to head request with \"403 Forbidden\", auth: \"not present\"" container=/swaparrradarr image="ghcr.io/thijmengthn/swaparr:latest"

Do I need to use my own ghcr.io credentials or something? Updating used to work perfectly before without any additional settings.

ThijmenGThN commented 1 month ago

Hi @cnstudios 👋

This problem has been solved, could you confirm if this is the case for you as well?

Would love to hear from you 😄

^ Thijmen

ThijmenGThN commented 1 month ago

Assuming this issue has been resolved. If not, do not hesitate to reopen.

cnstudios commented 1 month ago

I indeed can confirm the issue has been resolved. Thanks so much!