Bubbagen and logitechmediaserver-bin (Solved)

Got problems with your B2 or B3? Share and get helped!
jallee
Posts: 46
Joined: 12 Jun 2009, 13:15

Bubbagen and logitechmediaserver-bin (Solved)

Post by jallee » 10 Oct 2018, 15:10

Hey all!
Did a hard disk change and also made the change from Debian to Bubbagen 1.11.0 on my B3.
Now I'm trying to get logitechmediaserver-bin started, but it does not want to start. :(
Also tried to reinstall logitechmediaserver-bin, but no luck there either.
Suggestions someone? :D

Code: Select all

3 ~ # /etc/init.d/logitechmediaserver start
 * /etc/init.d/logitechmediaserver uses runscript, please convert to openrc-run.
 * Starting Logitech Media Server ...                                                                                                                                                                           [ ok ]
b3 ~ # cat /var/log/logitechmediaserver/server.log
[18-10-10 20:55:53.5827] main::init (368) Starting Logitech Media Server (v7.8.0, 1395409907, Thu Mar 27 13:32:48 PDT 2014) perl 5.024003
[18-10-10 20:55:53.5915] Slim::Utils::Prefs::init (293) Error: unable to write to preferences directory /etc/logitechmediaserver
[18-10-10 20:55:58.9136] Slim::Utils::SQLiteHelper::postConnect (359) Optimizing DB because of missing or empty sqlite_stat1 table
[18-10-10 20:56:03.9724] Carp::croak (167) Warning: Can't write to /etc/logitechmediaserver/log.conf: Permission denied at /opt/logitechmediaserver/Slim/Utils/Log.pm line 746.
[18-10-10 20:56:04.1013] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/audioscrobbler.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1038] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/cli.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1062] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/jiveextras.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1087] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/datetime.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1111] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/rescan.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1135] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/server.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1159] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/state.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1183] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/randomplay.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1207] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/rssnews.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1231] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/infobrowser.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
[18-10-10 20:56:04.1254] Slim::Utils::Prefs::Namespace::savenow (343) Error: can't save /etc/logitechmediaserver/plugin/extensions.prefs: Permission denied at /opt/logitechmediaserver/Slim/Utils/Prefs/Namespace.pm line 332.
b3 ~ # netstat -tuanp
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 192.168.240.73:139      0.0.0.0:*               LISTEN      3144/smbd           
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      2922/sshd           
tcp        0      0 192.168.240.73:445      0.0.0.0:*               LISTEN      3144/smbd           
tcp        0      0 192.168.240.73:22       192.168.240.64:50856    ESTABLISHED 24523/sshd: jallee [ 
tcp6       0      0 2001:470:28:99:222::139 :::*                    LISTEN      3144/smbd           
tcp6       0      0 :::80                   :::*                    LISTEN      2954/apache2        
tcp6       0      0 :::22                   :::*                    LISTEN      2922/sshd           
tcp6       0      0 2001:470:28:99:222::445 :::*                    LISTEN      3144/smbd           
udp        0      0 0.0.0.0:68              0.0.0.0:*                           2745/dhcpcd         
udp        0      0 192.168.240.73:123      0.0.0.0:*                           3115/ntpd           
udp        0      0 127.0.0.1:123           0.0.0.0:*                           3115/ntpd           
udp        0      0 0.0.0.0:123             0.0.0.0:*                           3115/ntpd           
udp        0      0 192.168.240.255:137     0.0.0.0:*                           3154/nmbd           
udp        0      0 192.168.240.73:137      0.0.0.0:*                           3154/nmbd           
udp        0      0 0.0.0.0:137             0.0.0.0:*                           3154/nmbd           
udp        0      0 192.168.240.255:138     0.0.0.0:*                           3154/nmbd           
udp        0      0 192.168.240.73:138      0.0.0.0:*                           3154/nmbd           
udp        0      0 0.0.0.0:138             0.0.0.0:*                           3154/nmbd           
udp6       0      0 2001:470:28:99:222::123 :::*                                3115/ntpd           
udp6       0      0 :::123                  :::*                                3115/ntpd           

Last edited by jallee on 11 Oct 2018, 03:53, edited 1 time in total.

Gordon
Posts: 1322
Joined: 10 Aug 2011, 03:18

Re: Bubbagen and logitechmediaserver-bin

Post by Gordon » 11 Oct 2018, 02:09

Looks like the owner is set incorrectly on that folder. Unsure why these files are even stored there - it must have made sense at some point but for this type of use they should not be in /etc but in /var/lib.

To fix your issue now ssh into the box (as root) and type the following on the command line:

Code: Select all

chown -R  logitechmediaserver:logitechmediaserver  /etc/logitechmediaserver

jallee
Posts: 46
Joined: 12 Jun 2009, 13:15

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by jallee » 11 Oct 2018, 03:55

Thanks Gordon, now it works. :)

