1 1
gtj

Raspotify on NaoPi NeoPlus2

Recommended Posts

Hello,

 

I've been trying to install Raspotify on my NeoPlus2.

While it seems to be install OK, I can't find my device available in the list of Spotify-connect capable devices.

 

journalctl -u raspotify

reports:

 

gtj@nanopineoplus2:~$ journalctl -u raspotify
-- Logs begin at Mon 2020-05-04 02:26:25 UTC, end at Mon 2020-05-04 02:43:52 UTC
May 04 02:26:32 nanopineoplus2 systemd[1]: Starting Raspotify...
May 04 02:26:32 nanopineoplus2 systemd[1]: Started Raspotify.
May 04 02:26:32 nanopineoplus2 librespot[963]: [2020-05-04T02:26:32Z INFO  libre
May 04 02:26:33 nanopineoplus2 librespot[963]: thread 'main' panicked at 'called
May 04 02:26:33 nanopineoplus2 librespot[963]: stack backtrace:
May 04 02:26:33 nanopineoplus2 librespot[963]:    0:  0x10b13a4 - backtrace::bac
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at /cargo/
May 04 02:26:33 nanopineoplus2 librespot[963]:    1:  0x10b13a4 - backtrace::bac
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at /cargo/
May 04 02:26:33 nanopineoplus2 librespot[963]:    2:  0x10b13a4 - std::sys_commo
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    3:  0x10b13a4 - <std::sys_comm
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    4:  0x10d3ca4 - core::fmt::wri
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    5:  0x10abff0 - std::io::Write
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    6:  0x10b3954 - std::sys_commo
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    7:  0x10b3954 - std::sys_commo
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/lib
May 04 02:26:33 nanopineoplus2 librespot[963]:    8:  0x10b3954 - std::panicking
lines 1-23...skipping...
-- Logs begin at Mon 2020-05-04 02:26:25 UTC, end at Mon 2020-05-04 02:43:52 UTC. --
May 04 02:26:32 nanopineoplus2 systemd[1]: Starting Raspotify...
May 04 02:26:32 nanopineoplus2 systemd[1]: Started Raspotify.
May 04 02:26:32 nanopineoplus2 librespot[963]: [2020-05-04T02:26:32Z INFO  librespot] librespot (raspotify v0.14.0) 3672214 (2020-01-30). Built on 2020-02-16.
May 04 02:26:33 nanopineoplus2 librespot[963]: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 19, kind: Other, message: "N
May 04 02:26:33 nanopineoplus2 librespot[963]: stack backtrace:
May 04 02:26:33 nanopineoplus2 librespot[963]:    0:  0x10b13a4 - backtrace::backtrace::libunwind::trace::hb1e9954dcc6e7c1f
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/libunw
May 04 02:26:33 nanopineoplus2 librespot[963]:    1:  0x10b13a4 - backtrace::backtrace::trace_unsynchronized::h1b198a73034a9734
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.40/src/backtrace/mod.rs
May 04 02:26:33 nanopineoplus2 librespot[963]:    2:  0x10b13a4 - std::sys_common::backtrace::_print_fmt::hf691518b63d0b79d
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/sys_common/backtrace.rs:84
May 04 02:26:33 nanopineoplus2 librespot[963]:    3:  0x10b13a4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::he6a16924
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/sys_common/backtrace.rs:61
May 04 02:26:33 nanopineoplus2 librespot[963]:    4:  0x10d3ca4 - core::fmt::write::hc426988e4c4119a8
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libcore/fmt/mod.rs:1025
May 04 02:26:33 nanopineoplus2 librespot[963]:    5:  0x10abff0 - std::io::Write::write_fmt::h34e90dde595ba7cd
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/io/mod.rs:1426
May 04 02:26:33 nanopineoplus2 librespot[963]:    6:  0x10b3954 - std::sys_common::backtrace::_print::h406863a8800396cd
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/sys_common/backtrace.rs:65
May 04 02:26:33 nanopineoplus2 librespot[963]:    7:  0x10b3954 - std::sys_common::backtrace::print::hec570bc9fdd6a536
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/sys_common/backtrace.rs:50
May 04 02:26:33 nanopineoplus2 librespot[963]:    8:  0x10b3954 - std::panicking::default_hook::{{closure}}::hf187be78db8e291b
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:193
May 04 02:26:33 nanopineoplus2 librespot[963]:    9:  0x10b35b4 - std::panicking::default_hook::h9634e45fc0d61ba6
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:210
May 04 02:26:33 nanopineoplus2 librespot[963]:   10:  0x10b4030 - std::panicking::rust_panic_with_hook::h35923fdea5783220
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:471
May 04 02:26:33 nanopineoplus2 librespot[963]:   11:  0x10b3c48 - rust_begin_unwind
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:375
May 04 02:26:33 nanopineoplus2 librespot[963]:   12:  0x10cfac0 - core::panicking::panic_fmt::hd74e307162bc16e5
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libcore/panicking.rs:84
May 04 02:26:33 nanopineoplus2 librespot[963]:   13:  0x10cfbac - core::result::unwrap_failed::h36f73057b442c0eb
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libcore/result.rs:1188
May 04 02:26:33 nanopineoplus2 librespot[963]:   14:   0xbeb5e0 - librespot::main::h0ed06a728ac2479f
May 04 02:26:33 nanopineoplus2 librespot[963]:   15:   0xbec980 - std::rt::lang_start::{{closure}}::h3ecc962e3fb4564b
May 04 02:26:33 nanopineoplus2 librespot[963]:   16:  0x10b3ac4 - std::rt::lang_start_internal::{{closure}}::hc02935a73664ebd0
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/rt.rs:52
May 04 02:26:33 nanopineoplus2 librespot[963]:   17:  0x10b3ac4 - std::panicking::try::do_call::h9ca5184b6b3cc62d
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:292
May 04 02:26:33 nanopineoplus2 librespot[963]:   18:  0x10bb220 - __rust_maybe_catch_panic
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libpanic_unwind/lib.rs:78
May 04 02:26:33 nanopineoplus2 librespot[963]:   19:  0x10b4484 - std::panicking::try::hc53e4a11b02f3299
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panicking.rs:270
May 04 02:26:33 nanopineoplus2 librespot[963]:   20:  0x10b4484 - std::panic::catch_unwind::ha972c7f8a413a94c
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/panic.rs:394
May 04 02:26:33 nanopineoplus2 librespot[963]:   21:  0x10b4484 - std::rt::lang_start_internal::hdf6cc497202d2594
May 04 02:26:33 nanopineoplus2 librespot[963]:                        at src/libstd/rt.rs:51
systemctl status raspotify

reports:

 

● raspotify.service - Raspotify
   Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2020-05-04 02:43:10 UTC; 7min ago
 Main PID: 2278 (librespot)
    Tasks: 3 (limit: 1022)
   Memory: 840.0K
   CGroup: /system.slice/raspotify.service
           └─2278 /usr/bin/librespot --name raspotify --backend alsa --bitrate 320 --disable-audio-cache --enable-volume-normalisation --linear-volume --initi

May 04 02:43:10 nanopineoplus2 systemd[1]: Starting Raspotify...
May 04 02:43:10 nanopineoplus2 systemd[1]: Started Raspotify.
May 04 02:43:10 nanopineoplus2 librespot[2278]: [2020-05-04T02:43:10Z INFO  librespot] librespot (raspotify v0.14.0) 3672214 (2020-01-30). Built on 2020-02-16

gtj@nanopineoplus2:~$ apt update
Reading package lists... Done
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
W: Problem unlinking the file /var/cache/apt/pkgcache.bin - RemoveCaches (13: Permission denied)
W: Problem unlinking the file /var/cache/apt/srcpkgcache.bin - RemoveCaches (13: Permission denied)
gtj@nanopineoplus2:~$ sudo apt update
Hit:1 http://security.debian.org buster/updates InRelease
Hit:2 http://httpredir.debian.org/debian buster InRelease
Get:3 http://httpredir.debian.org/debian buster-updates InRelease [49.3 kB]
Get:5 http://httpredir.debian.org/debian buster-backports InRelease [46.7 kB]
Hit:4 https://apt.armbian.com buster InRelease
Get:6 http://httpredir.debian.org/debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
Get:7 http://httpredir.debian.org/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
Get:8 http://httpredir.debian.org/debian buster-backports/main armhf Contents (deb).diff/Index [27.9 kB]
Get:9 http://httpredir.debian.org/debian buster-backports/main arm64 Contents (deb).diff/Index [27.9 kB]
Get:10 http://httpredir.debian.org/debian buster-backports/main arm64 Packages 2020-05-04-0201.50.pdiff [860 B]
Get:11 http://httpredir.debian.org/debian buster-backports/main armhf Packages 2020-05-04-0201.50.pdiff [860 B]
Get:12 http://httpredir.debian.org/debian buster-backports/main armhf Contents (deb) 2020-05-04-0201.50.pdiff [265 B]
Get:10 http://httpredir.debian.org/debian buster-backports/main arm64 Packages 2020-05-04-0201.50.pdiff [860 B]
Get:11 http://httpredir.debian.org/debian buster-backports/main armhf Packages 2020-05-04-0201.50.pdiff [860 B]
Get:12 http://httpredir.debian.org/debian buster-backports/main armhf Contents (deb) 2020-05-04-0201.50.pdiff [265 B]
Get:13 http://httpredir.debian.org/debian buster-backports/main arm64 Contents (deb) 2020-05-04-0201.50.pdiff [264 B]
Get:13 http://httpredir.debian.org/debian buster-backports/main arm64 Contents (deb) 2020-05-04-0201.50.pdiff [264 B]
Fetched 210 kB in 13s (16.5 kB/s)
^C
gtj@nanopineoplus2:~$ Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 26, in <module>
    col.create(db)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 94, in create
    self._fill_commands(con)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 132, in _fill_commands
    self._parse_single_contents_file(con, f, fp.stdout)
  File "/usr/share/command-not-found/CommandNotFound/db/creator.py", line 230, in _parse_single_contents_file
    l.startswith('bin') or l.startswith('sbin')):
