Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236413 - squeezecenter 7.2.0 compiles fine but does not start
Summary: squeezecenter 7.2.0 compiles fine but does not start
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Joe Peterson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-02 04:25 UTC by Karel De Vriendt
Modified: 2008-09-02 22:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karel De Vriendt 2008-09-02 04:25:20 UTC
Executing /etc/init.d/squeezecenter starts squeezecenter but squeezecenter dies immediately thereafter, leaving a squeezecenter.pid that references to a process that no longer exists.

Reproducible: Always

Steps to Reproduce:
1. Compile squeezecenter 7.2.0
2. /etc/init.d/squeezecenter start
3. try to connect to localhost:9000 - fails
4. /etc/init.d/squeezecenter restart -> WARNING: squeezecenter has already been started

Actual Results:  
Running the command without the start-stop script gives the following error messages:

sudo -u squeezecenter /usr/bin/perl /usr/sbin/squeezecenter-server
[08-09-01 22:47:38.1073] Slim::Utils::Misc::msg (1398) Warning: [22:47:38.1071] dirsFor: Didn't find a match request: [Bin]
[08-09-01 22:47:38.1080] Slim::Utils::Misc::msg (1398) Warning: [22:47:38.1078] dirsFor: Didn't find a match request: [Bin]
[08-09-01 22:47:38.1084] Slim::Utils::Misc::msg (1398) Warning: [22:47:38.1083] dirsFor: Didn't find a match request: [Bin]
[08-09-01 22:47:38.1192] Slim::Utils::Misc::msg (1398) Warning: [22:47:38.1190] Use of uninitialized value in join or string at /usr/lib/perl5/vendor_perl/5.8.8/i686-linux/File/Spec/Unix.pm line 82.
[08-09-01 22:47:38.1443] Slim::Utils::MySQLHelper::createConfig (186) Warning: file error - /my.tt: not found
[08-09-01 22:47:38.1476] Slim::Utils::Misc::msg (1398) Warning: [22:47:38.1474] Use of uninitialized value in sprintf at /usr/lib/perl5/vendor_perl/5.8.8/Slim/Utils/MySQLHelper.pm line 474.


Expected Results:  
Running squeezecenter process

emerge --info
WARNING: repository at /usr/local/portage is missing a repo_name entry
Portage 2.2_rc8 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.26-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.26-gentoo-r1-i686-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-glibc2.0
Timestamp of tree: Mon, 01 Sep 2008 17:16:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.26
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=k8 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://de-mirror.org/distro/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa avahi berkdb branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dts dvd dvdr dvdread encode fam ffmpeg firefox flac gdbm gif gpm hal hddtemp iconv id3tag java javasc jpeg kde lame libnotify mad midi mikmod mp3 mpeg mudflap ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline real reflection ript scanner sdl session spell spl ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis win32codecs x86 xml xorg xv zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="fglrx vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Karel De Vriendt 2008-09-02 04:41:45 UTC
P.S.: I have exactly the same problem with squeezecenter 7.1.0 - leaving no working ebuild availalbe any more.
Comment 2 Joe Peterson (RETIRED) gentoo-dev 2008-09-02 20:11:39 UTC
Are you sure your database (mysql) is set up properly?  I cannot reproduce this problem.  I am copying Stuart to see if it looks familiar to him.
Comment 3 Karel De Vriendt 2008-09-02 20:25:49 UTC
I had a working squeezecenter 7.0.1 installation.  Using a suggestion from the Squeezebox support forums I deleted my mysql database and recreated one using emerge --config =media-sound/squeezecenter-7.2.0.  Things work OK now.  Should I "by default" recreate my database after every update (on the squeezebox website, it is said that one must uninstall before installing a new version but doing so of course would not remove the database)?
Thanks for your help.
Comment 4 Joe Peterson (RETIRED) gentoo-dev 2008-09-02 20:30:26 UTC
Thanks for the report on how you "fixed" it.  I am not sure if this should be required in general.  Stuart might have a comment on this.  You may want to ask this specifically on the forums to see what they say about it (i.e. is it "expected" that the DB needs to be recreated).  Even if yes, I suspect it could only apply when upgrading from specific older versions that had a different DB format or something.

Marking this as resolved - please reopen if there is still an ebuild-related issue.
Comment 5 Stuart Hickinbottom 2008-09-02 22:39:51 UTC
There shouldn't be a problem in the future. Between the Portage ebuild for SqueezeCenter 7.0.1 and 7.0.2 we moved the location of the SqueezeCenter preferences file. The preference file includes the database connection information which is why your new 7.2.0 installation couldn't connect to the database - it had lost the password used to connect. The easiest end-user fix is to re-do the 'config' step which recreates that preferences file and password, but it also wipes your database in the process.

We shouldn't be moving that preferences file in the future so you'll be able to take the latest ebuild without having to reset your database and rescan your collection.

Sorry for the inconvenience. I posted a comment about this issue with the announcement for the 7.0.2 version (http://forums.slimdevices.com/showthread.php?t=48131), but if you skipped a few versions you may not have realised that it still applies.