PDA

View Full Version : Help with some debugging please!



nicketynick
2007-03-02, 16:19
Hi,
My Slimserver has picked up the habit of just stopping for no apparent reason. I can re-start it from the slimtray with no problems whatsoever, though. I think it might have to do with some plugins I've been playing around with lately, namely Fileviewer.pm, SaverSwitcher.pm (which I had trouble installing, so maybe there is still something funny going on?), or possibly lastfm, although I think this one was running for quite a while without causing trouble. Can anybody direct me to which debugging routine might provide an indication of what is going on that causes the server to stop?

Thanks,

Nick

kdf
2007-03-02, 17:00
Quoting nicketynick
<nicketynick.2mucjb1172877601 (AT) no-mx (DOT) forums.slimdevices.com>:

Can anybody direct me to
> which debugging routine might provide an indication of what is going on
> that causes the server to stop?

If you are on Windows, check the Event Viewer for information about
the crash: start->settings=>control panel->administration tools

to dig further, stop the server and open a command prompt:

start->programs->accessories->command prompt. run the following:

c:\program files\slimserver\server\slim.exe --d_plugins --d_source

That will show you plugin and playback activity so that you have some
idea of what the server is doing when it stops, as well as any
messages that can't be trapped by the event viewer.

if you aren't on windows, then skip the event viewer and open a
command-line, running slimserver.pl --d_plugins --d_source instead.

-kdf

peterw
2007-03-03, 04:53
Hi,
My Slimserver has picked up the habit of just stopping for no apparent reason. I can re-start it from the slimtray with no problems whatsoever, though. I think it might have to do with some plugins I've been playing around with lately, namely Fileviewer.pm, SaverSwitcher.pm (which I had trouble installing, so maybe there is still something funny going on?)

The latest official release of SaverSwitcher definitely has some known bugs -- mainly for cases where someone has chosen SaverSwitcher as a screensaver but hasn't made the appropriate 1/9 saver "active". The bugs related to that tend to be CPU-hogging bugs, though, not crashing bugs (to the best of my knowledge). I think I've fixed those bugs, but haven't done enough testing to feel comfortable with a new release. Anyway, as I said, I'm not aware of any fatal/crashing bugs since release 1.5.

If you find anything wrong that looks like SaverSwitcher, please let me know and I'll do my best to fix the problem ASAP.

Good luck,

Peter

kdf
2007-03-05, 18:04
Quoting nicketynick
<nicketynick.2n01eb1173143101 (AT) no-mx (DOT) forums.slimdevices.com>:

>
> Hi kdf,
> Well, here's what I see in the Event Viewer corresponding pretty
> closely with a Slimserver stoppage. Make any sense?
> C:\PROGRA~1\SLIMSE~1\server\Bin\MSWIN3~1\mysqld.ex e: Normal shutdown

"normal" isn't really expected :)

I would have expected something to do with slim.exe in there
somewhere. Are you using any antivirus software? This has a known
issue with mysqld, which can be fixed by telling your AV software to
ignore *.MYI and *.MYD files.

-kdf

nicketynick
2007-03-05, 18:04
Hi kdf,
Well, here's what I see in the Event Viewer corresponding pretty closely with a Slimserver stoppage. Make any sense?
C:\PROGRA~1\SLIMSE~1\server\Bin\MSWIN3~1\mysqld.ex e: Normal shutdown

I haven't tried the more intensive logging yet.

Peter, thanks for the assurances with SaverSwitcher. So far, don't think it's to blame!

nicketynick
2007-03-05, 18:19
Thanks kdf,

Sure is hard to read these fora when the response gets posted before the question! Or are you psychic?
Anyway, I'm running McAfee - I've seen the advice on the mysq* files before - I'll do it now while I'm thinking about it and see what happens!

nicketynick
2007-03-05, 18:32
Hmmm..... can't find where McAfee allows me to ignore specific file types - I can scan "all files", or "Program files and documents only". Not sure if this is very helpful....
Has anybody else tried to do this with McAfee? It's McAfee Security Center 7.2

nicketynick
2007-03-19, 17:32
I checked my router log to see if I could see anything corresponding to my server magically stopping, and have this:

2007/03/18 10:14:45 : Wireless MAC address 00:04:E2:F0:B8:03 has connected with the device
2007/03/18 10:14:38 : Wireless MAC address 00:04:20:06:32:92 has connected with the device
2007/03/18 10:14:37 : Wireless MAC address 00:04:20:06:33:7A has connected with the device
2007/03/18 10:14:37 : Secondary DNS address x.x.x.x
2007/03/18 10:14:37 : Primary DNS address x.x.x.x
2007/03/18 10:14:37 : local Secondary DNS address x.x.x.x
2007/03/18 10:14:37 : local Primary DNS address x.x.x.x
2007/03/18 10:14:37 : local IP address x.x.x.x
2007/03/18 10:14:37 : Username and Password : OK
2007/03/18 10:14:37 : PPPoE starts PPP...
2007/03/18 10:14:37 : PPPoE receive PADS
2007/03/18 10:14:37 : PPPoE sending PADR
2007/03/18 10:14:37 : PPPoE receive PADO
2007/03/18 10:14:25 : PPPoE sending PADI
2007/03/18 10:14:25 : WLAN TEST....................PASS
2007/03/18 10:14:25 : WAN ETHER TEST...........PASS
2007/03/18 10:14:25 : FLASH TEST....................PASS
2007/03/18 10:14:25 : DRAM TEST.....................PASS
2007/03/18 10:14:25 : PPPoE sending PADI
2007/03/18 10:14:25 : PPPoE Start...

