Bug 13327 - SqueezeBox Server fails to start up on x86-based ReadyNas Platforms
: SqueezeBox Server fails to start up on x86-based ReadyNas Platforms
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 7.4.0
: Infrant ReadyNAS RAIDiator x86
: P1 critical (vote)
: 7.4.0
Assigned To: Justin Maggard
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-08-11 08:00 UTC by Matt Wise
Modified: 2009-10-05 14:31 UTC (History)
2 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Wise 2009-08-11 08:00:21 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.
Comment 1 Matt Wise 2009-08-12 16:09:41 UTC
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.
Comment 2 Justin Maggard 2009-08-17 15:35:00 UTC
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.
Comment 3 SVN Bot 2009-08-18 07:38:48 UTC
 == 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.
Comment 4 SVN Bot 2009-08-18 07:59:00 UTC
 == 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.
Comment 5 SVN Bot 2009-08-18 08:04:28 UTC
 == 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.
Comment 6 SVN Bot 2009-08-18 08:20:30 UTC
 == 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.
Comment 7 SVN Bot 2009-08-18 09:12:27 UTC
 == 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.
Comment 8 SVN Bot 2009-08-18 09:19:53 UTC
 == 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.
Comment 9 SVN Bot 2009-08-18 09:25:47 UTC
 == 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
Comment 10 SVN Bot 2009-08-18 09:29:16 UTC
 == 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.
Comment 11 SVN Bot 2009-08-18 10:05:14 UTC
 == 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
Comment 12 SVN Bot 2009-08-18 10:37:04 UTC
 == 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.
Comment 13 Matt Wise 2009-08-18 12:18:46 UTC
Fixed
Comment 14 James Richardson 2009-10-05 14:31:50 UTC
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.