FoxxMD / multi-scrobbler

Scrobble plays from multiple sources to multiple clients
https://foxxmd.github.io/multi-scrobbler
MIT License
299 stars 14 forks source link

Docker setup failed (failed to Lchown "" for UID x, GID x) #96

Closed mindlessp0tatoe closed 9 months ago

mindlessp0tatoe commented 9 months ago

Describe the bug Whist trying to self-host multi-scrobbler, I receive an error. Pulling and downloading the docker images go well, but it fails at a certain point.

To Reproduce Steps to reproduce the behavior:

  1. create a docker-compose.yaml with below yaml.
  2. Deploy.
  3. See error
version: '3.7'

services:
  multi-scrobbler:
    image: foxxmd/multi-scrobbler
    container_name: multi-scrobbler
    environment:
      - TZ=Cont/TZ
      - SPOTIFY_CLIENT_ID=x
      - SPOTIFY_CLIENT_SECRET=x
      - SPOTIFY_REDIRECT_URI=http://192.168.x.x:9078/callback
      - MALOJA_URL=https://scrobble.local.x.x
      - MALOJA_API_KEY=x
      - PUID=1000
      - PGID=1000
    volumes:
      - /home/syber/multiscrobbler/config:/config
    ports:
      - 9078:9078
    restart: unless-stopped

/etc/subuid: syber:231072:65536

/etc/subgid: syber:231072:65536

Logs

failed to register layer: ApplyLayer exit status 1 stdout: stderr: failed to Lchown "/usr/local/lib/node_modules/patch-package/node_modules/tmp/LICENSE" for UID 2119470584, GID 2042662593 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /usr/local/lib/node_modules/patch-package/node_modules/tmp/LICENSE: invalid argument

