PDA

View Full Version : slim.exe --d_startup? What does it say?



pelle3
2007-03-12, 04:55
WinXP
SS 6.5.2
D-link 524/Wireless
Before the clean install of 6.5.2 I tried 6.3.1, 6.50, 6.5.1.
Plugins I used on 6.3.1: Moose, AlbumReview, Biography Plugin, AlienBBC and MusicIP Mixer.

I'm having difficulties in starting slimserver after months of flawless perfomance - see thread
http://forums.slimdevices.com/showthread.php?p=187258#post187258

I'm not totally computer illiterate but - at least that is how I feel right now - not far from it. I would appreciate if someone could take a look and see if the problem might be find in this message that I recieved when I did a "slim.exe --d_startup" check:

C:\Program\SlimServer\server>slim.exe --d_startup
Got @INC containing:
C:/Program/SlimServer/server
C:\Program\SlimServer\server

Extended @INC to contain:
C:\Program\SlimServer\server\CPAN\arch\5.8\MSWin32-x86-multi-thread
C:\Program\SlimServer\server\CPAN\arch\5.8\MSWin32-x86-multi-thread\auto
C:\Program\SlimServer\server\CPAN\arch\5.8.8\MSWin 32-x86-multi-thread
C:\Program\SlimServer\server\CPAN\arch\5.8.8\MSWin 32-x86-multi-thread\auto
C:\Program\SlimServer\server\CPAN\arch\5.8\MSWin32-x86-multi-thread
C:\Program\SlimServer\server\CPAN\arch\5.8\MSWin32-x86-multi-thread\auto
C:\Program\SlimServer\server\CPAN\arch\MSWin32-x86-multi-thread
C:\Program\SlimServer\server\lib
C:\Program\SlimServer\server\CPAN
C:/Program/SlimServer/server
C:/Program/SlimServer/server
C:\Program\SlimServer\server