KeyboardInterrupt


and finally

systemctl status raspotify

reports:

 

● raspotify.service - Raspotify
   Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset
   Active: activating (auto-restart) (Result: exit-code) since Mon 2020-05-04 03
  Process: 3005 ExecStartPre=/bin/mkdir -m 0755 -p /var/cache/raspotify (code=ex
  Process: 3006 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify
  Process: 3008 ExecStart=/usr/bin/librespot --name ${DEVICE_NAME} $BACKEND_ARGS
 Main PID: 3008 (code=exited, status=1/FAILURE)

May 04 03:05:38 nanopineoplus2 librespot[3008]:                         uses.
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --enable-volume-normalis
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         Play all
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --normalisation-pregain
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         Pregain
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --linear-volume
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         increase
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --autoplay      autoplay
May 04 03:05:38 nanopineoplus2 systemd[1]: raspotify.service: Main process exite
May 04 03:05:38 nanopineoplus2 systemd[1]: raspotify.service: Failed with result
lines 1-18/18 (END)
● raspotify.service - Raspotify
   Loaded: loaded (/lib/systemd/system/raspotify.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Mon 2020-05-04 03:05:38 UTC; 32ms ago
  Process: 3005 ExecStartPre=/bin/mkdir -m 0755 -p /var/cache/raspotify (code=exited, status=0/SUCCESS)
  Process: 3006 ExecStartPre=/bin/chown raspotify:raspotify /var/cache/raspotify (code=exited, status=0/SU
  Process: 3008 ExecStart=/usr/bin/librespot --name ${DEVICE_NAME} $BACKEND_ARGS --bitrate ${BITRATE} $CAC
 Main PID: 3008 (code=exited, status=1/FAILURE)

May 04 03:05:38 nanopineoplus2 librespot[3008]:                         uses.
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --enable-volume-normalisation
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         Play all tracks at the same volume
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --normalisation-pregain PREGAIN
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         Pregain (dB) applied by volume nor
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --linear-volume
May 04 03:05:38 nanopineoplus2 librespot[3008]:                         increase volume linear instead of
May 04 03:05:38 nanopineoplus2 librespot[3008]:         --autoplay      autoplay similar songs when your m
May 04 03:05:38 nanopineoplus2 systemd[1]: raspotify.service: Main process exited, code=exited, status=1/F
May 04 03:05:38 nanopineoplus2 systemd[1]: raspotify.service: Failed with result 'exit-code'.


Any help with this will be greatly appreciated!

Share this post


Link to post
Share on other sites

Your post may need more formatting changes.

 

Tips:

 

  • use spoiler image.png when adding a long text,
  • use image.png when adding a code,


2 hours ago, gtj said:

trying to install Raspotify

You don't mention how you did that, or what steps you have taken ?

 

By the way, I just heard about that one: :  ncspot – ncurses spotify music client

 

Share this post


Link to post
Share on other sites
4 hours ago, gtj said:

Raspotify


For debugging application you need to contact Raspotify authors and show them logs - we don't know how this software works.
 

We can help you around Armbian. Does this SW needs active sound card? What is your sound hardware? Is it operational? We only look into those logs:

armbianmonitor -u
aplay -l

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1