Re: Bubbagen and logitechmediaserver-bin (Solved)
Posted: 16 Oct 2018, 03:30
The symlink not being created seems to have been in the installer package for quite some time. I have corrected this in the overlay.
Bubba community forum
https://forum.excito.org/
Hi Gordon.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
Code: Select all
echo ">media-sound/logitechmediaserver-bin-7.8.0_p2" > /etc/portage/package.mask/logitechmediaserver
emerge --oneshot media-sound/logitechmediaserver-bin
Can you indicate what problems you had with media-sound/logitechmediaserver-bin-7.8.0_p3 ?jallee wrote: 21 Oct 2018, 07:31 Hi Gordon.
Had to mask media-sound/logitechmediaserver-bin-7.8.0_p3 to get logitechmediaserver to work again.Code: Select all
echo ">media-sound/logitechmediaserver-bin-7.8.0_p2" > /etc/portage/package.mask/logitechmediaserver emerge --oneshot media-sound/logitechmediaserver-bin
Here is the log.Gordon wrote: 29 Oct 2018, 10:02Can you indicate what problems you had with media-sound/logitechmediaserver-bin-7.8.0_p3 ?jallee wrote: 21 Oct 2018, 07:31 Hi Gordon.
Had to mask media-sound/logitechmediaserver-bin-7.8.0_p3 to get logitechmediaserver to work again.Code: Select all
echo ">media-sound/logitechmediaserver-bin-7.8.0_p2" > /etc/portage/package.mask/logitechmediaserver emerge --oneshot media-sound/logitechmediaserver-bin
Code: Select all
b3 /home/jallee # emerge --oneshot media-sound/logitechmediaserver-bin
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-sound/logitechmediaserver-bin-7.8.0_p3::bubba
>>> Installing (1 of 1) media-sound/logitechmediaserver-bin-7.8.0_p3::bubba
>>> Jobs: 1 of 1 complete Load avg: 1.38, 1.39, 1.37
* Messages for package media-sound/logitechmediaserver-bin-7.8.0_p3:
* Manually installed plugins should be placed in the following
* directory:
* /var/lib/logitechmediaserver/Plugins
*
* Logitech Media Server can be started with the following command:
* /etc/init.d/logitechmediaserver start
*
* Logitech Media Server can be automatically started on each boot
* with the following command:
* rc-update add logitechmediaserver default
*
* You might want to examine and modify the following configuration
* file before starting Logitech Media Server:
* /etc/conf.d/logitechmediaserver
*
* You may access and configure Logitech Media Server by browsing to:
* http://localhost:9000/
*
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
b3 /home/jallee # /etc/init.d/logitechmediaserver start
* Caching service dependencies ... [ ok ]
* Starting Logitech Media Server ... [ ok ]
b3 /home/jallee # cat /var/log/logitechmediaserver/server.log
cat: /var/log/logitechmediaserver/server.log: No such file or directory
b3 /home/jallee # cat /opt/logitechmediaserver/Logs/server.log
[16-05-09 08:07:49.5921] main::init (368) Starting Logitech Media Server (v7.8.0, 1395409907, Thu Mar 27 13:32:48 PDT 2014) perl 5.020002
[16-05-09 08:07:49.6369] main::changeEffectiveUserAndGroup (984) Warning: Logitech Media Server must not be run as root! Trying user squeezeboxserver instead.
[16-05-09 08:07:49.6398] main::changeEffectiveUserAndGroup (992) Warning: User squeezeboxserver not found.
Code: Select all
b3 /etc # /etc/init.d/logitechmediaserver -d start
+ sourcex -e /etc/rc.conf
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/rc.conf ']'
+ . /etc/rc.conf
++ rc_shell=/sbin/sulogin
++ rc_depend_strict=NO
++ unicode=YES
++ rc_tty_number=12
+ '[' -d /etc/rc.conf.d ']'
+ _conf_d=/etc/init.d/../conf.d
+ _c=logitechmediaserver
+ '[' -n logitechmediaserver -a logitechmediaserver '!=' logitechmediaserver ']'
+ unset _c
+ sourcex -e /etc/init.d/../conf.d/logitechmediaserver.default
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/logitechmediaserver.default ']'
+ return 1
+ sourcex -e /etc/init.d/../conf.d/logitechmediaserver
+ '[' -e = -e ']'
+ shift
+ '[' -e /etc/init.d/../conf.d/logitechmediaserver ']'
+ . /etc/init.d/../conf.d/logitechmediaserver
++ LMS_OPTS=
+ unset _conf_d
+ sourcex /lib/rc/sh/runit.sh
+ '[' /lib/rc/sh/runit.sh = -e ']'
+ . /lib/rc/sh/runit.sh
+ sourcex /lib/rc/sh/s6.sh
+ '[' /lib/rc/sh/s6.sh = -e ']'
+ . /lib/rc/sh/s6.sh
++ '[' -z '' ']'
++ s6_service_path=/var/svc.d/logitechmediaserver
+ sourcex /lib/rc/sh/start-stop-daemon.sh
+ '[' /lib/rc/sh/start-stop-daemon.sh = -e ']'
+ . /lib/rc/sh/start-stop-daemon.sh
+ sourcex /lib/rc/sh/supervise-daemon.sh
+ '[' /lib/rc/sh/supervise-daemon.sh = -e ']'
+ . /lib/rc/sh/supervise-daemon.sh
+ sourcex /etc/init.d/logitechmediaserver
+ '[' /etc/init.d/logitechmediaserver = -e ']'
+ . /etc/init.d/logitechmediaserver
++ lms=logitechmediaserver
++ rundir=/run/logitechmediaserver
++ logdir=/var/log/logitechmediaserver
++ bindir=/opt/logitechmediaserver
++ datadir=/var/lib/logitechmediaserver
++ pidfile=/run/logitechmediaserver/logitechmediaserver.pid
++ cachedir=/var/lib/logitechmediaserver/cache
++ prefsdir=/var/lib/logitechmediaserver/preferences
++ lmsuser=logitechmediaserver
++ lmsbin=/opt/logitechmediaserver/slimserver.pl
+ yesno ''
+ '[' -z '' ']'
+ return 1
+ for _cmd in "$@"
+ '[' start '!=' status -a start '!=' describe ']'
+ '[' -n '' ']'
++ command -v cgroup_add_service
+ '[' cgroup_add_service = cgroup_add_service ']'
+ grep -qs /sys/fs/cgroup /proc/1/mountinfo
+ '[' -d /sys/fs/cgroup -a '!' -w /sys/fs/cgroup ']'
+ cgroup_add_service
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/net_cls/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/openrc/tasks ']'
+ printf %d 0
+ for d in /sys/fs/cgroup/*
+ '[' -w /sys/fs/cgroup/unified/tasks ']'
+ openrc_cgroup=/sys/fs/cgroup/openrc
+ '[' -d /sys/fs/cgroup/openrc ']'
+ cgroup=/sys/fs/cgroup/openrc/logitechmediaserver
+ mkdir -p /sys/fs/cgroup/openrc/logitechmediaserver
+ '[' -w /sys/fs/cgroup/openrc/logitechmediaserver/tasks ']'
+ printf %d 0
++ command -v cgroup_set_limits
+ '[' cgroup_set_limits = cgroup_set_limits ']'
+ cgroup_set_limits
+ local blkio=
+ '[' -n '' ']'
+ local cpu=
+ '[' -n '' ']'
+ local cpuacct=
+ '[' -n '' ']'
+ local cpuset=
+ '[' -n '' ']'
+ local devices=
+ '[' -n '' ']'
+ local hugetlb=
+ '[' -n '' ']'
+ local memory=
+ '[' -n '' ']'
+ local net_cls=
+ '[' -n '' ']'
+ local net_prio=
+ '[' -n '' ']'
+ local pids=
+ '[' -n '' ']'
+ return 0
++ command -v cgroup2_set_limits
+ '[' cgroup2_set_limits = cgroup2_set_limits ']'
+ '[' start = start ']'
+ cgroup2_set_limits
+ local cgroup_path
++ cgroup2_find_path
++ grep -qw cgroup2 /proc/filesystems
++ case "${rc_cgroup_mode:-hybrid}" in
++ printf /sys/fs/cgroup/unified
++ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -d /sys/fs/cgroup/unified ']'
+ rc_cgroup_path=/sys/fs/cgroup/unified/logitechmediaserver
+ '[' '!' -d /sys/fs/cgroup/unified/logitechmediaserver ']'
+ mkdir /sys/fs/cgroup/unified/logitechmediaserver
+ '[' -f /sys/fs/cgroup/unified/logitechmediaserver/cgroup.procs ']'
+ printf 0
+ '[' -z '' ']'
+ return 0
+ break
+ read _d
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ '[' -n '' ']'
+ read _d
+ '[' 0 -ne 0 ']'
+ unset _d
+ read _f
+ eval 'printf '\''%s\n'\'' '
++ printf '%s\n'
+ '[' -n '' ']'
+ read _f
+ '[' 0 -ne 0 ']'
+ unset _f
+ '[' -n '' ']'
+ '[' -n start ']'
+ '[' start = depend ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' describe = start ']'
+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
+ '[' start = start ']'
++ command -v start
+ '[' start = start ']'
+ yesno
+ '[' -z '' ']'
+ return 1
+ for _cmd in $extra_stopped_commands
+ '[' cgroup_cleanup = start ']'
+ unset _cmd
+ case $1 in
+ verify_boot
+ '[' '!' -e /run/openrc/softlevel ']'
+ return 0
++ command -v start_pre
+ '[' start_pre = start_pre ']'
+ start_pre
+ checkpath -q -d -o logitechmediaserver:logitechmediaserver -m 0770 /run/logitechmediaserver
+ start
+ ebegin 'Starting Logitech Media Server'
* Starting Logitech Media Server ...
+ cd /
+ start-stop-daemon --start --exec /opt/logitechmediaserver/slimserver.pl --pidfile /run/logitechmediaserver/logitechmediaserver.pid --user logitechmediaserver --background -- --quiet --pidfile=/run/logitechmediaserver/logitechmediaserver.pid --cachedir=/var/lib/logitechmediaserver/cache --prefsdir=/var/lib/logitechmediaserver/preferences --logdir=/var/log/logitechmediaserver
+ eend 0 'Failed to start Logitech Media Server' [ ok ]
++ command -v start_post
+ '[' '' = start_post ']'
++ command -v cgroup_cleanup
+ '[' cgroup_cleanup = cgroup_cleanup ']'
+ '[' start = stop ']'
++ command -v cgroup2_remove
+ '[' cgroup2_remove = cgroup2_remove ']'
+ '[' start = stop ']'
+ '[' -z '' ']'
+ cgroup2_remove
+ local cgroup_path rc_cgroup_path
++ cgroup2_find_path
++ grep -qw cgroup2 /proc/filesystems
++ case "${rc_cgroup_mode:-hybrid}" in
++ printf /sys/fs/cgroup/unified
++ return 0
+ cgroup_path=/sys/fs/cgroup/unified
+ '[' -z /sys/fs/cgroup/unified ']'
+ rc_cgroup_path=/sys/fs/cgroup/unified/logitechmediaserver
+ '[' '!' -d /sys/fs/cgroup/unified/logitechmediaserver ']'
+ '[' '!' -e /sys/fs/cgroup/unified/logitechmediaserver/cgroup.events ']'
+ grep -qx 6639 /sys/fs/cgroup/unified/logitechmediaserver/cgroup.procs
+ printf %d 0
+ local key populated vvalue
+ read -r key value
+ case "${key}" in
+ populated=1
+ read -r key value
+ '[' 1 = 1 ']'
+ return 0
+ shift
+ continue 2
+ '[' -n '' ']'
+ exit 0
Code: Select all
su -s /bin/bash logitechmediaserver
perl /opt/logitechmediaserver/slimserver.pl --pidfile=/run/logitechmediaserver/logitechmediaserver.pid --cachedir=/var/lib/logitechmediaserver/cache --prefsdir=/var/lib/logitechmediaserver/preferences --logdir=/var/log/logitechmediaserver
Bubbagen Ver: 1.11.0Gordon wrote: 29 Oct 2018, 12:50 Not seeing any errors there. The ones in /opt/logitechmediaserver/Logs/server.log are obvious old (2016) and likely the result from trying to run slimserver.pl directly from the command line.
What version of bubbagen are you running? It could be a perl module incompatibility, which would also explain why the server.log file is not created, but the only way to be able to see that is to run LMS in console mode:
Code: Select all
su -s /bin/bash logitechmediaserver perl /opt/logitechmediaserver/slimserver.pl --pidfile=/run/logitechmediaserver/logitechmediaserver.pid --cachedir=/var/lib/logitechmediaserver/cache --prefsdir=/var/lib/logitechmediaserver/preferences --logdir=/var/log/logitechmediaserver
Code: Select all
perl /opt/logitechmediaserver/slimserver.pl --pidfile=/run/logitechmediaserver/logitechmediaserver.pid --cachedir=/var/lib/logitechmediaserver/cache --prefsdir=/var/lib/logitechmediaserver/preferences --logdir=/var/log/logitechmediaserver
The following CPAN modules were found but cannot work with Logitech Media Server:
Image::Scale (loaded 0.13, need 0.08)
To fix this problem you have several options:
1. Install the latest version of the module(s) using CPAN: sudo cpan Some::Module
2. Update the module's package using apt-get, yum, etc.
3. Run the .tar.gz version of Logitech Media Server which includes all required CPAN modules.
Thank you - I really appreciate your effortGordon wrote: 28 Oct 2018, 13:38 Aha. That is wrong indeed. Strange that it didn't pop up during testing here.
The `ptable` variable is only created in the block from lines 102-112, so that block should be moved up to start at line 93. I'll fix that shortly.
Here it is.Gordon wrote: 29 Oct 2018, 15:39 That's weird. 0.13 is the correct version for the `_p3` installation and in the older `_p2` installation it is also not version 0.08 but 0.11. That said it does appear I should make some changes to the binary release because the `_p3` is bound to fail in a similar way on installations that did not upgrade to profile 17.
Unsure why it would fail on yours though. Most particular with the message that it wants version 0.08. Can you do a system scan on file names `Scale.pm` and `Scale.so`?
Code: Select all
b3 ~ # find / -iname 'Scale.pm' -o -iname 'Scale.so'
/opt/logitechmediaserver/CPAN/Image/Scale.pm
/opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
/opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
b3 ~ # ls -al /opt/logitechmediaserver/CPAN/Image/Scale.pm
-rw-r--r-- 1 root root 10278 Oct 19 14:21 /opt/logitechmediaserver/CPAN/Image/Scale.pm
b3 ~ # ls -al /opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
-rwxr-xr-x 1 root root 75760 Oct 19 14:21 /opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
b3 ~ # ls -al /opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
-rwxr-xr-x 1 root root 75772 May 18 2016 /opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
Code: Select all
b3 ~ #mount /dev/sdb3 /mnt/usbstick
b3 ~ # find /mnt/ -iname 'Scale.pm' -o -iname 'Scale.so'
/mnt/usbstick/opt/logitechmediaserver/CPAN/Image/Scale.pm
/mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
/mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
b3 ~ # ls -al /mnt/usbstick/opt/logitechmediaserver/CPAN/Image/Scale.pm
-rw-r--r-- 1 root root 10326 Apr 13 2017 /mnt/usbstick/opt/logitechmediaserver/CPAN/Image/Scale.pm
b3 ~ # ls -al /mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
-rwxr-xr-x 1 root root 75772 May 18 2016 /mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.20/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
b3 ~ # ls -al /mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so
-rwxr-xr-x 1 root root 76156 Apr 13 2017 /mnt/usbstick/opt/logitechmediaserver/CPAN/arch/5.24/armv5tel-linux-thread-multi/auto/Image/Scale/Scale.so