Loaded module: [Time::HiRes] ok!
Loaded module: [DBD::mysql] ok!
Loaded module: [DBI] ok!
Loaded module: [XML::Parser::Expat] ok!
Loaded module: [HTML::Parser] ok!
Loaded module: [Compress::LZF] ok!
Loaded module: [Compress::Zlib] ok!
Loaded module: [Digest::SHA1] ok!
Loaded module: [YAML::Syck] ok!
Loaded module: [GD] ok!
Loaded module: [Locale::Hebrew] ok!
The following modules are loaded after the first attempt:
YAML/Syck.pm => /PerlApp/YAML/Syck.pm
IO/Handle.pm => /PerlApp/IO/Handle.pm
re.pm => /PerlApp/re.pm
HTML/Parser.pm => /PerlApp/HTML/Parser.pm
File/Spec/Functions.pm => /PerlApp/File/Spec/Functions.pm
List/Util.pm => /PerlApp/List/Util.pm
POSIX.pm => /PerlApp/POSIX.pm
SelectSaver.pm => /PerlApp/SelectSaver.pm
ActiveState/Path.pm => /PerlApp/ActiveState/Path.pm
Getopt/Long.pm => /PerlApp/Getopt/Long.pm
GD/Polygon.pm => /PerlApp/GD/Polygon.pm
Compress/Zlib.pm => /PerlApp/Compress/Zlib.pm
Locale/Hebrew.pm => /PerlApp/Locale/Hebrew.pm
DBD/mysql.pm => /PerlApp/DBD/mysql.pm
Cwd.pm => /PerlApp/Cwd.pm
warnings.pm => /PerlApp/warnings.pm
Slim/Utils/OSDetect.pm => /PerlApp/Slim/Utils/OSDetect.pm
B.pm => /PerlApp/B.pm
Digest/base.pm => /PerlApp/Digest/base.pm
Fcntl.pm => /PerlApp/Fcntl.pm
/PerlApp/auto/Compress/Zlib/autosplit.ix => /PerlApp/auto/Compress/Zlib/
autosplit.ix
Symbol.pm => /PerlApp/Symbol.pm
Compress/LZF.pm => C:\Program\SlimServer\server\CPAN/Compress/LZF.pm
Scalar/Util.pm => /PerlApp/Scalar/Util.pm
Exporter.pm => /PerlApp/Exporter.pm
Win32.pm => /PerlApp/Win32.pm
File/Spec.pm => /PerlApp/File/Spec.pm
File/Spec/Win32.pm => /PerlApp/File/Spec/Win32.pm
FindBin.pm => /PerlApp/FindBin.pm
warnings/register.pm => /PerlApp/warnings/register.pm
XSLoader.pm => /PerlApp/XSLoader.pm
Slim/bootstrap.pm => /PerlApp/Slim/bootstrap.pm
Digest/SHA1.pm => /PerlApp/Digest/SHA1.pm
Time/HiRes.pm => /PerlApp/Time/HiRes.pm
IO/Seekable.pm => /PerlApp/IO/Seekable.pm
XML/Parser/Expat.pm => /PerlApp/XML/Parser/Expat.pm
B/Deparse.pm => /PerlApp/B/Deparse.pm
PerlApp/DATA.pm => /PerlApp/PerlApp/DATA.pm
DBI.pm => /PerlApp/DBI.pm
GD/Image.pm => /PerlApp/GD/Image.pm
Config.pm => /PerlApp/Config.pm
File/Basename.pm => /PerlApp/File/Basename.pm
/PerlApp/auto/POSIX/autosplit.ix => /PerlApp/auto/POSIX/autosplit.ix
ActivePerl/Config.pm => /PerlApp/ActivePerl/Config.pm
IO.pm => /PerlApp/IO.pm
Carp.pm => /PerlApp/Carp.pm
FileHandle.pm => /PerlApp/FileHandle.pm
Exporter/Heavy.pm => /PerlApp/Exporter/Heavy.pm
File/Spec/Unix.pm => /PerlApp/File/Spec/Unix.pm
auto/POSIX/load_imports.al => /PerlApp/auto/POSIX/load_imports.al
vars.pm => /PerlApp/vars.pm
strict.pm => /PerlApp/strict.pm
constant.pm => /PerlApp/constant.pm
Config_heavy.pl => /PerlApp/Config_heavy.pl
IO/File.pm => /PerlApp/IO/File.pm
overload.pm => /PerlApp/overload.pm
AutoLoader.pm => /PerlApp/AutoLoader.pm
HTML/Entities.pm => /PerlApp/HTML/Entities.pm
lib.pm => /PerlApp/lib.pm
GD.pm => /PerlApp/GD.pm
DynaLoader.pm => /PerlApp/DynaLoader.pm

