Bug 4407 - Logging crash on startup
: Logging crash on startup
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 7.0
: PC Windows XP
: P2 normal (vote)
: ---
Assigned To: Chris Owens
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-21 19:02 UTC by Jim McAtee
Modified: 2008-12-18 11:12 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim McAtee 2006-10-21 19:02:02 UTC
Not sure how SS is to be started with the new logging.  Is --logfile <path> is still valid?

Using the following to start up on Windows XP from the console:

C:\>C:\Perl\bin\perl.exe "C:\Program Files\SlimServer\server\slimserver.pl" --playeraddr 192
.168.9.3 --httpaddr 192.168.9.3 --httpport 80 --cliaddr 192.168.9.3 --streamaddr 192.168.9.3
 --noupnp

I get the following error:

Can't open  (No such file or directory) at C:\Program Files\SlimServer\server\CPAN/Log/Log4p
erl/Appender/File.pm line 87, <DATA> line 164.

With --logfile D:\slimserver\slimserver.log appended to the startup command, I get the following.  If the file exists, SlimServer actually _deletes_ the existing log before crashing.

'D:\slimserver\slimserver.log' is not recognized as an internal or external command,
operable program or batch file.
[19:59:14.0455] main::init (245) SlimServer OSDetect init...
Cannot write to 'D:\slimserver\slimserver.log': Invalid argument at C:\Program Files\SlimSer
ver\server\CPAN/Log/Log4perl/Appender/File.pm line 210, <DATA> line 164.
[19:59:14.0462] Slim::bootstrap::theEND (335) Got to the END
Cannot write to 'D:\slimserver\slimserver.log': Invalid argument at C:\Program Files\SlimSer
ver\server\CPAN/Log/Log4perl/Appender/File.pm line 210, <DATA> line 164.
END failed--call queue aborted, <DATA> line 164.
Comment 1 KDF 2006-10-21 23:31:09 UTC
command asg is --logdir D:\slimserver\ now
Comment 2 Dan Sully 2006-10-22 00:04:17 UTC
Fixed in change 10439

Better if you do use --logdir instead, as SlimServer will keep a separate scanner and server log.
Comment 3 Chris Owens 2008-03-07 09:03:57 UTC
This bug is being closed since it was resolved for a version which is now released!  Please download the new version of SqueezeCenter (formerly SlimServer) at http://www.slimdevices.com/su_downloads.html

If you are still seeing this bug, please re-open it and we will consider it for a future release.