Bugzilla – Bug 13327
SqueezeBox Server fails to start up on x86-based ReadyNas Platforms
Last modified: 2009-10-05 14:31:50 UTC
The 7.4 version of SqueezeBox Server (was SqueezeCenter) has gone back to using MySQL for reliability reasons for now. Unfortunately it does not seem to run properly on the x86 version of the ReadyNas platform. Right now it works great on the Readynas NV/NV+, but not on the NVX/Duo. It fails with: [09-08-11 07:21:21.6007] main::init (318) Starting Squeezebox Server (v7.4, r28143, Tue Aug 11 04:03:41 PDT 2009) perl 5.008008 [09-08-11 07:21:22.0647] Slim::Schema::Storage::throw_exception (82) Error: DBI Connection failed: DBI connect('database=slimserver','slimserver',...) failed: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) at /usr/share/squeezebox/CPAN/DBIx/Class/Storage/DBI.pm line 715 [09-08-11 07:21:22.0659] Slim::Schema::Storage::throw_exception (82) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema/Storage.pm line 82) frame 1: Slim::Schema::Storage::throw_exception (/usr/share/squeezebox/CPAN/DBIx/Class/Storage/DBI.pm line 737) frame 2: DBIx::Class::Storage::DBI::_connect (/usr/share/squeezebox/CPAN/DBIx/Class/Storage/DBI.pm line 616) frame 3: DBIx::Class::Storage::DBI::_populate_dbh (/usr/share/squeezebox/CPAN/DBIx/Class/Storage/DBI.pm line 577) frame 4: DBIx::Class::Storage::DBI::ensure_connected (/usr/share/perl5/Slim/Schema/Storage.pm line 41) frame 5: (eval) (/usr/share/perl5/Slim/Schema/Storage.pm line 41) frame 6: Slim::Schema::Storage::dbh (/usr/share/perl5/Slim/Schema.pm line 288) frame 7: Slim::Schema::_connect (/usr/share/perl5/Slim/Schema.pm line 124) frame 8: Slim::Schema::init (/usr/share/perl5/Slim/Music/Import.pm line 718) frame 9: Slim::Music::Import::_checkLibraryStatus (/usr/share/perl5/Slim/Music/Import.pm line 651) frame 10: Slim::Music::Import::useImporter (/usr/share/perl5/Slim/Music/MusicFolderScan.pm line 48) frame 11: Slim::Music::MusicFolderScan::init (./squeezebox-server line 427) frame 12: main::init (./squeezebox-server line 572) frame 13: main::main (./squeezebox-server line 1092) [09-08-11 07:21:22.0674] Slim::Schema::init (127) Error: Couldn't connect to database! Fatal error: [] Exiting! [09-08-11 07:21:22.0685] Slim::Schema::init (127) Backtrace: frame 0: Slim::Utils::Log::logBacktrace (/usr/share/perl5/Slim/Schema.pm line 127) frame 1: Slim::Schema::init (/usr/share/perl5/Slim/Music/Import.pm line 718) frame 2: Slim::Music::Import::_checkLibraryStatus (/usr/share/perl5/Slim/Music/Import.pm line 651) frame 3: Slim::Music::Import::useImporter (/usr/share/perl5/Slim/Music/MusicFolderScan.pm line 48) frame 4: Slim::Music::MusicFolderScan::init (./squeezebox-server line 427) frame 5: main::init (./squeezebox-server line 572) frame 6: main::main (./squeezebox-server line 1092) [09-08-11 07:21:22.0698] Slim::Schema::forceCommit (1595) Warning: Trying to commit transactions before DB is initialized! I'm not sure whats going on at this point... Justin, can you please look at this? You can download the latest packages from http://downloads.slimdevices.com/nightly/ -- click on 7.4.
Justin, Let us know if you have a chance to look at this please... we want to make sure this goes out with the 7.4 release.
Can you try removing the Perl DBD modules from the ReadyNAS package? Looks like mysql.so is trying to access the mysqld socket at /tmp/mysqld.sock, which is the wrong place for our distro. If you remove the DBD modules from your CPAN directory, it should use the one from our base OS, which should point to the right place.
== Auto-comment from SVN commit #28202 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28202 == Bug 13327: Force 7.4 readynas i386 package to exclude DBD modules. They're already on the system.
== Auto-comment from SVN commit #28203 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28203 == Bug 13327: Rename all of the internal debian package stuff to squeezebox server. This should help it start up automatically on installation.
== Auto-comment from SVN commit #28205 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28205 == Bug 13327: Update the readynas final packaging scripts. Remove some extra files, adjust directories and filenames to squeezeboxserver name. Remove unneeded copy of /etc/init.d/squeezebox.
== Auto-comment from SVN commit #28206 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28206 == Bug 13327: Allow new user to be created without a password prompt. This fixes the install hang on the first attempt at creating a new user for the package.
== Auto-comment from SVN commit #28207 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28207 == Bug 13327: Add some migration code. If any of our old packages exist, we remove them before installing the new one. If we're removing sbs, also remove old squeezecenter and slimserver packages. If we find a prefs directory from an old package, copy it into the new location before installing this package.
== Auto-comment from SVN commit #28208 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28208 == Bug 13327: Remove old prefs once we move them to the new directory. This allows the old prefs dir to be deleted by the dpkg -P command that follows, because it will be empty.
== Auto-comment from SVN commit #28209 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28209 == Bug 13327: Fix typo in rules file
== Auto-comment from SVN commit #28211 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28211 == Bug 13327: Change order of the upgrade script. First we remove the old packages (but leave the config files), then we move the config files, then finally we remove the old config files and cache dirs.
== Auto-comment from SVN commit #28215 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28215 == Bug 12962 Bug 13327: Fix osdetect issues with the new path names
== Auto-comment from SVN commit #28216 to the slim repo by mwise == == https://svn.slimdevices.com/slim?view=revision&revision=28216 == Bug 13327 Bug 12962: Updated start/stop script that checks if SBS is already running before starting it up again (and stops it, if it is). Now has proper stop command that works as well.
Fixed
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.