Snakeoil Forums

Full Version: No LMS Remote on Raspberry Pi
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hi there,

I've been mucking around with various hardware platforms and am trying to use both a Raspberry Pi 3 and Raspberry Pi 4 however I cannot seem to get the LMS Web / Remote control option when using the Raspberry Pi version.

I used Raspian 32bit as the base OS (latest version).

Am I missing something?

Screenshots attached.

Thanks in advance Smile
From a web browser, can you go to this URL and see if it works?

http://[ip_address]:9000

Change [ip_address] to the IP of your Snakeoil PC
(25-Feb-2022, 06:36 AM)agent_kith Wrote: [ -> ]From a web browser, can you go to this URL and see if it works?

http://[ip_address]:9000

Change [ip_address] to the IP of your Snakeoil PC

No luck - error - connection refused. Like the service is non existent.
(25-Feb-2022, 11:05 AM)Pit Stop Plato Wrote: [ -> ]No luck - error - connection refused. Like the service is non existent.
Can you run the installer again? And C&P the entire output here.
(25-Feb-2022, 07:03 PM)agent_kith Wrote: [ -> ]
(25-Feb-2022, 11:05 AM)Pit Stop Plato Wrote: [ -> ]No luck - error - connection refused. Like the service is non existent.
Can you run the installer again? And C&P the entire output here.

I am also facing the same issue. LMS not working on RPI4 8gb. raspbian lite installed and snakeoil 1.2.3
(26-Feb-2022, 07:40 PM)vinaymoturi Wrote: [ -> ]I am also facing the same issue. LMS not working on RPI4 8gb. raspbian lite installed and snakeoil 1.2.3
I'm using a RPi4 8GB as well and no problems with LMS.

Not entirely sure what's happening except I'm using the normal version of Raspbian though. Can you SSH into your Pi, and run the following and C&P the results?

Code:
sudo systemctl status logitechmediaserver

Also, run and see if will install anything, again cut and paste the output so I can see what's happening.
Code:
sudo apt-get install -f -y
Installation log:

$ sudo bash ./snakeoil-installer-1.2.0-armv7l.sh
# Begin installation of Snakeoil 1.2.0 (Gear Isolation)
  + Checking pre-requistes... OK
    * Checking program (ip)... FOUND
    * Checking program (grep)... FOUND
    * Checking program (head)... FOUND
    * Checking program (tail)... FOUND
    * Checking program (sed)... FOUND
    * Checking program (pgrep)... FOUND
    * Checking program (sha1sum)... FOUND
    * Checking program (tar)... FOUND
    * Checking program (ip)... FOUND
    * Checking program (cat)... FOUND
    * Checking program (mktemp)... FOUND
    * Checking program (cut)... FOUND
    * Checking program (xargs)... FOUND
  + System identified as: Raspbian
    * Updating repos... OK
    * Checking package: net-tools
      - Status: Already installed
    * Checking package: avahi-daemon
      - Status: Already installed
    * Checking package: icewm
      - Status: Already installed
    * Checking package: lighttpd
      - Status: Already installed
    * Checking package: php-cgi
      - Status: Already installed
    * Checking package: tightvncserver
      - Status: Already installed
    * Checking package: libio-socket-ssl-perl
      - Status: Already installed
    * Checking package: libgomp1
      - Status: Already installed
    * Checking package: cifs-utils
      - Status: Already installed
    * Checking package: nfs-common
      - Status: Already installed
    * Checking package: samba
      - Status: Already installed
    * Checking package: python3-future
      - Status: Already installed
  + Creating media folders... OK
  + Checking installer integrity... OK
  + Extracting archive... OK
    - verifying component: snakeoil-rest... OK
    - verifying component: Logitech Media Server... OK
    - verifying component: snakeoil blob... OK
  + Install Snakeoil RestAPI server... OK
  + Installing Snakeoil blob, please be patient... OK
# Prepping Your System For Snakeoil.
  + Startup script... Already installed
  + Web server... OK
  + Logitech Media Server... Already installed
  + Configuring network... ifupdown detected, interface eth0. OK
  + Configuring virtual desktop... OK
  + Configuring boot options... OK
  + Configuring samba... OK
# Cleaning up tmp files... OK
# Installation complete.
# Restarting Snakeoil RestAPI server.
# Please wait at least 1 minute before trying the WebApp



sudo systemctl status logitechmediaserver
● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
     Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
     Active: active (running) since Mon 2022-02-28 09:54:05 ACDT; 4min 20s ago
       Docs: manConfusedystemd-sysv-generator(8)
    Process: 28344 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 1597)
        CPU: 33.733s
     CGroup: /system.slice/logitechmediaserver.service
             ├─28351 /bin/bash /usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeeze>
             └─28638 sleep 5

Feb 28 09:54:05 snakeoilpi systemd[1]: Starting LSB: Startup script for the Logitech Media Server...
Feb 28 09:54:05 snakeoilpi logitechmediaserver[28344]: Making sure that Logitech Media Server is not running first:
Feb 28 09:54:05 snakeoilpi logitechmediaserver[28348]: start-stop-daemon: warning: failed to kill 27023: No such process
Feb 28 09:54:05 snakeoilpi logitechmediaserver[28348]: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
Feb 28 09:54:05 snakeoilpi logitechmediaserver[28344]: Starting Logitech Media Server.
Feb 28 09:54:05 snakeoilpi systemd[1]: Started LSB: Startup script for the Logitech Media Server.



sudo apt-get install -f -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
(28-Feb-2022, 07:28 AM)Pit Stop Plato Wrote: [ -> ]sudo systemctl status logitechmediaserver
● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
     Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
     Active: active (running) since Mon 2022-02-28 09:54:05 ACDT; 4min 20s ago
       Docs: manConfusedystemd-sysv-generator(8)
    Process: 28344 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 1597)
        CPU: 33.733s
     CGroup: /system.slice/logitechmediaserver.service
             ├─28351 /bin/bash /usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeeze>
             └─28638 sleep 5
