PDA

View Full Version : Server will not start with Lion



bobpenn
2011-07-20, 19:12
Just updated to Lion. When I launch Squeezebox server it tries to start up but then stays stopped. I was using the latest version, and downloaded it again and reinstalled, just to be sure. What is happening?

mherger
2011-07-20, 22:21
> Just updated to Lion. When I launch Squeezebox server it tries to start
> up but then stays stopped. I was using the latest version, and
> downloaded it again and reinstalled, just to be sure. What is
> happening?

Which server version? Anything in server.log?


--

Michael

bobpenn
2011-07-21, 06:13
Here are the suspicious entries from the log:

[11-07-21 06:09:41.5883] main::init (326) Starting Squeezebox Server (v7.5.5, r32671, Mon Jul 11 11:54:59 PDT 2011) perl 5.012003
[11-07-21 06:09:42.5680] main::init (326) Starting Squeezebox Server (v7.5.5, r32671, Mon Jul 11 11:54:59 PDT 2011) perl 5.012003
[11-07-21 06:10:13.5119] Slim::Schema::Storage::throw_exception (82) Error: DBI Connection failed: DBI connect('hostname=127.0.0.1;port=9092;database=sli mserver','slimserver',...) failed: Can't connect to MySQL server on '127.0.0.1' (61) at /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm line 950
[11-07-21 06:10:13.5122] Slim::Schema::Storage::throw_exception (82) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema/Storage.pm line 82)
frame 1: Slim::Schema::Storage::throw_exception (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm line 972)
frame 2: DBIx::Class::Storage::DBI::_connect (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm line 814)
frame 3: DBIx::Class::Storage::DBI::_populate_dbh (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm line 753)
frame 4: DBIx::Class::Storage::DBI::ensure_connected (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema/Storage.pm line 41)
frame 5: (eval) (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema/Storage.pm line 41)
frame 6: Slim::Schema::Storage::dbh (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema.pm line 290)
frame 7: Slim::Schema::_connect (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema.pm line 126)
frame 8: Slim::Schema::init (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/Import.pm line 744)
frame 9: Slim::Music::Import::_checkLibraryStatus (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/Import.pm line 677)
frame 10: Slim::Music::Import::useImporter (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/MusicFolderScan.pm line 48)
frame 11: Slim::Music::MusicFolderScan::init (./slimserver.pl line 438)
frame 12: main::init (./slimserver.pl line 581)
frame 13: main::main (./slimserver.pl line 1075)

[11-07-21 06:10:13.5126] Slim::Schema::init (129) Error: Couldn't connect to database! Fatal error: [Connection refused] Exiting!
[11-07-21 06:10:13.5128] Slim::Schema::init (129) Backtrace:

frame 0: Slim::Utils::Log::logBacktrace (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Schema.pm line 129)
frame 1: Slim::Schema::init (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/Import.pm line 744)
frame 2: Slim::Music::Import::_checkLibraryStatus (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/Import.pm line 677)
frame 3: Slim::Music::Import::useImporter (/Library/PreferencePanes/Squeezebox.prefPane/Contents/server/Slim/Music/MusicFolderScan.pm line 48)
frame 4: Slim::Music::MusicFolderScan::init (./slimserver.pl line 438)
frame 5: main::init (./slimserver.pl line 581)
frame 6: main::main (./slimserver.pl line 1075)

[11-07-21 06:10:13.5131] Slim::Schema::forceCommit (1622) Warning: Trying to commit transactions before DB is initialized!

Any ideas how to proceed?

mherger
2011-07-21, 07:49
> [11-07-21 06:10:13.5119] Slim::Schema::Storage::throw_exception (82)
> Error: DBI Connection failed: DBI
> connect('hostname=127.0.0.1;port=9092;database=sli mserver','slimserver',...)
> failed: Can't connect to MySQL server on '127.0.0.1' (61) at
> /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm
> line 950

Hmm... MySQL is either not running or not accessible. Could you please run the following command from the terminal?

ps ax | grep mysql

What does it return?


Also: could you please try to run SBS from the command line? This would give us more information:

cd /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/ && ./slimserver.pl -d_startup


Please try to remove SBS completely and restart from scratch as described here:

http://wiki.slimdevices.com/index.php/Mac_Installation_Guide#Uninstalling

Thanks!

--

Michael

bobpenn
2011-07-21, 11:12
ps ax | grep mysql returned:

3866 s000 R+ 0:00.00 grep my sql

Then I ran the command line startup and got the message:

Slim:Schema::forceCommit (1622) Warning: Trying to commit transactions before DB is initialized!


> [11-07-21 06:10:13.5119] Slim::Schema::Storage::throw_exception (82)
> Error: DBI Connection failed: DBI
> connect('hostname=127.0.0.1;port=9092;database=sli mserver','slimserver',...)
> failed: Can't connect to MySQL server on '127.0.0.1' (61) at
> /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm
> line 950

Hmm... MySQL is either not running or not accessible. Could you please run the following command from the terminal?

ps ax | grep mysql

What does it return?

Also: could you please try to run SBS from the command line? This would give us more information:

cd /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/ && ./slimserver.pl -d_startup

Thanks!

--

Michael

mherger
2011-07-21, 23:54
Bob,

could you please try a complete removal of SBS, then re-install it and try again?

http://wiki.slimdevices.com/index.php/Mac_Installation_Guide#Uninstalling

Instead of removing the user-files, move them elsewhere, or rename them to keep a backup.

But make sure you completely remove the PrefPane and the StartupItems (if there). Then re-install and try again.

Michael



Am 21.07.2011, 20:12 Uhr, schrieb bobpenn <bobpenn.4x8mdb1311272041 (AT) no-mx (DOT) forums.slimdevices.com>:

>
> ps ax | grep mysql returned:
>
> 3866 s000 R+ 0:00.00 grep my sql
>
> Then I ran the command line startup and got the message:
>
> Slim:Schema::forceCommit (1622) Warning: Trying to commit transactions
> before DB is initialized!
>
> mherger;642136 Wrote:
>> > [11-07-21 06:10:13.5119] Slim::Schema::Storage::throw_exception (82)
>> > Error: DBI Connection failed: DBI
>> >
>> connect('hostname=127.0.0.1;port=9092;database=sli mserver','slimserver',...)
>> > failed: Can't connect to MySQL server on '127.0.0.1' (61) at
>> >
>> /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/CPAN/DBIx/Class/Storage/DBI.pm
>> > line 950
>>
>> Hmm... MySQL is either not running or not accessible. Could you please
>> run the following command from the terminal?
>>
>> ps ax | grep mysql
>>
>> What does it return?
>>
>> Also: could you please try to run SBS from the command line? This would
>> give us more information:
>>
>> cd /Library/PreferencePanes/Squeezebox.prefPane/Contents/server/ &&
>> ./slimserver.pl -d_startup
>>
>> Thanks!
>>
>> --
>>
>> Michael
>
>


--

Michael

MrBrillo
2011-07-22, 00:27
V 7.5.5 / r32783 seems to work fine - good work, thanks guys.