Raspotify persistence and lack thereof on my ubuntu linux streamer

rwnano

Well-Known Member
Joined
Jul 21, 2022
Messages
811
Points
63
Location
Gurugram, Haryana, India
I find raspotify persistence to be sometimes less than what it should be. It will go offline. Not connect with Spotify server or disconnect randomly.
Ofcourse when I check my linux raspotify server it will show systemctl running raspotify server up and with proper uptime .
No Spotify gui is running at the same time
Perhaps this is some issue with my ubuntu linux gui....some update prompt or some such tomfoolery which breaks raspotify client.
@mbhangui
 
I find raspotify persistence to be sometimes less than what it should be. It will go offline. Not connect with Spotify server or disconnect randomly.
Ofcourse when I check my linux raspotify server it will show systemctl running raspotify server up and with proper uptime .
No Spotify gui is running at the same time
Perhaps this is some issue with my ubuntu linux gui....some update prompt or some such tomfoolery which breaks raspotify client.
@mbhangui
raspotify is just a systemd service that runs librespot program. It uses what is known as systemd to supervise librespot and run it continuously. You should check for errors in the journalctl for librespot. I too had issues with raspotify and I can't recall what the issue was. However what I did was to run librespot using my own supervisor known as svscan. I run all my services using svscan to ensure 100% uptime. svscan is like systemd, but designed differently. For each service it runs a dedicated supervisor. In contrast systemd has one supervisor for all your services. There are many folks using my supervision suite to run their enterprise services using svscan. Few mailservice providers, many banks in India, etc. The source code is here


svscan can be installed from the source above by compiling it or directly using my YUM/DNF/apt-get servers for i686/x86_64 from


and for arm based processor (which includes raspberry pi) from here

To install on ubuntu (i believe you are using macbook, which is 64bit (x86_64), just execute these instructions

For ubuntu 24.04
echo 'deb http://download.opensuse.org/repositories/home:/mbhangui/xUbuntu_24.04/ /' | sudo tee /etc/apt/sources.list.d/home:mbhangui.list
curl -fsSL https://download.opensuse.org/repositories/home:mbhangui/xUbuntu_24.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_mbhangui.gpg > /dev/null
sudo apt update
sudo apt install daemontools

For Ubuntu 23.04
echo 'deb http://download.opensuse.org/repositories/home:/mbhangui/xUbuntu_23.04/ /' | sudo tee /etc/apt/sources.list.d/home:mbhangui.list
curl -fsSL https://download.opensuse.org/repositories/home:mbhangui/xUbuntu_23.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_mbhangui.gpg > /dev/null
sudo apt update
sudo apt install daemontools

For Ubuntu 22.04
echo 'deb http://download.opensuse.org/repositories/home:/mbhangui/xUbuntu_22.04/ /' | sudo tee /etc/apt/sources.list.d/home:mbhangui.list
curl -fsSL https://download.opensuse.org/repositories/home:mbhangui/xUbuntu_22.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_mbhangui.gpg > /dev/null
sudo apt update
sudo apt install daemontools
For Ubuntu 20.04
echo 'deb http://download.opensuse.org/repositories/home:/mbhangui/xUbuntu_20.04/ /' | sudo tee /etc/apt/sources.list.d/home:mbhangui.list
curl -fsSL https://download.opensuse.org/repositories/home:mbhangui/xUbuntu_20.04/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_mbhangui.gpg > /dev/null
sudo apt update
sudo apt install daemontools

Once you have installed daemontools, you have to create a service file for librespot for svscan to supervise librespot and run it continuously. Once you get to this stage, we can create a service file. You can contact me on skype, not whatsapp please which you always do IIRC, because I don't respond on whatsapp as it ruins my productivity having to switch from my laptop from the terminal to chrome web browser. I don't use the mouse and using a web browser forces me to remove my hand from the keyboard to use the mouse/trackpad and that kills my productivity. I use the 'h', 'j', 'k', 'l' keys on the keyboard to navigate the entire terminal screen and that is superfast compared to using the mouse/trackpad.
 
Last edited:
Purchase the Audiolab 6000A Integrated Amplifier at a special offer price.
Back
Top