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

[BUG] Universal Mods (universal-docker and universal cloludflared) won't add to latest swag image #872

Closed
1 task done
stevenmccord opened this issue Apr 4, 2024 · 15 comments

Comments

@stevenmccord
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Name of mod

[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] (ERROR) linuxserver/mods:universal-docker digest could not be fetched from lscr.io
[mod-init] Adding linuxserver/mods:universal-cloudflared to container
[mod-init] (ERROR) linuxserver/mods:universal-cloudflared digest could not be fetched from lscr.io

Name of base container

image: linuxserver/swag

Current Behavior

Just got the latest release that was updated and the mods aren't adding properly. Other mods seem to be adding though.

Expected Behavior

All of the mods should add propertly on start.

Steps To Reproduce

Deploy the latest image of swag and add the following mods:

DOCKER_MODS=linuxserver/mods:swag-auto-proxy|linuxserver/mods:universal-docker|linuxserver/mods:universal-cloudflared

As a note, everything was working fine until the update and I didn't touch any configs or compose file.

Environment

- OS: Ubuntu
- How docker service was installed: apt-get

CPU architecture

x86-64

Docker creation

`docker compose up -d`

Container logs

[mod-init] Running Docker Modification Logic
[mod-init] Adding linuxserver/mods:swag-auto-proxy to container
[mod-init] Downloading linuxserver/mods:swag-auto-proxy from lscr.io
[mod-init] Installing linuxserver/mods:swag-auto-proxy
[mod-init] linuxserver/mods:swag-auto-proxy applied to container
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] (ERROR) linuxserver/mods:universal-docker digest could not be fetched from lscr.io
[mod-init] Adding linuxserver/mods:universal-cloudflared to container
[mod-init] (ERROR) linuxserver/mods:universal-cloudflared digest could not be fetched from lscr.io
s6-rc-compile: fatal: during dependency resolution for service init-mod-swag-auto-proxy-setup: undefined service name init-mod-universal-docker-setup
@stevenmccord
Copy link
Author

As a note, after I restarted it looked like the universal-docker container mod was added, but the cloudflared mod didn't add. I restarted again, and both are now erroring. Thanks!

@thespad
Copy link
Member

thespad commented Apr 4, 2024

Set DOCKER_MODS_DEBUG=true and recreate the container, then post those logs please.

@stevenmccord
Copy link
Author

It is interesting, as once I set that to true and restarted everything downloaded, however I restarted again and it errored. I have sent the success log as well as the failure one.

SUCCESS

[mod-init] Running Docker Modification Logic
[mod-init] (DEBUG) Running in debug mode
[mod-init] (DEBUG) Mod script version 3.20240225
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-auto-proxy'
[mod-init] Adding linuxserver/mods:swag-auto-proxy to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] Downloading linuxserver/mods:swag-auto-proxy from lscr.io
[mod-init] Installing linuxserver/mods:swag-auto-proxy
[mod-init] linuxserver/mods:swag-auto-proxy applied to container
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-docker'
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod has a multi-arch manifest
[mod-init] Downloading linuxserver/mods:universal-docker from lscr.io
[mod-init] Installing linuxserver/mods:universal-docker
[mod-init] linuxserver/mods:universal-docker applied to container
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-cloudflared'
[mod-init] Adding linuxserver/mods:universal-cloudflared to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod has a multi-arch manifest
[mod-init] Downloading linuxserver/mods:universal-cloudflared from lscr.io
[mod-init] Installing linuxserver/mods:universal-cloudflared
[mod-init] linuxserver/mods:universal-cloudflared applied to container

FAILURE

[mod-init] Running Docker Modification Logic
[mod-init] (DEBUG) Running in debug mode
[mod-init] (DEBUG) Mod script version 3.20240225
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-auto-proxy'
[mod-init] Adding linuxserver/mods:swag-auto-proxy to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:swag-auto-proxy digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-docker'
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:universal-docker digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-cloudflared'
[mod-init] Adding linuxserver/mods:universal-cloudflared to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:universal-cloudflared digest could not be fetched from lscr.io

@stevenmccord
Copy link
Author

I also, just saw this in the logs:

[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod has a multi-arch manifest
[mod-init] Downloading linuxserver/mods:universal-docker from lscr.io
[mod-init] (ERROR) Invalid tarball, could not download linuxserver/mods:universal-docker from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-cloudflared'

@Th3LaughingMan
Copy link

I am also getting this on mods for SWAG as well. Specifically the crowdsec and auto-reload mods

@thespad
Copy link
Member

thespad commented Apr 4, 2024

I'm not in a position to do any investigation until this evening, but it may just be a transient GitHub issue.

@stevenmccord
Copy link
Author

I eventually restarted enough times where I am back up and running, so you might be right that it is a transient issue, I don't want to restart now ha!

@aptalca
Copy link
Member

aptalca commented Apr 4, 2024

This is likely a github/ghcr issue. While we are investigating, you can force the mods to download from Docker Hub instead by replacing lscr.io/ in the mods name with docker.io/ and setting a new var DOCKER_MODS_FORCE_REGISTRY=true

In other words, set the following:

DOCKER_MODS=docker.io/linuxserver/mods:blah
DOCKER_MODS_FORCE_REGISTRY=true

@LinuxServer-CI
Copy link

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@4-FLOSS-Free-Libre-Open-Source-Software

Same issue happened to me.

@smp46
Copy link

smp46 commented May 21, 2024

Definitely still an issue, having to move away from SWAG as I wasn't able to get it to work even once, tried the DOCKER_MODS_FORCE_REGISTRY tag as well and no dice. Here's my debug log file, looks quite similar to those above:

[mod-init] Running Docker Modification Logic
[mod-init] (DEBUG) Running in debug mode
[mod-init] (DEBUG) Mod script version 3.20240413
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='swag-auto-proxy'
[mod-init] Adding linuxserver/mods:swag-auto-proxy to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:swag-auto-proxy digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-docker'
[mod-init] Adding linuxserver/mods:universal-docker to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:universal-docker digest could not be fetched from lscr.io
[mod-init] (DEBUG) Registry='lscr.io', Repository='linuxserver', Image='linuxserver/mods', Tag='universal-cloudflared'
[mod-init] Adding linuxserver/mods:universal-cloudflared to container
[mod-init] (DEBUG) Using https://ghcr.io/token?scope=repository%3Alinuxserver%2Fmods%3Apull as auth endpoint
[mod-init] (DEBUG) Arch detected as amd64
[mod-init] (DEBUG) Mod only has a single arch manifest
[mod-init] (ERROR) linuxserver/mods:universal-cloudflared digest could not be fetched from lscr.io

@LinuxServer-CI
Copy link

This issue has been automatically marked as stale because it has not had recent activity. This might be due to missing feedback from OP. It will be closed if no further activity occurs. Thank you for your contributions.

@aflet54
Copy link

aflet54 commented Jun 25, 2024

Still affecting me.
I expect there is little awareness of this issue, due to its transient and inconsistnent nature

@aptalca
Copy link
Member

aptalca commented Jun 25, 2024

The original issue reported here was due to a GitHub issue that happened in April 4th, which was widespread. That issue was resolved the next day.

If you're still having issues, you can drop by our discord to try and troubleshoot.

@aptalca aptalca closed this as completed Jun 25, 2024
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Development

No branches or pull requests

8 participants