Daniel Karine
Posts: 1
Joined: 13 Oct 2018, 02:43

Re: Bubbagen and logitechmediaserver-bin

Post by Daniel Karine » 13 Oct 2018, 02:45

Gordon wrote:
11 Oct 2018, 02:09
Looks like the owner is set incorrectly on that folder. Unsure why these files are even stored there - it must have made sense at some point but for this type of use they should not be in /etc but in /var/lib.

To fix your issue now ssh into the box (as root) and type the following on the command line:

Code: Select all

chown -R  logitechmediaserver:logitechmediaserver  /etc/logitechmediaserver
Thank you so much, worked for me too. I have tried several solution but was fedup :P Thanks

johanheinesen
Posts: 25
Joined: 23 Jan 2007, 05:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by johanheinesen » 14 Oct 2018, 07:23

Hi Gordon,

Have you removed Bubbagen from GitHub? It says "not found" when I try do download it
Johan
---------------------------------

Gordon
Posts: 1322
Joined: 10 Aug 2011, 03:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by Gordon » 14 Oct 2018, 12:44

Hmmm... Looks like I made a mistake in the Readme's links :oops:

The OpenRC version is here: https://github.com/gordonb3/bubbagen/re ... 1.0.img.xz

And the Systemd version here: https://github.com/gordonb3/bubbagen/re ... 1.5.img.xz

johanheinesen
Posts: 25
Joined: 23 Jan 2007, 05:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by johanheinesen » 14 Oct 2018, 15:51

Thanks :)
What's the difference in the two versions? Downloaded the OpenRC version and the install script is missing in the root dir?
Will it work on my old B2 if i decide to bring it back from the dead?
Johan
---------------------------------

Gordon
Posts: 1322
Joined: 10 Aug 2011, 03:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by Gordon » 15 Oct 2018, 03:44

That is strange :?

The installer in /root is actually a shortcut to /usr/local/sbin/install_on_sda.sh. The installer is there, yet the shortcut is missing like you say.

The difference between the two versions is the init system, or service manager if you like. `systemd` is the modern way to manage applications that should be run when the system enters a specific state, which is normally restricted to `start-up` and `shutdown`. I don't think it really adds something to the B3, but some people like it and it doesn't have as many variants as OpenRC (aka system-V). The systemd version comes at a caveat of a different network manager that in my opinion is rather limited in comparison to the one used in OpenRC.

No, you cannot use this on a B2. The B2 has a different CPU that will not allow running any of the binaries (or kernel for that matter) in this image. You should have a look at Sakaki's Gentoo-on-b2. This is a more or less `vanilla` installation but you can add the Bubba frontend fairly easily.

johanheinesen
Posts: 25
Joined: 23 Jan 2007, 05:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by johanheinesen » 15 Oct 2018, 13:33

And getting stranger.
Nothing happens when I try to run the installer - any clues?
I've tried both versions with the same result :)
Johan
---------------------------------

jallee
Posts: 46
Joined: 12 Jun 2009, 13:15

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by jallee » 15 Oct 2018, 14:37

Try with:

Code: Select all

/usr/local/sbin/install_on_sda.sh

johanheinesen
Posts: 25
Joined: 23 Jan 2007, 05:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by johanheinesen » 15 Oct 2018, 14:52

Nope :)
Johan
---------------------------------

jallee
Posts: 46
Joined: 12 Jun 2009, 13:15

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by jallee » 15 Oct 2018, 15:20

Try one more:

Code: Select all

/usr/local/sbin/install_on_sda.sh INSTALL

johanheinesen
Posts: 25
Joined: 23 Jan 2007, 05:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by johanheinesen » 15 Oct 2018, 16:57

Still no luck. Had a look at the script and it should prompt me to type INSTALL.
Haven't done shellscripts for a while and closed it again... Too HC for me :)
Johan
---------------------------------

sakaki
Posts: 172
Joined: 15 Aug 2014, 11:20

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by sakaki » 15 Oct 2018, 18:40

johanheinesen,

could you please post the install_on_sda.sh script on your system (and what you get if you run
"ls -l /usr/local/sbin/install_on_sda.sh")?

If it is still anything like the version on the gentoo-on-b3 image (here), there shouldn't be much that could cause it to fail before printing something...

Best, sakaki

Gordon
Posts: 1322
Joined: 10 Aug 2011, 03:18

Re: Bubbagen and logitechmediaserver-bin (Solved)

Post by Gordon » 16 Oct 2018, 03:08

Hi Sakaki,

It's a bit different from the original: install_on_sda.sh (sources /root/install.ini if it exists)

But yes, it should always return something and not die silently

Post Reply