failed to deploy a stack: multi-scrobbler Pulling 3f9808342d3e Pulling fs layer b81e0d862760 Pulling fs layer 5eae00e90bd6 Pulling fs layer 852233c4c30e Pulling fs layer 25170e0757ed Pulling fs layer c9cd0f3dbff7 Pulling fs layer 20df4e3daa12 Pulling fs layer b6f0daf554f1 Pulling fs layer 65c0e9591195 Pulling fs layer 4f4fb700ef54 Pulling fs layer 34c345529374 Pulling fs layer 32fba3b3c46c Pulling fs layer 0f9e5cdc96e3 Pulling fs layer 57a0e7bd4bab Pulling fs layer 65c0e9591195 Waiting 4f4fb700ef54 Waiting 34c345529374 Waiting 32fba3b3c46c Waiting 0f9e5cdc96e3 Waiting 57a0e7bd4bab Waiting 852233c4c30e Waiting 25170e0757ed Waiting c9cd0f3dbff7 Waiting 20df4e3daa12 Waiting b6f0daf554f1 Waiting 5eae00e90bd6 Downloading [=====================================> ] 724B/966B 5eae00e90bd6 Downloading [==================================================>] 966B/966B 5eae00e90bd6 Verifying Checksum 5eae00e90bd6 Download complete b81e0d862760 Downloading [========> ] 719B/4.019kB b81e0d862760 Downloading [==================================================>] 4.019kB/4.019kB b81e0d862760 Download complete 3f9808342d3e Downloading [> ] 59.53kB/5.747MB 3f9808342d3e Downloading [====================> ] 2.354MB/5.747MB 3f9808342d3e Downloading [==========================================> ] 4.916MB/5.747MB 3f9808342d3e Download complete 3f9808342d3e Extracting [> ] 65.54kB/5.747MB 3f9808342d3e Extracting [===========> ] 1.376MB/5.747MB 3f9808342d3e Extracting [===================================> ] 4.063MB/5.747MB 3f9808342d3e Extracting [=================================================> ] 5.702MB/5.747MB 3f9808342d3e Extracting [==================================================>] 5.747MB/5.747MB 3f9808342d3e Pull complete b81e0d862760 Extracting [==================================================>] 4.019kB/4.019kB b81e0d862760 Extracting [==================================================>] 4.019kB/4.019kB 25170e0757ed Downloading [===========> ] 733B/3.202kB 25170e0757ed Downloading [==================================================>] 3.202kB/3.202kB 25170e0757ed Verifying Checksum 25170e0757ed Download complete 852233c4c30e Downloading [> ] 46.01kB/4.476MB b81e0d862760 Pull complete 5eae00e90bd6 Extracting [==================================================>] 966B/966B 5eae00e90bd6 Extracting [==================================================>] 966B/966B 852233c4c30e Downloading [===> ] 340.9kB/4.476MB 852233c4c30e Downloading [==========> ] 930.7kB/4.476MB c9cd0f3dbff7 Downloading [> ] 259kB/25.81MB 852233c4c30e Downloading [=======================> ] 2.106MB/4.476MB 5eae00e90bd6 Pull complete 852233c4c30e Downloading [====================================> ] 3.306MB/4.476MB c9cd0f3dbff7 Downloading [===> ] 1.848MB/25.81MB 852233c4c30e Verifying Checksum 852233c4c30e Download complete 852233c4c30e Extracting [> ] 65.54kB/4.476MB c9cd0f3dbff7 Downloading [======> ] 3.188MB/25.81MB 852233c4c30e Extracting [========> ] 786.4kB/4.476MB c9cd0f3dbff7 Downloading [===========> ] 5.834MB/25.81MB 852233c4c30e Extracting [==================================> ] 3.08MB/4.476MB c9cd0f3dbff7 Downloading [================> ] 8.471MB/25.81MB 852233c4c30e Extracting [================================================> ] 4.325MB/4.476MB c9cd0f3dbff7 Downloading [=====================> ] 11.14MB/25.81MB 852233c4c30e Extracting [==================================================>] 4.476MB/4.476MB c9cd0f3dbff7 Downloading [==========================> ] 13.78MB/25.81MB c9cd0f3dbff7 Downloading [===============================> ] 16.43MB/25.81MB c9cd0f3dbff7 Downloading [====================================> ] 19.06MB/25.81MB 852233c4c30e Pull complete c9cd0f3dbff7 Downloading [==========================================> ] 21.7MB/25.81MB 25170e0757ed Extracting [==================================================>] 3.202kB/3.202kB 25170e0757ed Extracting [==================================================>] 3.202kB/3.202kB c9cd0f3dbff7 Downloading [===============================================> ] 24.36MB/25.81MB c9cd0f3dbff7 Verifying Checksum c9cd0f3dbff7 Download complete 20df4e3daa12 Downloading [==================================================>] 190B/190B 20df4e3daa12 Verifying Checksum 20df4e3daa12 Download complete b6f0daf554f1 Downloading [=================================> ] 733B/1.084kB b6f0daf554f1 Downloading [==================================================>] 1.084kB/1.084kB b6f0daf554f1 Verifying Checksum b6f0daf554f1 Download complete 25170e0757ed Pull complete c9cd0f3dbff7 Extracting [> ] 262.1kB/25.81MB c9cd0f3dbff7 Extracting [======> ] 3.146MB/25.81MB c9cd0f3dbff7 Extracting [===========> ] 5.767MB/25.81MB c9cd0f3dbff7 Extracting [=================> ] 8.913MB/25.81MB c9cd0f3dbff7 Extracting [======================> ] 11.8MB/25.81MB c9cd0f3dbff7 Extracting [===========================> ] 14.16MB/25.81MB c9cd0f3dbff7 Extracting [================================> ] 16.78MB/25.81MB 4f4fb700ef54 Downloading [==================================================>] 32B/32B 4f4fb700ef54 Verifying Checksum 4f4fb700ef54 Download complete c9cd0f3dbff7 Extracting [======================================> ] 19.92MB/25.81MB 65c0e9591195 Downloading [> ] 21.13kB/2.078MB c9cd0f3dbff7 Extracting [=========================================> ] 21.5MB/25.81MB 65c0e9591195 Downloading [================> ] 668.6kB/2.078MB 65c0e9591195 Downloading [======================================> ] 1.607MB/2.078MB c9cd0f3dbff7 Extracting [===========================================> ] 22.54MB/25.81MB 65c0e9591195 Verifying Checksum 65c0e9591195 Download complete c9cd0f3dbff7 Extracting [==============================================> ] 23.86MB/25.81MB c9cd0f3dbff7 Extracting [==================================================>] 25.81MB/25.81MB 34c345529374 Downloading [> ] 3.469kB/212.5kB 34c345529374 Downloading [=======================> ] 99.38kB/212.5kB 34c345529374 Verifying Checksum 34c345529374 Download complete 32fba3b3c46c Downloading [==================================================>] 462B/462B 32fba3b3c46c Verifying Checksum 32fba3b3c46c Download complete c9cd0f3dbff7 Pull complete 20df4e3daa12 Extracting [==================================================>] 190B/190B 20df4e3daa12 Extracting [==================================================>] 190B/190B 0f9e5cdc96e3 Downloading [> ] 8.935kB/831.6kB 20df4e3daa12 Pull complete 0f9e5cdc96e3 Verifying Checksum 0f9e5cdc96e3 Download complete b6f0daf554f1 Extracting [==================================================>] 1.084kB/1.084kB b6f0daf554f1 Extracting [==================================================>] 1.084kB/1.084kB b6f0daf554f1 Pull complete 65c0e9591195 Extracting [> ] 32.77kB/2.078MB 65c0e9591195 Extracting [==================================> ] 1.442MB/2.078MB 65c0e9591195 Extracting [===============================================> ] 1.966MB/2.078MB 65c0e9591195 Extracting [==================================================>] 2.078MB/2.078MB 57a0e7bd4bab Downloading [> ] 149.1kB/14.54MB 57a0e7bd4bab Downloading [=> ] 455.6kB/14.54MB 57a0e7bd4bab Downloading [===> ] 1.058MB/14.54MB 57a0e7bd4bab Downloading [========> ] 2.389MB/14.54MB 57a0e7bd4bab Downloading [===============> ] 4.634MB/14.54MB 57a0e7bd4bab Downloading [========================> ] 7.161MB/14.54MB 57a0e7bd4bab Downloading [=================================> ] 9.7MB/14.54MB 57a0e7bd4bab Downloading [==========================================> ] 12.24MB/14.54MB 57a0e7bd4bab Verifying Checksum 57a0e7bd4bab Download complete failed to register layer: ApplyLayer exit status 1 stdout: stderr: failed to Lchown "/usr/local/lib/node_modules/patch-package/node_modules/tmp/LICENSE" for UID 2119470584, GID 2042662593 (try increasing the number of subordinate IDs in /etc/subuid and /etc/subgid): lchown /usr/local/lib/node_modules/patch-package/node_modules/tmp/LICENSE: invalid argument

