Unsolved spotify can't find active device
-
so consult log and see what happen (it’s have 615 restarts)
-
when i am running magic mirror -
────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ fork │ 2 │ stopped │ 0% │ 0b │
│ 1 │ librespot │ fork │ 630 │ errored │ 0% │ 0b │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
[PM2][WARN] Current process list is not synchronized with saved list. Type ‘pm2 save’ to synchronize. -
you mean the logs in /var/log/journal/?
-
no, just with
npx pm2 log librespot
-
in the PM2 logs for librespot - this is what i see continuously
[2024-05-18T10:41:18Z ERROR librespot]--username
/-u
can not be an empty string
[2024-05-18T10:41:18Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
[2024-05-18T10:41:18Z ERROR librespot]--username
/-u
can not be an empty string
[2024-05-18T10:41:18Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
[2024-05-18T10:41:18Z ERROR librespot]--username
/-u
can not be an empty string
[2024-05-18T10:41:18Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
[2024-05-18T10:41:18Z ERROR librespot]--username
/-u
can not be an empty string
[2024-05-18T10:41:18Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
[2024-05-18T10:41:18Z ERROR librespot]--username
/-u
can not be an empty string -
so it’s means that your
EXT-Librespot
config have mistakesee this feature:
email:
andpassword:
I think… you have this config:
email: "", password: "",
replace data by your credentials
when done, delete librepost pm2 process:
npx delete librespot
and restart MagicMirror -
gave email id and password. librespot is running now but Magic Mirror give the same error that it can find device.
────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
│ 0 │ MagicMirror │ fork │ 2 │ stopped │ 0% │ 0b │
│ 1 │ librespot │ fork │ 656 │ online │ 0% │ 6.3mb │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
[PM2][WARN] Current process list is not synchronized with saved list. Type 'pm2Magic mirror message:
2024-05-18 16:21:30.827] [LOG] [LIBRESPOT] Restart
[2024-05-18 16:21:35.012] [LOG] [SPOTIFY:PLAY] RETRY Error 404 null {
error: {
status: 404,
message: ‘Player command failed: No active device found’,
reason: ‘NO_ACTIVE_DEVICE’
}
} -
Thanks. i had given wrong credentials. fixed that now
-
Hi,
After you helped me last time, Spotify was working fine. But today suddenly its not working. Librespot logs says loaded as per the logs below (although wrong song, it picked whatever I played last time few days back, even with telegram it won’t take the new song.) but magic mirror says status 404: no active device./home/pi/.pm2/logs/librespot-error.log last 15 lines:
1|librespo | [2024-05-26T04:23:16Z INFO librespot_playback::player] Loading <Barsaat Ki Dhun> with Spotify URI spotify:track:0IQRRlpomabOlzy39mcmmq
1|librespo | [2024-05-26T04:23:16Z INFO librespot_playback::player] <Barsaat Ki Dhun> (259215 ms) loaded
1|librespo | [2024-05-26T04:23:19Z INFO librespot] Gracefully shutting down
1|librespo | [2024-05-26T04:23:19Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
1|librespo | [2024-05-26T04:23:19Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:4070
1|librespo | [2024-05-26T04:23:19Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gew4.spotify.com:80
1|librespo | [2024-05-26T04:23:19Z INFO librespot_core::session] Connecting to AP “ap-gae2.spotify.com:4070”
1|librespo | [2024-05-26T04:23:20Z INFO librespot_core::session] Authenticated as “31z63chna7vmvta2q2ikkgidkoyy” !
1|librespo | [2024-05-26T04:23:20Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Cubic(40.0)
1|librespo | [2024-05-26T04:23:20Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16, sample rate: 44100
1|librespo | [2024-05-26T04:23:20Z INFO librespot_playback::convert] Converting with ditherer: tpdf
1|librespo | [2024-05-26T04:23:20Z INFO librespot_core::session] Country: “IN”
1|librespo | [2024-05-26T04:23:22Z INFO librespot_playback::player] Loading <Barsaat Ki Dhun> with Spotify URI spotify:track:0IQRRlpomabOlzy39mcmmq
1|librespo | [2024-05-26T04:23:23Z INFO librespot_playback::player] <Barsaat Ki Dhun> (259215 ms) loaded
1|librespo | [2024-05-26T04:24:28Z INFO librespot] Gracefully shutting down -
After your help Spotify was working fine until today. I have updated all the modules. But getting this error. It says loaded but nothing plays
[2024-05-26 11:03:44.907] [LOG] [SPOTIFY:PLAY] RETRY Error 404 null {
error: {
status: 404,
message: ‘Player command failed: No active device found’,
reason: ‘NO_ACTIVE_DEVICE’
}
}i checked librespot is working fine. i even re-installed librespot but spotify still woudn’t identify librespot. Below is the log from librespot
1|librespot | [2024-05-26T05:33:32Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
1|librespot | [2024-05-26T05:33:33Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:443
1|librespot | [2024-05-26T05:33:33Z INFO librespot_core::session] Connecting to AP “ap-gae2.spotify.com:4070”
1|librespot | [2024-05-26T05:33:33Z INFO librespot_core::session] Authenticated as “31z63chna7vmvta2q2ikkgidkoyy” !
1|librespot | [2024-05-26T05:33:33Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Cubic(40.0)
1|librespot | [2024-05-26T05:33:33Z INFO librespot_core::session] Country: “IN”
1|librespot | [2024-05-26T05:33:33Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16, sample rate: 44100
1|librespot | [2024-05-26T05:33:33Z INFO librespot_playback::convert] Converting with ditherer: tpdf
1|librespot | [2024-05-26T05:33:36Z INFO librespot_playback::player] Loading <Kesariya (From “Brahmastra”)> with Spotify URI spotify:track:6VBhH7CyP56BXjp8VsDFPZ
1|librespot | [2024-05-26T05:33:38Z INFO librespot_playback::player] <Kesariya (From “Brahmastra”)> (268164 ms) loaded
1|librespot | [2024-05-26T05:33:38Z INFO librespot] Gracefully shutting down
1|librespot | [2024-05-26T05:33:39Z INFO librespot] librespot 0.4.2 a6e1258 (Built on 2023-06-21, Build ID: zuwVQKTQ, Profile: release)
1|librespot | [2024-05-26T05:33:39Z WARN librespot_core::apresolve] Ignoring blacklisted access point ap-gue1.spotify.com:443
1|librespot | [2024-05-26T05:33:39Z INFO librespot_core::session] Connecting to AP “ap-gae2.spotify.com:4070”
1|librespot | [2024-05-26T05:33:39Z INFO librespot_core::session] Authenticated as “31z63chna7vmvta2q2ikkgidkoyy” !
1|librespot | [2024-05-26T05:33:39Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Cubic(40.0)
1|librespot | [2024-05-26T05:33:39Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16, sample rate: 44100
1|librespot | [2024-05-26T05:33:39Z INFO librespot_playback::convert] Converting with ditherer: tpdf
1|librespot | [2024-05-26T05:33:39Z INFO librespot_core::session] Country: “IN”
1|librespot | [2024-05-26T05:33:42Z INFO librespot_playback::player] Loading <Kesariya (From “Brahmastra”)> with Spotify URI spotify:track:6VBhH7CyP56BXjp8VsDFPZ
1|librespot | [2024-05-26T05:33:44Z INFO librespot_playback::player] <Kesariya (From “Brahmastra”)> (268164 ms) loaded