Bugzilla – Bug 12182
SqueezeCenter Debian Package will not install with apparmor disabled
Last modified: 2019-01-25 10:41:19 UTC
Ticket #090521-002916 Ubuntu 9.04 PowerPC SqueezeCenter 7.3.2 Symptom: Customer states that he cannot install SqueezeCenter on Ubuntu 9.04. Below is the DEB package he has tried to install http://downloads.slimdevices.com/SqueezeCenter_v7.3.2/squeezecenter_7.3.2_all.deb From the customer*************************** The deb repository indicated doesn't fetch for powerpc, just for x86. And of course I have libgd-gd2-perl, as well as all the other libs required installed. It complained about lots of pearl modules being absent. I installed every one of then, that took a huge time, various of those gave me more problems that took a lot of time to sort ( the mysql and the GD one). Tried again, but still the same error. It wasn't recognizing the modules that were installed via cpan. We have tried clean installs as well as purging, to no avail. ************************************************************** Below is some terminal information that the customer has sent. root@jangada:~# apt-get remove --purge squeezecenter Reading package lists... Done Building dependency tree Reading state information... Done The following packages will be REMOVED: squeezecenter* 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1 not fully installed or removed. After this operation, 67.3MB disk space will be freed. Do you want to continue [Y/n]? Y (Reading database ... 45173 files and directories currently installed.) Removing squeezecenter ... Stopping SqueezeCenter Audio ServerNo squeezecenter_s found running; none killed. . Purging configuration files for squeezecenter ... Removing user `squeezecenter' ... Warning: group `nogroup' has no more members. Done. dpkg - warning: while removing squeezecenter, directory `/var/lib/squeezecenter/prefs' not empty so not removed. dpkg - warning: while removing squeezecenter, directory `/var/lib/squeezecenter' not empty so not removed. dpkg - warning: while removing squeezecenter, directory `/usr/share/squeezecenter/CPAN/arch' not empty so not removed. dpkg - warning: while removing squeezecenter, directory `/usr/share/squeezecenter/CPAN' not empty so not removed. dpkg - warning: while removing squeezecenter, directory `/usr/share/squeezecenter' not empty so not removed. root@jangada:~# rm -rf /var/lib/squeezecenter/ root@jangada:~# rm -rf /usr/share/squeezecenter/ root@jangada:~# wget http://downloads.slimdevices.com/SqueezeCenter_v7.3.2/squeezecenter_7.3.2_all.deb --2009-05-22 21:54:56-- http://downloads.slimdevices.com/SqueezeCenter_v7.3.2/squeezecenter_7.3.2_all.deb Resolving downloads.slimdevices.com... 74.201.85.81 Connecting to downloads.slimdevices.com|74.201.85.81|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 28962414 (28M) [text/plain] Saving to: `squeezecenter_7.3.2_all.deb' 100%[======================================>] 28,962,414 56.7K/s in 8m 14s 2009-05-22 22:03:11 (57.2 KB/s) - `squeezecenter_7.3.2_all.deb' saved [28962414/28962414] root@jangada:~# dpkg -i squeezecenter_7.3.2_all.deb Selecting previously deselected package squeezecenter. (Reading database ... 42088 files and directories currently installed.) Unpacking squeezecenter (from squeezecenter_7.3.2_all.deb) ... Setting up squeezecenter (7.3.2) ... Adding system user `squeezecenter' (UID 112) ... Adding new user `squeezecenter' (UID 112) with group `nogroup' ... Not creating home directory `/usr/share/squeezecenter'. * Starting AppArmor * Loading AppArmor module... [fail] dpkg: error processing squeezecenter (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: squeezecenter root@jangada:~# **************************************************** Ran this by QA, and was advised to create this bug. (placing under RPM component) Thanks, LaRon
None of the binary perl modules or other binaries are bundled with SC for PPC. This is probably more of an issue that needs to be fixed by properly stating this on the download page.
Ticket #090521-002620 Marvel Sheeva Plug Ubuntu 9.05 Symptom: Customer was first having a problem installing SqueezeCenter on Ubuntu 9.05, but we were able to have him perform a clean install, which it is now installed. Then new issue is that the contents of /var/log/squeezecenter/server.log are filled with"squeezecenter died. restarting" every 5 seconds! Per QA, had run: apt-get install libgd-gd2-perl This has fixed the issue in the past, but this does not work for this customer. Per QA, adding to this bug. Thanks, LaRon
@Mark : I manually installed all the needed perl modules, it won't install even though. I just want to know what do I have to do to get it working, I can't wait to have this puppy properly set up here :) Thanks
great to see some update here :)
Ticket 090521-002620 Customer is inquiring on the status. Customer has already tried a clean install, as well as the following command: apt-get install libgd-gd2-perl This has fixed the issue in the past, but this does not work for this customer. Thanks, LaRon
Support should not be providing support to users using PPC or ARM platforms, they are not officially supported. These users can find help on the forums and/or wiki, etc. ARM will likely be officially supported in the future, but not now.
Hello Andy, Thanks for the update, I will advise the customer. LaRon
lol the "find help on the forums/wiki" is the best part .... as if I hadn't tried it yet ...
my sentiments exactly. have tried out all the "knowledge" out there already before being directed here. the Marvel Sheeva Plug is the perfect Squeezecenter server which could be left on 24x7 if only i could get it to work! come on! isn't anybody up to the challenge?
We are already providing a build of 7.4 for ARM. http://downloads.slimdevices.com/nightly/?ver=7.4 Try that, but don't call tech support if you have a problem. That's all I'm saying.
squeezecenter_7.4~27132_all.deb doesn't work for me (on PPC) it installs just fine, but then I get this wladston@jangada:~$ cat /var/log/squeezecenter/server.log 2009-06-17 18:12:05 squeezecenter_safe started. 2009-06-17 18:12:11 SqueezeCenter died. Restarting. 2009-06-17 18:12:16 SqueezeCenter died. Restarting. 2009-06-17 18:12:21 SqueezeCenter died. Restarting. 2009-06-17 18:12:26 SqueezeCenter died. Restarting. 2009-06-17 18:12:31 SqueezeCenter died. Restarting. 2009-06-17 18:12:36 SqueezeCenter died. Restarting. 2009-06-17 18:12:41 SqueezeCenter died. Restarting. ...
Ok, here is the problem : --- wladston@jangada:~$ /usr/bin/perl -w /usr/sbin/squeezecenter-server --prefsdir /var/lib/squeezecenter/prefs --logdir /var/log/squeezecenter/ --cachedir /var/lib/squeezecenter/cache --charset=utf8 The following modules failed to load: YAML::Syck To download and compile them, please run: /usr/share/squeezecenter/Bin/build-perl-modules.pl YAML::Syck Exiting.. --- But I also have this : --- cpan[3]> install YAML::Syck YAML::Syck is up to date (1.07). --- You guys are probably only allowing an older version of the module to run, I think ... Or its just plain broken ... Well, I tried also running the suggested script. Here is the result : --- wladston@jangada:~$ sudo /usr/share/squeezecenter/Bin/build-perl-modules.pl YAML::Syck Welcome to the Slim Devices perl module installer. These packages are needed for Squeezebox Server to function. You will need a C compiler (gcc), make, and perl installed. You will need development libraries for MySQL. eg: libmysqlclient You will need development libraries for expat. eg: libexpat1-dev *** Ignore any warnings about AppConfig. *** Please enter a perl binary to use (defaults to /usr/bin/perl) This must be the same perl binary that you ran this program with --> Please enter the path to your Squeezebox Server directory (ex: /usr/local/slimserver) --> /usr/share/squeezecenter/ Please enter a directory to download files to --> . Downloads will use lwp to fetch tarballs. Downloading YAML-Syck-0.64.tar.gz to: /mnt/home/wladston Uncompressing.. Configuring.. /usr/bin/perl Makefile.PL Building.. In file included from Syck.xs:2: perl_common.h: In function ‘perl_syck_error_handler’: perl_common.h:117: warning: format not a string literal and no format arguments In file included from Syck.xs:5: perl_syck.h: In function ‘perl_json_preprocess’: perl_syck.h:392: warning: format not a string literal and no format arguments perl_syck.h: In function ‘DumpJSON’: perl_syck.h:823: warning: format not a string literal and no format arguments In file included from Syck.xs:8: perl_syck.h: In function ‘DumpYAML’: perl_syck.h:823: warning: format not a string literal and no format arguments Library for YAML-Syck-0.64.tar.gz is OK! All done! --- But then when I try to run the application, I get the same error. It looks like the module is there and it's working : --- wladston@jangada:/usr/share/squeezecenter/CPAN/YAML$ file Syck.pm Syck.pm: Perl5 module source text --- But it won't run :( You guys could fix the issue ... or, at least, provide a path/instructions for making it work ... ? It should not be hard to do ... (if I knew perl I would do it myself and post here, but I'm a C guy ) Thanks once more, hopefuly someone will reply.
update - also manually tried to install the downloaded 0.64 module with make, make test, make install. The instaltion ran, but I still get the same error : wladston@jangada:~/YAML-Syck-0.64$ /usr/bin/perl -w /usr/sbin/squeezecenter-server --prefsdir /var/lib/squeezecenter/prefs --logdir /var/log/squeezecenter/ --cachedir /var/lib/squeezecenter/cache --charset=utf8 The following modules failed to load: YAML::Syck To download and compile them, please run: /usr/share/squeezecenter/Bin/build-perl-modules.pl YAML::Syck Exiting.. wladston@jangada:~/YAML-Syck-0.64$ help!! D:
update - after deleting the YAML folder on CPAN, the script ran. But now it complained about this :
The following CPAN modules were found but cannot work with Squeezebox Server: Audio::Scan (loaded but missing object file, need 0.20) Sub::Name (loaded but missing object file, need 0.04) YAML::Syck (loaded 0.64, need 1.05) that means your module installer is broken, it requested the 0.64 version. So I updated the module back to 1.07 using cpan. And the errors reduced to : Audio::Scan (loaded but missing object file, need 0.20) Sub::Name (loaded but missing object file, need 0.04) Cpan won't help: cpan[2]> install Sub::Name Sub::Name is up to date (0.04). cpan[3]> install Audio::Scan Audio::Scan is up to date (0.20). So I guessed the problem might be again on squeezecenter's CPAN dir. wladston@jangada:/usr/share/squeezecenter/CPAN$ sudo rm -rf Audio wladston@jangada:/usr/share/squeezecenter/CPAN$ sudo rm -rf Sub it didn't work :( So I tried to run sudo cpan Audio::Scan and sudo cpan Sub::Name sudo cpan Audio::Scan had some tests broken ... The guys at #perl advised that it should be some problem on my enviroment .. Well, not it runs ...
Mark, Matt Wise - can one of you look at this? thx Pat
This functionality is community supported. A community member should feel free to assign it to themself and work on it.
this is an administrative shuffle on priority fields to help make better judgment on the top end of the priority list. P4->P5, P3->P4, and P2->P3.
Have tried with 7.4.0, doesn't work :( Previous instalation of squeezecenter was properly purged ( oh my, will have to find out how to hack that nightmare instalation again :( ... ) wladston@jangada:~$ sudo dpkg -i squeezeboxserver_7.4.0_all.deb Selecting previously deselected package squeezeboxserver. (Reading database ... 42119 files and directories currently installed.) Unpacking squeezeboxserver (from squeezeboxserver_7.4.0_all.deb) ... Setting up squeezeboxserver (7.4.0) ... Adding system user `squeezeboxserver' (UID 112) ... Adding new user `squeezeboxserver' (UID 112) with group `nogroup' ... Not creating home directory `/usr/share/squeezeboxserver'. * Starting AppArmor * Loading AppArmor module... [fail] dpkg: error processing squeezeboxserver (--install): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: squeezeboxserver wladston@jangada:~$
also, can someone clarify wether I should fill in a new bug for version 7.4.0 ?
This bug isn't limited to other platforms - it's an error on all debian based systems that have apparmor disabled. I get the same issue on my Ubuntu 9.10 x64 server that has apparmor disabled to stop clogging up my server logs. To install a upgraded version of squeezeserver I need to reboot with apparmor enabled, upgrade, then reboot with apparmor disabled again.
changed summary, removed mark as assignee, changed target (old target was in the past)
Unassigned bugs cannot have a priority.