Versions (please complete the following information):

FoxxMD commented 9 months ago

This looks like an error when using podman, correct? I haven't used podman so I'm not entirely sure what the issue is here.

EDIT: found a similar issue that is using regular docker rootless so please let me know what your host environment looks like (OS, docker/podman, rootless, etc..) This may be an issue with weird files ownership in a package dependency, rather than anything wrong on your end.

Please try foxxmd/multi-scrobbler:experimental first and let me know if this fixes your issue or if another/same error occurs.

mindlessp0tatoe commented 9 months ago

@FoxxMD Suprisingly experimental worked.

Host OS: proxmox LXC: Alpine Linux Docker (with docker-compose)

It seems experimental I am able to selfhost this without an error.

mindlessp0tatoe commented 9 months ago

Another issue I am running into is that spotify works fine, but maloja, listenbrainz and lastfm are not. When trying to "authenticate", I get the following message:

No source with the name [unnamed-lz] and type [listenbrainz

No source with the name [unnamed-lfm] and type [lastfm

No source with the name [unnamed-mlj] and type [maloja

My new docker-compose:

version: '3.7'

services:
  multi-scrobbler:
    image: foxxmd/multi-scrobbler:experimental
    container_name: multi-scrobbler
    environment:
      - TZ=Cont/TZ
      - SPOTIFY_CLIENT_ID=x
      - SPOTIFY_CLIENT_SECRET=x
      - SPOTIFY_REDIRECT_URI=http://192.168.x.x:9078/callback
      - MALOJA_URL=http://192.168.x.x:9003
      - MALOJA_API_KEY=x
      - LASTFM_API_KEY=x
      - LASTFM_SECRET=x
      - LZ_TOKEN=x-x-x-x-x
      - LZ_USER=syber
      - PUID=1000
      - PGID=1000
    volumes:
      - /home/syber/multiscrobbler/config:/config
    ports:
      - 9078:9078
    restart: unless-stopped
FoxxMD commented 9 months ago

Suprisingly experimental worked.

Glad to hear it.

I use the experimental tag for unstable testing so you should not stay on it as-is. You can either:

Pin the digest for stable + fix

The image you are currently on is the stable 0.5.2 release + fix.

foxxmd/multi-scrobbler:experimental@06ac284b257cdbb1b70808dc387f972d0ea2926a5e395d4d5e9569440a597943

Use develop with integrated fix

I've added the fix to the develop branch which includes the newest hotness and is my active dev branch that will be released to stable in a week or two. It's very likely to be stable for you (I run it in prod on my homelab) but no guarantees.

foxxmd/multi-scrobbler:develop

Update your docker-compose.yml to use one of those for image until the next release is cut.

FoxxMD commented 9 months ago

@syberslxt can you open a new issue for that error? thanks

mindlessp0tatoe commented 9 months ago

You are right, apologies! Creating new issue now.

foxxmd/mutli-scrobbler:develop

For those wanting to use this, there is a typo. should be multi.

Thank you once again @FoxxMD! Great stuff you got going on here :)