It turns out the MYSQL error occurs when SC is stopped,  not when it is
started.   The previous log was from an "/etc/init.d/sqeezecenter
restart" command.  

However, if I do a "stop" followed by a "start" with some time delay in
between then I see the sequence looks like this (this time with mysql
logging turned on to at debug level):

((( issue stop command   )))
<log>
[08-04-12 10:12:48.0477] Slim::Utils::MySQLHelper::stopServer (344)
Running shutdown.
2008-04-12 10:12:48 squeezecenter_safe stopped.
[08-04-12 10:12:50.0718] Slim::Schema::forceCommit (1363) Warning:
Trying to commit transactions before DB is initialized!
[08-04-12 10:12:50.0738] Slim::Schema::Storage::throw_exception (67)
Error: DBI Connection failed: DBI
connect('hostname=127.0.0.1;port=9092;database=slimserver:mysql_socket=/var/lib/squeezecenter/cache/squeezecenter-mysql.sock','slimserver',...)
failed: Can't connect to MySQL server on '127.0.0.1' (111) at
/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 652
[08-04-12 10:12:50.0743] Slim::Schema::Storage::throw_exception (67)
Backtrace:

frame 0: Slim::Utils::Log::logBacktrace
(/usr/share/perl5/Slim/Schema/Storage.pm line 67)
frame 1: Slim::Schema::Storage::throw_exception
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 2: DBIx::Class::Storage::DBI::_connect
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 616)
frame 3: DBIx::Class::Storage::DBI::_populate_dbh
(/usr/share/squeezecenter/CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 4: DBIx::Class::Storage::DBI::ensure_connected
(/usr/share/perl5/Slim/Schema/Storage.pm line 27)
frame 5: (eval) (/usr/share/perl5/Slim/Schema/Storage.pm line 27)
frame 6: Slim::Schema::Storage::dbh (/usr/share/perl5/Slim/Schema.pm
line 244)
frame 7: (eval) (/usr/share/perl5/Slim/Schema.pm line 244)
frame 8: Slim::Schema::disconnect (/usr/sbin/squeezecenter-server
line 964)
frame 9: main::cleanup (/usr/share/perl5/Slim/bootstrap.pm line
368)
frame 10: Slim::bootstrap::sigint
(/usr/share/perl5/Slim/bootstrap.pm line 402)
frame 11: Slim::bootstrap::theEND (/usr/sbin/squeezecenter-server
line 1001)
frame 12: main::END (/usr/sbin/squeezecenter-server line 0)
frame 13: (eval) (/usr/sbin/squeezecenter-server line 0)
</log>

(((  time delay then issue start command ))))

<log>
2008-04-12 10:14:22 squeezecenter_safe started.
[08-04-12 10:14:23.3009] Slim::Utils::MySQLHelper::createConfig (182)
createConfig() Creating config from file:
[/usr/share/squeezecenter/MySQL/my.tt] ->
[/var/lib/squeezecenter/cache/my.cnf].
[08-04-12 10:14:23.3558] Slim::Utils::MySQLHelper::startServer (247)
About to start MySQL as a process with command: [/usr/sbin/mysqld
--defaults-file=/var/lib/squeezecenter/cache/my.cnf]
[08-04-12 10:14:25.4730] Slim::Networking::mDNS::startAdvertising (110)
Error: Couldn't find mDNSResponderPosix binary! Aborting!
</log>


-- 
geoff
------------------------------------------------------------------------
geoff's Profile: http://forums.slimdevices.com/member.php?userid=15468
View this thread: http://forums.slimdevices.com/showthread.php?t=46185

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to