The following modules are loaded after the second attempt:
YAML/Syck.pm => /PerlApp/YAML/Syck.pm
IO/Handle.pm => /PerlApp/IO/Handle.pm
re.pm => /PerlApp/re.pm
HTML/Parser.pm => /PerlApp/HTML/Parser.pm
File/Spec/Functions.pm => /PerlApp/File/Spec/Functions.pm
List/Util.pm => /PerlApp/List/Util.pm
POSIX.pm => /PerlApp/POSIX.pm
SelectSaver.pm => /PerlApp/SelectSaver.pm
ActiveState/Path.pm => /PerlApp/ActiveState/Path.pm
Getopt/Long.pm => /PerlApp/Getopt/Long.pm
GD/Polygon.pm => /PerlApp/GD/Polygon.pm
Compress/Zlib.pm => /PerlApp/Compress/Zlib.pm
Locale/Hebrew.pm => /PerlApp/Locale/Hebrew.pm
DBD/mysql.pm => /PerlApp/DBD/mysql.pm
Cwd.pm => /PerlApp/Cwd.pm
warnings.pm => /PerlApp/warnings.pm
Slim/Utils/OSDetect.pm => /PerlApp/Slim/Utils/OSDetect.pm
B.pm => /PerlApp/B.pm
Digest/base.pm => /PerlApp/Digest/base.pm
Fcntl.pm => /PerlApp/Fcntl.pm
/PerlApp/auto/Compress/Zlib/autosplit.ix => /PerlApp/auto/Compress/Zlib/
autosplit.ix
Symbol.pm => /PerlApp/Symbol.pm
Compress/LZF.pm => C:\Program\SlimServer\server\CPAN/Compress/LZF.pm
Scalar/Util.pm => /PerlApp/Scalar/Util.pm
Exporter.pm => /PerlApp/Exporter.pm
Win32.pm => /PerlApp/Win32.pm
File/Spec.pm => /PerlApp/File/Spec.pm
File/Spec/Win32.pm => /PerlApp/File/Spec/Win32.pm
FindBin.pm => /PerlApp/FindBin.pm
warnings/register.pm => /PerlApp/warnings/register.pm
XSLoader.pm => /PerlApp/XSLoader.pm
Slim/bootstrap.pm => /PerlApp/Slim/bootstrap.pm
Digest/SHA1.pm => /PerlApp/Digest/SHA1.pm
Time/HiRes.pm => /PerlApp/Time/HiRes.pm
IO/Seekable.pm => /PerlApp/IO/Seekable.pm
XML/Parser/Expat.pm => /PerlApp/XML/Parser/Expat.pm
B/Deparse.pm => /PerlApp/B/Deparse.pm
PerlApp/DATA.pm => /PerlApp/PerlApp/DATA.pm
DBI.pm => /PerlApp/DBI.pm
GD/Image.pm => /PerlApp/GD/Image.pm
Config.pm => /PerlApp/Config.pm
File/Basename.pm => /PerlApp/File/Basename.pm
/PerlApp/auto/POSIX/autosplit.ix => /PerlApp/auto/POSIX/autosplit.ix
ActivePerl/Config.pm => /PerlApp/ActivePerl/Config.pm
IO.pm => /PerlApp/IO.pm
Carp.pm => /PerlApp/Carp.pm
FileHandle.pm => /PerlApp/FileHandle.pm
Exporter/Heavy.pm => /PerlApp/Exporter/Heavy.pm
File/Spec/Unix.pm => /PerlApp/File/Spec/Unix.pm
auto/POSIX/load_imports.al => /PerlApp/auto/POSIX/load_imports.al
vars.pm => /PerlApp/vars.pm
strict.pm => /PerlApp/strict.pm
constant.pm => /PerlApp/constant.pm
Config_heavy.pl => /PerlApp/Config_heavy.pl
IO/File.pm => /PerlApp/IO/File.pm
overload.pm => /PerlApp/overload.pm
AutoLoader.pm => /PerlApp/AutoLoader.pm
HTML/Entities.pm => /PerlApp/HTML/Entities.pm
lib.pm => /PerlApp/lib.pm
GD.pm => /PerlApp/GD.pm
DynaLoader.pm => /PerlApp/DynaLoader.pm

Use of uninitialized value in concatenation (.) or string at /PerlApp/Net/DNS/Re
solver/Win32.pm line 46.
Loaded module: [Slim::Utils::PerlRunTime] ok!
2007-03-12 12:33:27.3437 ERROR: There is already another copy of the SlimServer
running on this machine. (Unknown error)

bpa
2007-03-12, 06:00
This error looks like somehting is wrong with DNS as well as Windows thinking another slimserver running. This is in keeping with the message you said that SlimTray thinks slimserver is running.

Does this error occur after rebooting your system ? If Yes then install Www.sysinternals.com ProcessExplorer tool. It gives better details on running processes and services. Using it check for a slim.exe.

pelle3
2007-03-12, 06:24
This error looks like somehting is wrong with DNS as well as Windows thinking another slimserver running. This is in keeping with the message you said that SlimTray thinks slimserver is running.

