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

`ENOENT: no such file or directory, open 'undefined/currentCreds-lastfm-lastfm-XXXX.json'` #71

Closed samdoshi closed 1 year ago

samdoshi commented 1 year ago

Please check the FAQ before submitting a bug report.

Describe the bug

I've upgraded my Docker based installation, and am unable to re-authenticate Last.fm.

I'm receiving the following error on the callback page:

ENOENT: no such file or directory, open 'undefined/currentCreds-lastfm-lastfm-XXXX.json'

Looks like the config dir isn't propagating correctly.

Versions (please complete the following information):

FoxxMD commented 1 year ago

Please check the v0.4.0 release/migration notes and the updated docker install documentation.

The docker image defaults to CONFIG_DIR=/config but it looks like maybe your container is defining CONFIG_DIR with an empty value (CONFIG_DIR= ?) Can you provide the docker run command used to start the container?

samdoshi commented 1 year ago

I'm on NixOS, and running it with Podman via a SystemD service, but this is the ExecStart:

exec podman run \
  --rm \
  --name='multi-scrobbler' \
  --log-driver=journald \
  --cidfile=/run/podman-'multi-scrobbler'.ctr-id \
  --cgroups=no-conmon \
  --sdnotify=conmon \
  -d \
  --replace \
  -e 'LOG_LEVEL'='debug' \
  -e 'PGID'='1000' \
  -e 'PUID'='1000' \
  -p '9078:9078' \
  -v '/home/sam/Containers/multi-scrobbler:/config' \
  docker.io/foxxmd/multi-scrobbler:0.4.0

But I've just retried it with:

exec podman run \
  --rm \
  --name='multi-scrobbler' \
  --log-driver=journald \
  --cidfile=/run/podman-'multi-scrobbler'.ctr-id \
  --cgroups=no-conmon \
  --sdnotify=conmon \
  -d \
  --replace \
  -e 'CONFIG_DIR'='/config' \
  -e 'LOG_LEVEL'='debug' \
  -e 'PGID'='1000' \
  -e 'PUID'='1000' \
  -p '9078:9078' \
  -v '/home/sam/Containers/multi-scrobbler:/config' \
  docker.io/foxxmd/multi-scrobbler:0.4.0

And it still has the same issue

FoxxMD commented 1 year ago

@samdoshi can you try docker.io/foxxmd/multi-scrobbler:develop and see if that fixes your issue?

samdoshi commented 1 year ago

Just tried it now, it has fixed my issue. I got an OK on the callback page. And the currentCreds-lastfm-lastfm-XXXX.json file was created.

Thank you so much for the quick response.

(I did have to restart the container after authenticating for it to pick up the authentication though)