I've x-ed out the ip's - I hope leaving the MACs is OK - but you lot are trustworthy anyway! The MACs include both SB3s and the server-machine, but it won't reconnect since the server is mysteriously stopped!

Anyway, all that I can think that I've done to cause things to behave differently than before is open the ports through the firewall to troubleshoot remote access. Does this make any sense? What else would cause the server to stop when the ip refreshes?
Any thoughts appreciated!
Thanks,
Nick

bpa
2007-03-19, 17:45
Did you check the C:\Program Files\SlimServer\server\Cache\mysql-error-txt.log file to see if there any interesting messages.

nicketynick
2007-03-19, 17:53
Did you check the C:\Program Files\SlimServer\server\Cache\mysql-error-txt.log file to see if there any interesting messages.

Thanks bpa - searching for that file right now - does it disappear/re-write when the server is restarted? ie. do I have to wait for it to stop again before I can find this file?

bpa
2007-03-19, 17:58
On my system it is always there and output from mysqld is appended to it. If it is not there mysql creates it.

nicketynick
2007-03-19, 18:04
Here's the server I'm running:

SlimServer Version: 6.5.0 - 9916 - Windows XP - EN - cp1252
Server IP address: 192.168.2.150
Perl Version: 5.8.7 MSWin32-x86-multi-thread
MySQL Version: 5.0.22-community-nt

Maybe too old for the logging you have? Its been pretty good to me until this odd quirky thing.....
Can you confirm the path/filename you provided?
Thanks,

Nick

bpa
2007-03-19, 18:23
I am using 6.5.1.

The location of the file will depend on your installation but generally in the Cache directory.

The generation of the log file will depend on the mysql my.cnf file
In 6.50 the following was NOT in the my.cnf - if you add it you will get logs.


log-error = C:/Program Files/SlimServer/server/Cache/mysql-error-log.txt

like this snippet


skip-grant-tables

basedir = C:/Program Files/SlimServer/server/MySQL
datadir = C:/Program Files/SlimServer/server/Cache/MySQL
language = C:/Program Files/SlimServer/server/MySQL
port = 9092
socket = C:/Program Files/SlimServer/server/Cache/slimserver-mysql.sock
pid-file = C:/Program Files/SlimServer/server/Cache/slimserver-mysql.pid
log-error = C:/Program Files/SlimServer/server/Cache/mysql-error-log.txt
innodb_fast_shutdown = 1
max_connections = 4

nicketynick
2007-03-19, 19:09
Huh, I can't find a my.cnf file anywhere in slimserver, and it has nothing to do with the dns refresh - server just stopped again, something very close to exactly 24hrs after the last time, but nothing in the router log. Think I'll just have to update to 6.5.1 and see what happens?

nicketynick
2007-03-22, 19:23
Found this in the Event Viewer right after the server mysteriously stopped again:
The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Insane number of timers: 501

mysql shut down a few seconds later "normal shutdown".

Does this make any sense to anyone?

Thanks!

nicketynick
2007-03-26, 06:00
Found this in the Event Viewer right after the server mysteriously stopped again:
The description for Event ID ( 0 ) in Source ( Application ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. The following information is part of the event: Insane number of timers: 501

mysql shut down a few seconds later "normal shutdown".

Does this make any sense to anyone?

Thanks!

So does this mean anything to any of you gurus out there? Any guesses? Anything I should try to further troubleshoot? I'm stumped.....

bpa
2007-03-26, 06:22
If you're still on 6.5.0 - I think you will only get more help when you move to 6.5.1.

When you upgrade to 6.5.1 you must delete the old 6.5.0 installation as there are a lot of changes and an "overwrite" upgrade doesn't seems to be reliable.

nicketynick
2007-03-26, 06:27
Thanks bpa
When you say delete, do you mean clear the whole slimserver folder to the trash can? Any files I should save? eg plugins? Or the WinXP uninstall? Is there a wiki on this somewhere?

Nick

bpa
2007-03-26, 07:26
There is no wiki - just anecdotal postings.

My preferred way to upgrade is as follows:

1. Note installed plugins and settings.
2. Uninstall Slimserver
3. Delete the Slimserver directory
4. Run the new Slimseverer installation.
5. Scan and build new database.
6. Re-install plugins and re-enter settings.

There are some items which can be saved as external files such as playlist and radio station lists. These can be reloaded when new version is up and running.

Furthermore I think you should install a nightly 6.5.2 as there were some memory leak issues with SlimTray in 6.5.1.