Posts by awiouy
-
-
I'm running it on the new version 122 on a Raspberry Pi 3 using a nightly build from Milhouse and it works pretty well. Artwork is displayed and I also listened to a podcast, jumping in time etc.
One issue: When I want to play a track from the auto-suggestions displayed below a playlist, it stops working (I removed timestamps etc.):
Code[librespot_connect::spirc] Fetching autoplay context uri [librespot_connect::spirc] Autoplay uri resolved to <"spotify:station:playlist:1rxlGK8SOz1PJgavHOXY7p"> [librespot_playback::player] Loading <Lesser Known Good> with Spotify URI <spotify:track:3vGnW6Pg1LCFDwHAMnHuXX> [librespot_connect::spirc] Resolved 50 tracks from <"spotify:playlist:1rxlGK8SOz1PJgavHOXY7p"> [librespot_playback::player] <Lesser Known Good> (300972 ms) loaded [librespot_connect::spirc] Fetching autoplay context uri thread 'main' panicked at 'Spotify servers returned an error. Restart librespot.', core/src/mercury/mod.rs:201:13
Hi donski
The issue is known, but not a solution
-
Hi
I have a problem that has plagued me for some time, I also tried to reinstall everything. when i start libreelerc, librespot crashes. Ever since I updated it to version 9.2.2. If I start it manually by deactivating and reactivating the service, it works fine.
I have a Intel NUC
Code
Display More2020-05-03 21:32:58.612 T:140508689057536 NOTICE: Librespot: monitor started 2020-05-03 21:32:58.652 T:140508689057536 NOTICE: Librespot: ['librespot', '--backend', 'pulseaudio', '--bitrate', '320', '--cache', 'cache', '--device', 'librespot', '--device-type', 'TV', '--disable-audio-cache', '--name', 'Librespot> 2020-05-03 21:32:59.450 T:140508689057536 NOTICE: Librespot: loaded module-null-sink sink_name=librespot 2020-05-03 21:32:59.609 T:140508689057536 NOTICE: Librespot: loaded module-rtp-send destination_ip=127.0.0.1 port=24642 source=librespot.monitor 2020-05-03 21:32:59.633 T:140508689057536 NOTICE: Librespot: suspended sink 1 2020-05-03 21:32:59.635 T:140507953743616 NOTICE: Librespot: librespot thread started 2020-05-03 21:32:59.652 T:140507953743616 NOTICE: Librespot: librespot started 2020-05-03 21:32:59.668 T:140507953743616 NOTICE: Librespot: [2020-05-03T21:32:59Z INFO librespot] librespot 703c4ddaa0 (2020-04-27). Built on 2020-05-02. Build ID: KnWpUyAk 2020-05-03 21:32:59.699 T:140507953743616 NOTICE: Librespot: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 19, kind: Other, message: "No such device" }', src/libcore/result.rs:1165:5 2020-05-03 21:32:59.750 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:32:59.750 T:140507953743616 NOTICE: Librespot: event panic 1/3 2020-05-03 21:32:59.781 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:32:59.781 T:140507953743616 NOTICE: Librespot: librespot stopped 2020-05-03 21:32:59.792 T:140507953743616 NOTICE: Librespot: librespot started 2020-05-03 21:32:59.799 T:140507953743616 NOTICE: Librespot: [2020-05-03T21:32:59Z INFO librespot] librespot 703c4ddaa0 (2020-04-27). Built on 2020-05-02. Build ID: KnWpUyAk 2020-05-03 21:32:59.819 T:140507953743616 NOTICE: Librespot: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 19, kind: Other, message: "No such device" }', src/libcore/result.rs:1165:5 2020-05-03 21:32:59.862 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:32:59.863 T:140507953743616 NOTICE: Librespot: event panic 2/3 2020-05-03 21:32:59.897 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:32:59.898 T:140507953743616 NOTICE: Librespot: librespot stopped 2020-05-03 21:32:59.996 T:140507953743616 NOTICE: Librespot: librespot started 2020-05-03 21:32:59.996 T:140507953743616 NOTICE: Librespot: [2020-05-03T21:32:59Z INFO librespot] librespot 703c4ddaa0 (2020-04-27). Built on 2020-05-02. Build ID: KnWpUyAk 2020-05-03 21:32:59.997 T:140507953743616 NOTICE: Librespot: thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 19, kind: Other, message: "No such device" }', src/libcore/result.rs:1165:5 2020-05-03 21:33:00.042 T:140508697450240 ERROR: ## LibreELEC Addon ## oe::load_url(http://releases.libreelec.tv/releases.json) ## ERROR: (URLError(gaierror(-3, 'Temporary failure in name resolution'),)) 2020-05-03 21:33:00.043 T:140508697450240 ERROR: Traceback (most recent call last): File "/var/lib/jenkins/LE/build4/workspace/Generic/build.LibreELEC-Generic.x86_64-9.2.2/LibreELEC-settings-6f6ca1e46c230d1e5045e6bb92a03889e1f1c71a/.install_pkg/usr/share/kodi/addons/service> File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen File "/usr/lib/python2.7/urllib2.py", line 429, in open File "/usr/lib/python2.7/urllib2.py", line 447, in _open File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain File "/usr/lib/python2.7/urllib2.py", line 1228, in http_open File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open URLError: <urlopen error [Errno -3] Temporary failure in name resolution> 2020-05-03 21:33:00.050 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:33:00.050 T:140507953743616 NOTICE: Librespot: event panic 3/3 2020-05-03 21:33:00.088 T:140507945350912 ERROR: ## LibreELEC Addon ## oe::load_url(https://update.libreelec.tv/updates.php?i=c948ff8c127c4b6eb2fe83615eaf26f7&d=LibreELEC&pa=Generic.x86_64&v=9.2.2&f=i915) ## ERROR: (URLError(gaierror(> 2020-05-03 21:33:00.094 T:140507945350912 ERROR: Traceback (most recent call last): File "/var/lib/jenkins/LE/build4/workspace/Generic/build.LibreELEC-Generic.x86_64-9.2.2/LibreELEC-settings-6f6ca1e46c230d1e5045e6bb92a03889e1f1c71a/.install_pkg/usr/share/kodi/addons/service> File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen File "/usr/lib/python2.7/urllib2.py", line 429, in open File "/usr/lib/python2.7/urllib2.py", line 447, in _open File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain File "/usr/lib/python2.7/urllib2.py", line 1241, in https_open File "/usr/lib/python2.7/urllib2.py", line 1198, in do_open URLError: <urlopen error [Errno -3] Temporary failure in name resolution> 2020-05-03 21:33:00.097 T:140507945350912 ERROR: ## LibreELEC Addon ## updates::check_updates_v2 ## ERROR: (TypeError('expected string or buffer',)) 2020-05-03 21:33:00.098 T:140507945350912 ERROR: Traceback (most recent call last): File "/var/lib/jenkins/LE/build4/workspace/Generic/build.LibreELEC-Generic.x86_64-9.2.2/LibreELEC-settings-6f6ca1e46c230d1e5045e6bb92a03889e1f1c71a/.install_pkg/usr/share/kodi/addons/service> File "/usr/lib/python2.7/json/__init__.py", line 339, in loads File "/usr/lib/python2.7/json/decoder.py", line 364, in decode TypeError: expected string or buffer 2020-05-03 21:33:00.116 T:140507953743616 NOTICE: Librespot: suspended sink 1 2020-05-03 21:33:00.116 T:140507953743616 NOTICE: Librespot: librespot stopped 2020-05-03 21:33:00.116 T:140507953743616 NOTICE: Librespot: librespot thread stopped 2020-05-03 21:33:00.635 T:140508689057536 NOTICE: Librespot: librespot died 2020-05-03 21:33:00.681 T:140508689057536 NOTICE: Librespot: unloaded module-rtp-send destination_ip=127.0.0.1 port=24642 source=librespot.monitor 2020-05-03 21:33:00.706 T:140508689057536 NOTICE: Librespot: unloaded module-null-sink sink_name=librespot 2020-05-03 21:33:00.706 T:140508689057536 NOTICE: Librespot: monitor stopped
Enable 'wait for network' in LibreELEC network settings
-
I have updated to version 122.
Now playing stops after a track with special character in the name (e.g. Beyoncé)
Here my log from kodi.log
Code
Display More2020-05-02 08:15:14.355 T:1599685504 NOTICE: Librespot: [2020-05-02T06:15:14Z INFO librespot_playback::player] Loading <Halo> with Spotify URI <spotify:track:4JehYebiI9JE8sR8MisGVb> 2020-05-02 08:15:14.662 T:1599685504 NOTICE: Librespot: [2020-05-02T06:15:14Z INFO librespot_playback::player] <Halo> (261640 ms) loaded 2020-05-02 08:15:44.311 T:1599685504 NOTICE: Librespot: event playing 2020-05-02 08:15:44.575 T:1599685504 ERROR: Exception in thread Thread-1: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner File "/usr/lib/python2.7/threading.py", line 754, in run File "/storage/.kodi/addons/service.librespot/resources/lib/ls_librespot.py", line 131, in run_librespot self.on_event_playing(words[1], words[2]) File "/storage/.kodi/addons/service.librespot/resources/lib/ls_librespot.py", line 77, in on_event_playing SPOTIFY.update_listitem(self.listitem, type, id, self.country) File "/storage/.kodi/addons/service.librespot/resources/lib/ls_spotify.py", line 77, in update_listitem log('{}#{}#{}#{}'.format(title, artist, album, thumb)) UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 6: ordinal not in range(128)
Hi MikeCC
This is a known issue, which is solved with revision 123.
To fix until revision 123 is released, either revert to revision 121 or apply this fix manually (disable/enable the addon to activate the fix):
librespot: handle non ascii track information · LibreELEC/LibreELEC.tv@967bb63 · GitHub
-
Hello,
I know the thread is from 2018, but here my topic is still best described.
My problem is the following:
I have created a file inadyn.conf in the folder /storage/.kodi/userdata/addon_data/service.system.inadyn/.
But when I try to check the file with inadyn --check-config I get the message: cannot read configuration File /etc/inadyn.conf
What am I doing wrong?
Specify the configuration file with the '-f' or '--config' flag, ie inadyn --check-config --config your_file.
-
I had already copied service.librespot-alsa.service for version 121, which worked great. However, after autoupdate to 122, I had to enable and start the service before it worked for 122.
You write that libresport does not use systemd anymore, but don't we use systemd to enable alsa?
Hello siz
Where had you copied your system.d file to?
To /storage/.config/system.d ?
-
Hello,
I submitted these pull requests to update Emby4 to the current latest release (4.4.2.0):emby4: update to 4.4.2.0 by awiouy · Pull Request #4335 · LibreELEC/LibreELEC.tv · GitHub
-
Librespot and VPN:
VPN prevents adding users in discovery mode (but a VPN does not prevent discovered users to stream from Spotify).
Therefore, switch your VPN off to add new users in discovery mode. You can turn it back on after they have been added.
Librespot and systemd
Librespot 122 does not use systemd anymore and logs in the Kodi log.
Therefore, use the following command to read the log of Librespot 122:
grep Librespot /storage/.kodi/temp/kodi.log
Enjoy!
-
Thank you very much in advance for all the new features.
I am using Librespot on a Intel NUC and the Movie/TV-Show Audio shall be output to HDMI (default KODI Setting).
But the Librespot Audio shall be routed to 3,5mm Audio Jack (alsa).
At the moment, I manuall change the settings in the service file:
--backend alsa \
--device front:CARD=PCH,DEV=0 \
But after each Librespot Update, the changes are lost.
Request:
Please provide a GUI Setting for Audio routing / playback device. That would be awesome
Hello pipsen,
To keep your changes after updates, refer to the instructions in the sample system.d service.
Code# Copy this file to '/storage/.config/system.d/service.librespot-alsa.service' and adapt it to your needs # Enable the service with 'systemctl enable /storage/.config/system.d/service.librespot-alsa.service' # Start the service with 'systemctl start service.librespot-alsa.service' # If you update the file, reload units with 'systemctl daemon-reload' and restart the service
-
I am reworking Librespot and I would like some feedback.
Preview for LibreELEC 9.2 for RPi2
Preview for LibreELEC 9.2 for RPi4
Preview for LibreELEC 9.80 for RPi2
Notable changes:
- fanart is displayed during playback
- podcast information is displayed
- settings are reset to default
- autoplay is enabled by default and can be disabled
- display name can be set and {} is a placeholder for the host name
- RTP port can be set
- librespot is build with mdns instead of dns-sd
- the addon does not use system.d anymore
-
Hi all.
I have installed 9.2.0.108
I cant visit the local page.. no page loads.
the unit has a local IP, and i have tried both 127.0.0.1 and this..
no success in connecting to the admin module..
what Im i doing wrong ?
Have you tried http://YOUR_IP:8384?
If that does not work, then provide the output of journalctl -u service.syncthing.
-
Which problem?
LisaBrown spams about shady software
-
Hi awiouy,
sorry not coming back on that for a while. Howewer, now that my system got broken again (likely doue to an update again). I am eager to trace the root cause.
As a starting point I:
1. deinstalled librespot addon
2. deleted the zip archive from .kodi/addons/packages/
3. rebootet the machine
4. reinstalled addon
5. rebootet the machine
6. journalctl -u service.librespot returns the previously reported error log
So find the requested information below
1.) LibreELEC (official): 9.2.0 (Generic.x86_64)
2.) no, disabled
3.) no, disabled
4.) yes, have premium
5.) yes, tried but when the service is crashed, but prefer not to use, because we have mutiple accounts in my home, that want to use the service
6.) ldd /storage/.kodi/addons/service.librespot/bin/librespot
linux-vdso.so.1 (0x00007fff5d5fd000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x00007fccab1a7000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x00007fccab1a0000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x00007fccab0de000)
libdns_sd.so.1 => /storage/.kodi/addons/service.librespot/lib/libdns_sd.so.1 (0x00007fccab0d5000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007fccab0d0000)
librt.so.1 => /usr/lib/librt.so.1 (0x00007fccab0c6000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007fccab0a3000)
libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x00007fccab089000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007fccaaed3000)
/lib64/ld-linux-x86-64.so.2 => /usr/lib64/ld-linux-x86-64.so.2 (0x00007fccab8cb000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007fccaad93000)
libpulsecommon-12.2.so => /usr/lib/pulseaudio/libpulsecommon-12.2.so (0x00007fccaacbe000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x00007fccaac76000)
libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0x00007fccaac67000)
libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0x00007fccaac56000)
libsystemd.so.0 => /usr/lib/libsystemd.so.0 (0x00007fccaabb7000)
would be great if the would tell you something meaningful ...
Best Regards
Sappi
Hi Sappi,
To solve your issue either enable avahi in LibreELEC services or set user name and password in user mode in Librespot settings.
Also, wait for network is recommended for Librespot and for other services.
Librespot for LibreELEC is built with dns-sd (avahi) rather than mdns, for historical reasons and also because user interaction is smoother.
Hope this helps.
-
once again after autoupdate from 28. February: librespot binary is broken
after replacing the binary with my self build one the device appeared back on spotify connect ... but trying to play a song I hear no audio, even though the the song appears to be played on the client device.
Then I removed the --backend pulseaudio switch from librespot.start
now everything works again.
any thoughts why this is would be highly appreciated.
Hi Sappi,
According to the log you provide, the binary is not broken but something in your configuration is.
First, if you remove the --backend flag then librespot does not use pulseaudio but alsa, which is out of the scope of the addon.
Then, your logs report a DNS issue, so let us try inspecting this:
1. What version of LibreELEC are you running (hardware and version)?
2. Have you set the wait for network option in LibreELEC network configuration?
3. Is Avahi enabled in LibreELEC services configuration?
4. Do you have a Spotify Premium account?
5. Have you tried running in user mode, where you set Spotify username and password in the settings of the addon?
6. Can you provide the output of "ldd /storage/.kodi/addons/service.librespot/bin/librespot", the version shipped with the addon?
-
Um I have another question. I've connected my IntelNUC (LE) with my other PC (Win). But the folder which I've synchronized is on my PCs end on an external HDD. So I was wondering what is happening if I run my NUC and my PC at the same time and the external HDD is not plugged to my PC. So it won't find the path on my PCs end. In this case will it just remove the data on the NUC? Or does it only sync when I start the tool on windows? Because on LE it seems to be running in the background.
That is a question for the Syncthing forum.
If I remember well, there is an option for only adding files, ie no deletion.
-
Hi, can someone explain me how this is working? Is it normal that the addon isn't shown in my addon list after installation?
Do I just have to edit the config file manually? And if yes what do I have to change?
Hi,
Have you tried the web interface?
See the first post of this thread
-
Generic... Intel NUC8
It will take some time to build, if I have enough space on my build system. Check here again tomorrow.
-
LibreElec 9.2 release
On what hardware?