Does this error occur after rebooting your system ? If Yes then install Www.sysinternals.com ProcessExplorer tool. It gives better details on running processes and services. Using it check for a slim.exe.

Thanks, I have downloaded ProcessExplorer and will se what it comes up with.
I have finally managed to stop slimserver as a service.
When I now run C:\>Program\SlimServer\server\slim.exe I get the following:

"C:\>Program\SlimServer\server\slim.exe
Use of uninitialized value in concatenation (.) or string at /PerlApp/Net/DNS/Re
solver/Win32.pm line 46.
2007-03-12 13:32:47.0468 ERROR: DBI Connection failed: DBI connect('hostname=127
.0.0.1;port=9092;database=slimserver','slimserver' ,...) failed: Can't connect to
MySQL server on '127.0.0.1' (10061) at C:\Program\SlimServer\server\CPAN/DBIx/C
lass/Storage/DBI.pm line 652

2007-03-12 13:32:47.0468 ERROR: Backtrace follows:

2007-03-12 13:32:47.0475 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (C:\Program\SlimServer\server
\CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 1: DBIx::Class::Storage::DBI::_connect (C:\Program\SlimServer\server\CP
AN/DBIx/Class/Storage/DBI.pm line 616)
frame 2: DBIx::Class::Storage::DBI::_populate_dbh (C:\Program\SlimServer\serv
er\CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 3: DBIx::Class::Storage::DBI::ensure_connected (C:\Program\SlimServer\s
erver/Slim/Schema/Storage.pm line 28)
frame 4: (eval) (C:\Program\SlimServer\server/Slim/Schema/Storage.pm line 28)

frame 5: Slim::Schema::Storage::dbh (/PerlApp/Slim/Schema.pm line 118)
frame 6: Slim::Schema::init (/PerlApp/Slim/Music/Info.pm line 71)
frame 7: Slim::Music::Info::init (slimserver.pl line 367)
frame 8: main::init (slimserver.pl line 444)
frame 9: main::main (slimserver.pl line 58)
frame 10: PerlSvc::Interactive (perlsvc.pl line 1486)
frame 11: PerlSvc::_interactive (slimserver.pl line 0)
frame 12: (eval) (slimserver.pl line 0)

2007-03-12 13:32:47.0505 ERROR: Unable to connect to the database - trying to br
ing it up!

2007-03-12 13:33:49.7187 ERROR: DBI Connection failed: DBI connect('hostname=127
.0.0.1;port=9092;database=slimserver','slimserver' ,...) failed: Can't connect to
MySQL server on '127.0.0.1' (10061) at C:\Program\SlimServer\server\CPAN/DBIx/C
lass/Storage/DBI.pm line 652

2007-03-12 13:33:49.7187 ERROR: Backtrace follows:

2007-03-12 13:33:49.7198 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (C:\Program\SlimServer\server
\CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 1: DBIx::Class::Storage::DBI::_connect (C:\Program\SlimServer\server\CP
AN/DBIx/Class/Storage/DBI.pm line 616)
frame 2: DBIx::Class::Storage::DBI::_populate_dbh (C:\Program\SlimServer\serv
er\CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 3: DBIx::Class::Storage::DBI::ensure_connected (C:\Program\SlimServer\s
erver/Slim/Schema/Storage.pm line 45)
frame 4: (eval) (C:\Program\SlimServer\server/Slim/Schema/Storage.pm line 45)

frame 5: Slim::Schema::Storage::dbh (/PerlApp/Slim/Schema.pm line 118)
frame 6: Slim::Schema::init (/PerlApp/Slim/Music/Info.pm line 71)
frame 7: Slim::Music::Info::init (slimserver.pl line 367)
frame 8: main::init (slimserver.pl line 444)
frame 9: main::main (slimserver.pl line 58)
frame 10: PerlSvc::Interactive (perlsvc.pl line 1486)
frame 11: PerlSvc::_interactive (slimserver.pl line 0)
frame 12: (eval) (slimserver.pl line 0)

2007-03-12 13:33:49.7221 ERROR: Unable to connect to the database - even tried r
estarting it twice!

2007-03-12 13:33:49.7229 ERROR: Check the event log for errors on Windows. Fatal
. Exiting.

2007-03-12 13:33:49.7249 ERROR: forceCommit: Trying to commit transactions befor
e DB is initialized!

2007-03-12 13:33:50.7031 ERROR: DBI Connection failed: DBI connect('hostname=127
.0.0.1;port=9092;database=slimserver','slimserver' ,...) failed: Can't connect to
MySQL server on '127.0.0.1' (10061) at C:\Program\SlimServer\server\CPAN/DBIx/C
lass/Storage/DBI.pm line 652

2007-03-12 13:33:50.7041 ERROR: Backtrace follows:

2007-03-12 13:33:50.7052 Backtrace:

frame 0: Slim::Schema::Storage::throw_exception (C:\Program\SlimServer\server
\CPAN/DBIx/Class/Storage/DBI.pm line 658)
frame 1: DBIx::Class::Storage::DBI::_connect (C:\Program\SlimServer\server\CP
AN/DBIx/Class/Storage/DBI.pm line 616)
frame 2: DBIx::Class::Storage::DBI::_populate_dbh (C:\Program\SlimServer\serv
er\CPAN/DBIx/Class/Storage/DBI.pm line 543)
frame 3: DBIx::Class::Storage::DBI::ensure_connected (C:\Program\SlimServer\s
erver/Slim/Schema/Storage.pm line 28)
frame 4: (eval) (C:\Program\SlimServer\server/Slim/Schema/Storage.pm line 28)

frame 5: Slim::Schema::Storage::dbh (/PerlApp/Slim/Schema.pm line 249)
frame 6: (eval) (/PerlApp/Slim/Schema.pm line 249)
frame 7: Slim::Schema::disconnect (slimserver.pl line 1038)
frame 8: main::cleanup (/PerlApp/Slim/bootstrap.pm line 300)
frame 9: Slim::bootstrap::sigint (/PerlApp/Slim/bootstrap.pm line 331)
frame 10: Slim::bootstrap::END (slimserver.pl line 0)
frame 11: (eval) (slimserver.pl line 0)

2007-03-12 13:33:51.7968 ERROR: Running service shutdown failed!"

pelle3
2007-03-12, 06:43
I did run ProcessExplorer. I'm not sure what I should be looking for but here what I got under Stack for thread while trying to start slimserver (C:\Program\SlimServer\server\slim.exe):

Stack for thread 2840

ntoskrnl.exe!ExReleaseResourceLite+0x206
ntoskrnl.exe!ProbeForWrite+0x505
ntoskrnl.exe!ZwYieldExecution+0xb78
ntdll.dll!KiFastSystemCallRet
USER32.dll!GetLastInputInfo+0x105
USER32.dll!MsgWaitForMultipleObjects+0x1f
perl58.dll!win32_async_check+0x155
perl58.dll!win32_sleep+0x1b
perl58.dll!Perl_runops_standard+0xc
slim.exe+0x299e
slim.exe+0x2c74
slim.exe+0x9a97
kernel32.dll!RegisterWaitForInputIdle+0x49

bpa
2007-03-12, 07:49
The message "here is already another copy of the SlimServer running on this machine." is produced when slimserver cannot open UDP port 3483 and it is reasonable to assume that it is another slimserver but slimserver does not in fact check the process list for "slim.exe".

If when you are trying to run slimserver and you get the "another copy of Slimserver" messages - just check the ProcessExplorer main window on the left hand side and see if there is a Slim.exe process running - and if so who is the owning process.

If there is no Slim.exe running then you need to find out who is using port 3483 and kill that process - it may be the SB is keeping the TCP connection alive even though the "listening" process has died.

To find the process open a cmd prompt and issues the command "netstat -ab" and look for port 3483