Bugzilla – Bug 13485
rpm build for latest 7.4 is broken on ClarkConnect 4.2 Linux
Last modified: 2009-10-05 14:29:33 UTC
Se this tread: http://forums.slimdevices.com/showthread.php?t=66776 basically the rpm build is currently broken it tells me to build a bunch of perl modules, which I'm not capable of doing. And it does not start at all CC4.2 Linux is derived from RHEL so this migth also concern redhat users My perl version is 5.8.8 Note: usually rpm builds just works on my system
realizing that my forum tread is a little long, short explanation: Most things ./squeezecenter still left on the machine removed a bunch of things. Then this happens: Aug 19 18:48:01 hal runuser: The following modules failed to load: version DBI DBD::mysql EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::Syck GD Sub::Name Aug 19 18:48:01 hal runuser: Aug 19 18:48:01 hal runuser: To download and compile them, please run: /usr/share/squeezebox/Bin/build-perl-modules.pl version DBI DBD::mysql EV XML::Parser::Expat HTML::Parser JSON::XS Digest::SHA1 YAML::Syck GD Sub::Name Aug 19 18:48:01 hal runuser: Aug 19 18:48:01 hal runuser: Exiting.. Aug 19 18:48:01 hal squeezeboxserver: squeezeboxserver startup succeeded the error message is wrong there is no /usr/share/squeezebox/Bin directory it is /usr/share/squeezeboxserver/Bin/ Next error "Can't locate File/Which.pm in @INC" exiting at line 20 The error seems to be that @INC don't contain /usr/share/squeezeboxserver/CPAN editing the build-perl-modules.pl script: line 13 was: use lib qw(/usr/local/slimserver/CPAN /usr/share/squeezecenter/CPAN CPAN) i changed it to: use lib qw(/usr/local/slimserver/CPAN /usr/share/squeezeboxserver/CPAN /usr/share/squeezecenter/CPAN CPAN) Now i can start the build procedure but i fail for at least 3 reasons: 1. I don't really know how to do it (procedure is undocumented i can't even find any info ) 2. My perl is 5.8.8 I probably should use 5.10 to build even if your ready made rpm build s are compatible with 5.8.8. 3. My server is probably missing some important dev libraries of some kind
Created attachment 5641 [details] /usr/libexec/squeezeboxserver -d_startup 1 Output from when i try. /usr/libexec/squeezeboxserver -d_startup 1 Observe this part in the beginning. Extended @INC to contain: /usr/share/squeezebox/CPAN/arch/5.8/i386-linux-thread-multi /usr/share/squeezebox/CPAN/arch/5.8/i386-linux-thread-multi/auto /usr/share/squeezebox/CPAN/arch/5.8.8/i686-linux-thread-multi /usr/share/squeezebox/CPAN/arch/5.8.8/i686-linux-thread-multi/auto /usr/share/squeezebox/CPAN/arch/5.8/i686-linux-thread-multi /usr/share/squeezebox/CPAN/arch/5.8/i686-linux-thread-multi/auto /usr/share/squeezebox/CPAN/arch/i686-linux-thread-multi /usr/share/squeezebox/lib /usr/share/squeezebox/CPAN /usr/share/squeezebox Noob question, should not thoose be /usr/share/squeezeboxserver/CPAN/
See also Bug 13523: https://bugs-archive.lyrion.org/show_bug.cgi?id=13523 (Appears to be same bug on Fedora 11)
Mark: is this one yours to look at or Matt's
Created attachment 5645 [details] /usr/libexec/squeezeboxserver -d_startup 1 *renamed ...squeezeboxserver As a test I renamed my: /usr/share/squeezebox/ to. /usr/share/squeezeboxserver/ I get much further It only fails here: modules.conf not found at /usr/local/bin/myperl/lib/site_perl/Slim/bootstrap.pm line 358. BEGIN failed--compilation aborted at /usr/libexec/squeezeboxserver line 131.
28228 is also broken
For an amateur like me RedHat.pm looks wrong ? /usr/local/bin/myperl/lib/site_perl/Slim/Utils/OS/RedHat.pm
(In reply to comment #7) > For an amateur like me RedHat.pm looks wrong ? > > /usr/local/bin/myperl/lib/site_perl/Slim/Utils/OS/RedHat.pm Wrong in what way?
A lot of: push @dirs, "/usr/share/squeezebox/$dir"; and similar squeezebox vs squeezeboxserver ? After some googling i know that push sets these things in @INC After some amateurish medling with RedHat.pm it starts but fails with this msg [09-08-20 17:54:56.2171] main::init (318) Starting Squeezebox Server (v7.4, r28228, Thu Aug 20 04:01:35 PDT 2009) perl 5.008008 [09-08-20 17:54:56.2386] main::changeEffectiveUserAndGroup (907) Warning: Squeezebox Server must not be run as root! Trying user slimserver instead. 09-08-20 17:54:56.2408] main::changeEffectiveUserAndGroup (915) Warning: User slimserver not found. Hmm, I think I let Mark do his thing :) I'm in the deep end
I'm taking care of it ...
Fixed in checking 28232.
*** Bug 13523 has been marked as a duplicate of this bug. ***
28235 No it still does not work, sorry, it messes with the users and dies ? I did rpm -e before trying nothing left of any slim/squeeze[something] i hope "Use of uninitialized value in subroutine entry at /usr/share/squeezeboxserver/CPAN/YAML/Syck.pm line 75. [09-08-21 17:58:49.8497] main::init (318) Starting Squeezebox Server (v7.4, r28235, Fri Aug 21 04:01:51 PDT 2009) perl 5.008008 Use of uninitialized value in pattern match (m//) at /usr/local/bin/myperl/lib/site_perl/Slim/Utils/Prefs.pm line 324. [09-08-21 17:58:49.8712] main::changeEffectiveUserAndGroup (907) Warning: Squeezebox Server must not be run as root! Trying user slimserver instead. [09-08-21 17:58:49.8734] main::changeEffectiveUserAndGroup (915) Warning: User slimserver not found." I attach a file with the full output off the /usr/libexec/squeezeboxserver -d_startup 1 /Mikael something completely different: should it load a Hebrew locale ? Loaded module: [Locale::Hebrew] ok!
Created attachment 5654 [details] squeezeboxserver -d_startup 1 on 7.4-28235
You cannot run it directly like that unless you sudo to the squeezebox account properly. What happens when you try running /etc/init.d/ squeezeboxserver start ?
Created attachment 5655 [details] passwd This is in my passwd file: squeezecenter:x:417:417:SqueezeCenter Music Server:/usr/share/squeezecenter:/sbin/nologin squeezeboxserver:x:418:419:SqueezeBox Server:/usr/share/squeezeboxserver:/sbin/nologin I attach my complete passwd file for you to see
[root@hal etc]# service squeezeboxserver start Starting Squeezebox Server: Can't open /var/log/squeezeboxserver/server.log (Permission denied) at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender/File.pm line 103. [FAILED] [root@hal etc]# /etc/init.d/squeezeboxserver start Starting Squeezebox Server: Can't open /var/log/squeezeboxserver/server.log (Permission denied) at /usr/share/squeezeboxserver/CPAN/Log/Log4perl/Appender/File.pm line 103. [FAILED] [root@hal etc]#
drwxr-xr-x 11 root root 1024 Aug 21 17:50 squeezeboxserver [root@hal squeezeboxserver]# ls -la total 1171 drwxr-xr-x 11 root root 1024 Aug 21 17:50 . drwxr-xr-x 60 root root 1024 Aug 21 17:50 .. drwxr-xr-x 3 root root 1024 Aug 21 17:50 Bin drwxr-xr-x 51 root root 1024 Aug 21 17:50 CPAN drwxr-xr-x 2 root root 1024 Aug 21 17:50 Firmware drwxr-xr-x 2 root root 1024 Aug 21 17:50 Graphics drwxr-xr-x 11 root root 1024 Aug 21 17:50 HTML drwxr-xr-x 2 root root 1024 Aug 21 17:50 IR drwxr-xr-x 13 root root 1024 Aug 21 17:50 lib drwxr-xr-x 2 root root 1024 Aug 21 17:50 MySQL lrwxrwxrwx 1 root root 33 Aug 21 17:50 Plugins -> /var/lib/squeezeboxserver/Plugins -rw-r--r-- 1 root root 35 Aug 21 13:01 revision.txt drwxr-xr-x 4 root root 1024 Aug 21 17:50 SQL -rw-r--r-- 1 root root 1180413 Aug 19 13:01 strings.txt
[root@hal squeezeboxserver]# cd CPAN [root@hal CPAN]# ls -la total 803 drwxr-xr-x 51 root root 1024 Aug 21 17:50 . drwxr-xr-x 11 root root 1024 Aug 21 17:50 .. drwxr-xr-x 2 root root 1024 Aug 21 17:50 Algorithm drwxr-xr-x 3 root root 1024 Aug 21 17:50 AnyEvent -rw-r--r-- 1 root root 87431 Aug 19 13:01 AnyEvent.pm drwxr-xr-x 4 root root 1024 Aug 21 17:50 arch drwxr-xr-x 3 root root 1024 Aug 21 17:50 Archive drwxr-xr-x 2 root root 1024 Aug 21 17:50 Audio drwxr-xr-x 2 root root 1024 Aug 21 17:50 Cache drwxr-xr-x 2 root root 1024 Aug 21 17:50 Carp drwxr-xr-x 9 root root 1024 Aug 21 17:50 Class drwxr-xr-x 3 root root 1024 Aug 21 17:50 Compress drwxr-xr-x 2 root root 1024 Aug 21 17:50 Data drwxr-xr-x 2 root root 1024 Aug 21 17:50 Date drwxr-xr-x 3 root root 1024 Aug 21 17:50 DBD drwxr-xr-x 7 root root 1024 Aug 21 17:50 DBI -rw-r--r-- 1 root root 291252 Aug 19 13:01 DBI.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 DBIx drwxr-xr-x 3 root root 1024 Aug 21 17:50 Devel drwxr-xr-x 2 root root 1024 Aug 21 17:50 Digest drwxr-xr-x 3 root root 1024 Aug 21 17:50 Encode -rw-r--r-- 1 root root 12117 Aug 19 13:01 enum.pm -rw-r--r-- 1 root root 18585 Aug 19 13:01 Error.pm -rw-r--r-- 1 root root 37115 Aug 19 13:01 EV.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 Exporter drwxr-xr-x 3 root root 1024 Aug 21 17:50 File drwxr-xr-x 2 root root 1024 Aug 21 17:50 GD -rw-r--r-- 1 root root 60379 Aug 19 13:01 GD.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 HTML drwxr-xr-x 5 root root 1024 Aug 21 17:50 HTTP drwxr-xr-x 3 root root 1024 Aug 21 17:50 I18N drwxr-xr-x 2 root root 1024 Aug 21 17:50 Imager -rw-r--r-- 1 root root 115335 Aug 19 13:01 Imager.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 IO drwxr-xr-x 3 root root 1024 Aug 21 17:50 JSON drwxr-xr-x 2 root root 1024 Aug 21 17:50 Locale drwxr-xr-x 3 root root 1024 Aug 21 17:50 Log drwxr-xr-x 4 root root 1024 Aug 21 17:50 LWP -rw-r--r-- 1 root root 21422 Aug 19 13:01 LWP.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 Math drwxr-xr-x 2 root root 1024 Aug 21 17:50 Module drwxr-xr-x 2 root root 1024 Aug 21 17:50 MRO drwxr-xr-x 4 root root 1024 Aug 21 17:50 Net drwxr-xr-x 2 root root 1024 Aug 21 17:50 PAR -rw-r--r-- 1 root root 29322 Aug 19 13:01 PAR.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 Path drwxr-xr-x 3 root root 1024 Aug 21 17:50 Proc -rw-r--r-- 1 root root 22462 Aug 19 13:01 Readonly.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 Scope drwxr-xr-x 3 root root 1024 Aug 21 17:50 SQL drwxr-xr-x 2 root root 1024 Aug 21 17:50 Sub drwxr-xr-x 5 root root 1024 Aug 21 17:50 Template -rw-r--r-- 1 root root 24714 Aug 19 13:01 Template.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 Test drwxr-xr-x 3 root root 1024 Aug 21 17:50 Text drwxr-xr-x 3 root root 1024 Aug 21 17:50 Tie drwxr-xr-x 2 root root 1024 Aug 21 17:50 Time drwxr-xr-x 3 root root 1024 Aug 21 17:50 URI -rw-r--r-- 1 root root 30331 Aug 19 13:01 URI.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 UUID drwxr-xr-x 2 root root 1024 Aug 21 17:50 version -rw-r--r-- 1 root root 899 Aug 19 13:01 version.pm drwxr-xr-x 5 root root 1024 Aug 21 17:50 XML drwxr-xr-x 4 root root 1024 Aug 21 17:50 YAML
[root@hal Log]# ls -la total 98 drwxr-xr-x 3 root root 1024 Aug 21 17:50 . drwxr-xr-x 51 root root 1024 Aug 21 17:50 .. drwxr-xr-x 8 root root 1024 Aug 21 17:50 Log4perl -rw-r--r-- 1 root root 95978 Aug 19 13:00 Log4perl.pm [root@hal Log4perl]# ls -la total 215 drwxr-xr-x 8 root root 1024 Aug 21 17:50 . drwxr-xr-x 3 root root 1024 Aug 21 17:50 .. drwxr-xr-x 2 root root 1024 Aug 21 17:50 Appender -rw-r--r-- 1 root root 20367 Aug 19 13:00 Appender.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 Config -rw-r--r-- 1 root root 36685 Aug 19 13:00 Config.pm -rw-r--r-- 1 root root 12750 Aug 19 13:00 DateFormat.pm -rw-r--r-- 1 root root 94503 Aug 19 13:00 FAQ.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 Filter -rw-r--r-- 1 root root 11110 Aug 19 13:00 Filter.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 JavaMap -rw-r--r-- 1 root root 4837 Aug 19 13:00 JavaMap.pm drwxr-xr-x 3 root root 1024 Aug 21 17:50 Layout -rw-r--r-- 1 root root 1421 Aug 19 13:00 Layout.pm -rw-r--r-- 1 root root 8472 Aug 19 13:00 Level.pm -rw-r--r-- 1 root root 2449 Aug 19 13:00 MDC.pm -rw-r--r-- 1 root root 3215 Aug 19 13:00 NDC.pm -rw-r--r-- 1 root root 4061 Aug 19 13:00 Resurrector.pm drwxr-xr-x 2 root root 1024 Aug 21 17:50 Util -rw-r--r-- 1 root root 2427 Aug 19 13:00 Util.pm
So sorry for spamming you. rpm -e and reinstalled it again and it starts up just fine now. tried a reboot and it starts. strange thing permission are just the same as before ?
Today's (20090821) build works for me. I did a: # yum erase squeezeboxserver -y # userdel -r squeezebox # userdel -r squeezeboxserver # yum install squeezeboxserver --disablerepo=* --enablerepo=squeezecenter-unstable -y SqueezeboxServer seemed to install just fine. No problem going through the initial web setup wizard. I didn't see anything untoward or get any error messages at all. I'm testing compatibility with regular MySQL on port 3306 now.
We clearly have some work to do for migrating from SC to SBS .... but it does seem that clean installs work just fine.
This bug has been marked as fixed in the 7.4.0 release version of SqueezeBox Server! * SqueezeCenter: 28672 * Squeezebox 2 and 3: 130 * Transporter: 80 * Receiver: 65 * Boom: 50 * Controller: 7790 * Radio: 7790 Please see the Release Notes for all the details: http://wiki.slimdevices.com/index.php/Release_Notes If you haven't already, please download and install the new version from http://www.logitechsqueezebox.com/support/download-squeezebox-server.html If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.