system down and no possible restart the server - processe not stops via panel

Read 8630 times
Hello,

I have some cases that souce icon inform that are no source online and auto dj indicator is online and server icon show online too. Seems that sc trans v2 down and system not detect that. When client try to stop and start the server it not have sucess, because the shoutcast server is still alive, it not are finished with the stop server command. So we need enter via ssh and kill the process wiht sudo kill -9 command. After that it starts again.

I believe that could be caused by some kind of bug in mp3 / sc_trans v2, but system could detect and kill the processes correctly, or try some restart.
Last Edit: February 25, 2014, 10:42:32 am by audiobras
Hello audiobras,

This is most likely a case of your clients kicking the autoDJ directly from the DNAS page, please read the following article for more details.

http://www.centova.com/en/faq/general/troubleshooting/kicking_the_autodj


HTH
I will ask that to client, but I believe that some other thing cause the same effect, because we really not instruct the client to kick something via shoutcast admin, and he did not told that make something like that. I bvelieve that something cause some sc_trans disconection and then not reconnect... Is not possible make some system verification to make something if auto dj is like on line, server is online and source is reported like offline? Because in any case, I believe that it is not a normal combination of status.
Logs when the issue happens:

Auto dj source log:

2014-02-26 21:14:01 I msg:[DECODE] Next file is /usr/local/centovacast/var/vhosts/superlegal/var/spool/media/05 - No Faz Cara Feia.mp3
2014-02-26 21:14:01 W msg:Could not load metadata because could not open file #!/usr/local/centovacast/bin/nextsong superlegal 72f4cd9817b72ec4a01f64d6a2877e0f sctrans2next
2014-02-26 21:14:01 E msg:Failure converting filename to metadata Premature end of data (*/%TIT2.) 2014-02-26 21:14:01 E msg:Failure converting filename to metadata Premature end of data (*/%TIT2.) 2014-02-26 21:14:01 E msg:Failure converting filename to metadata Premature end of data (*/%TIT2.) 2014-02-26 21:14:01 E msg:Failure converting filename to metadata Premature end of data (*/%TIT2.) 2014-02-26 21:14:07 I msg:[DJMGR] No DJ currently active. Run permission granted for `samcast2' 2014-02-26 21:14:07 I msg:[DJPROTOCOLSHOUTCAST] Connected
2014-02-26 21:14:08 I msg:[BROADCASTSTALLMANAGER] Timed content set to TRUE
2014-02-26 21:14:11 I msg:[RESAMPLER] Resampling 22050/2 == 44100/2
2014-02-26 21:14:31 I msg:[UVOX2] 744621475 Sending metadata 3902 [519 bytes] content= <?xml version="1.0" encoding="UTF-8" ?> <metadata> <TIT2>05 - No Faz Cara Feia</TIT2> <extension> <title seq="1">05 - No Faz Cara Feia</title> <title seq="2">nextsong superlegal 72f4cd9817b72ec4a01f64d6a2877e0f sctrans2next</title> <title seq="3">nextsong superlegal 72f4cd9817b72ec4a01f64d6a2877e0f sctrans2next</title> <title seq="4">nextsong superlegal 72f4cd9817b72ec4a01f64d6a2877e0f sctrans2next</title> <soon>nextsong superlegal 72f4cd9817b72ec4a01f64d6a2877e0f sctrans2next</soon> </extension> </metadata>
2014-02-26 22:00:32 I msg:[MAIN] Exiting threads...
2014-02-26 22:00:32 I msg:[AAC] Exiting encoder thread
2014-02-26 22:00:32 I msg:[DECODE] Exiting decoder thread
2014-02-26 22:00:32 I msg:[DJMGR] DJ `samcast2' is done.
2014-02-26 22:00:33 I msg:[RGCALC] Thread exiting
2014-02-26 22:00:33 I msg:[RESAMPLER] tIn=112868 tOut=112868 bIn=10110717952 bOut=19909898240
2014-02-26 22:00:33 I msg:[CROSSFADER] in=112868 out=112808
2014-02-26 22:00:33 I msg:<***> Logger shutdown

And after the shoutcast log with por in use due the shoutcast not be finished:

 2014-02-26 22:24:21 WARN [CONFIG] Invalid item on line 22 of ../superlegal/etc/server.conf -> `yp1debug'
2014-02-26 22:24:21 WARN [CONFIG] Deprecated statement found on line 88 of ../superlegal/etc/server.conf -> change autodumpsourcetime_1=30 to autodumptime_1=30
2014-02-26 22:24:21 WARN [CONFIG] Invalid item on line 102 of ../superlegal/etc/server.conf -> `yp2' 2014-02-26 22:24:21 WARN [CONFIG] Invalid item on line 164 of ../superlegal/etc/server.conf -> `specialfiletmpdir'
2014-02-26 22:24:21 INFO 2014-02-26 22:24:21 INFO ***************************************************************
2014-02-26 22:24:21 INFO ** SHOUTcast Distributed Network Audio Server (DNAS)
2014-02-26 22:24:21 INFO ** Copyright (C) 1999-2013 Nullsoft, Inc. All Rights Reserved.
2014-02-26 22:24:21 INFO ***************************************************************
2014-02-26 22:24:21 INFO [MAIN] SHOUTcast DNAS/posix(linux x64) v2.2.1.109 (Nov 29 2013) 2014-02-26 22:24:21 INFO [MAIN] PID: 17802 2014-02-26 22:24:21 INFO [MAIN] Loaded config from ../superlegal/etc/server.conf
2014-02-26 22:24:21 INFO [MAIN] Calculated CPU count is 3 -> using all available CPUs
2014-02-26 22:24:21 INFO [MAIN] Limited to 1024 file descriptors [relates to ulimit -n]
2014-02-26 22:24:21 INFO [MAIN] Starting 3 network threads
2014-02-26 22:24:21 ERROR [MICROSERVER] Error opening port 10232 because could not bind to (serverip):10232 because address already in use
2014-02-26 22:24:21 INFO [MAIN] Shutdown
the sc_trans log indicates it has been asked to shutdown and is not a crash as your prior posts implied. so something on your setup is causing sc_trans to be purposefully closed and would suggest checking back through any older logs to see if it's happening at a specific time to see if that can be matched with other scheduled tasks on the machine.

with the DNAS log, not much can be done if it's already running or taking too long to release the ports before a new instance is started (though i'm not following why you'd need to be restarting the DNAS unless that had crashed? as the logs aren't helping).