This is so weird. 

Can you run 
Code:
sudo systemctl restart logitechmediaserver
And see if it still fails?

And then re-run to see if you get the same status as what you posted?
Code:
sudo systemctl status logitechmediaserver

Perhaps uninstall logitechmedia server by running the follow command, and re-run the snakeoil installer.
Code:
sudo apt purge logitechmediaserver -y


I'm going off to work now but so will check back later in a few hours.
sudo systemctl restart logitechmediaserver

- no output or error

sudo systemctl status logitechmediaserver
● logitechmediaserver.service - LSB: Startup script for the Logitech Media Server
     Loaded: loaded (/etc/init.d/logitechmediaserver; generated)
     Active: active (running) since Mon 2022-02-28 10:25:48 ACDT; 8s ago
       Docs: manConfusedystemd-sysv-generator(8)
    Process: 30099 ExecStart=/etc/init.d/logitechmediaserver start (code=exited, status=0/SUCCESS)
      Tasks: 2 (limit: 1597)
        CPU: 1.576s
     CGroup: /system.slice/logitechmediaserver.service
             ├─30106 /bin/bash /usr/sbin/squeezeboxserver_safe /usr/sbin/squeezeboxserver --prefsdir /var/lib/squeezeboxserver/prefs --logdir /var/log/squeezeboxserver/ --cachedir /var/lib/squeeze>
             └─30115 sleep 5

Feb 28 10:25:48 snakeoilpi systemd[1]: Starting LSB: Startup script for the Logitech Media Server...
Feb 28 10:25:48 snakeoilpi logitechmediaserver[30099]: Making sure that Logitech Media Server is not running first:
Feb 28 10:25:48 snakeoilpi logitechmediaserver[30103]: start-stop-daemon: warning: failed to kill 28351: No such process
Feb 28 10:25:48 snakeoilpi logitechmediaserver[30103]: No process in pidfile '/var/run/logitechmediaserver.pid' found running; none killed.
Feb 28 10:25:48 snakeoilpi logitechmediaserver[30099]: Starting Logitech Media Server.
Feb 28 10:25:48 snakeoilpi systemd[1]: Started LSB: Startup script for the Logitech Media Server.

sudo apt purge logitechmediaserver -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  logitechmediaserver*
0 upgraded, 0 newly installed, 1 to remove and 8 not upgraded.
After this operation, 167 MB disk space will be freed.
(Reading database ... 108441 files and directories currently installed.)
Removing logitechmediaserver (8.0.1~1606059084) ...
(Reading database ... 104281 files and directories currently installed.)
Purging configuration files for logitechmediaserver (8.0.1~1606059084) ...
Removing user `squeezeboxserver' ...
Warning: group `nogroup' has no more members.
Done.

Reinstall:


 sudo bash ./snakeoil-installer-1.2.0-armv7l.sh
# Begin installation of Snakeoil 1.2.0 (Gear Isolation)
  + Checking pre-requistes... OK
    * Checking program (ip)... FOUND
    * Checking program (grep)... FOUND
    * Checking program (head)... FOUND
    * Checking program (tail)... FOUND
    * Checking program (sed)... FOUND
    * Checking program (pgrep)... FOUND
    * Checking program (sha1sum)... FOUND
    * Checking program (tar)... FOUND
    * Checking program (ip)... FOUND
    * Checking program (cat)... FOUND
    * Checking program (mktemp)... FOUND
    * Checking program (cut)... FOUND
    * Checking program (xargs)... FOUND
  + System identified as: Raspbian
    * Updating repos... OK
    * Checking package: net-tools
      - Status: Already installed
    * Checking package: avahi-daemon
      - Status: Already installed
    * Checking package: icewm
      - Status: Already installed
    * Checking package: lighttpd
      - Status: Already installed
    * Checking package: php-cgi
      - Status: Already installed
    * Checking package: tightvncserver
      - Status: Already installed
    * Checking package: libio-socket-ssl-perl
      - Status: Already installed
    * Checking package: libgomp1
      - Status: Already installed
    * Checking package: cifs-utils
      - Status: Already installed
    * Checking package: nfs-common
      - Status: Already installed
    * Checking package: samba
      - Status: Already installed
    * Checking package: python3-future
      - Status: Already installed
  + Creating media folders... OK
  + Checking installer integrity... OK
  + Extracting archive... OK
    - verifying component: snakeoil-rest... OK
    - verifying component: Logitech Media Server... OK
    - verifying component: snakeoil blob... OK
  + Install Snakeoil RestAPI server... OK
  + Installing Snakeoil blob, please be patient... OK
# Prepping Your System For Snakeoil.
  + Startup script... Already installed
  + Web server... OK
  + Logitech Media Server... OK
  + Configuring network... ifupdown detected, interface eth0. OK
  + Configuring virtual desktop... OK
  + Configuring boot options... OK
  + Configuring samba... OK
# Cleaning up tmp files... OK
# Installation complete.
# Restarting Snakeoil RestAPI server.
# Please wait at least 1 minute before trying the WebApp

Tried again - no luck.
(28-Feb-2022, 08:08 AM)Pit Stop Plato Wrote: [ -> ]Tried again - no luck.
Something ain't right obviously, but can't be certain what/why.. :/

Can you run the following in a SSH session?
Code:
sudo tail -n 100 /var/log/squeezeboxserver/server.log
You should get 100 lines of output (hopefully that'll be enough). Send me that output so I can see what it's not starting.

Also, can you run the following and tell me what it says?

Code:
lsb_release -a
Pages: 1 2 3