Icecast Streaming Media Server Forum Index Icecast Streaming Media Server
Icecast is a Xiph Foundation Project
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Icecast on ubuntu stops every day same time (2.3.1)

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Anonymous
Guest





PostPosted: Sun Jun 01, 2008 11:44 am    Post subject: Icecast on ubuntu stops every day same time (2.3.1) Reply with quote

strange problem, the icecast service stops every 12 ours at the same time (1:1Cool . No log files can be found. Who Knows?

Last edited by Anonymous on Mon Jun 02, 2008 11:12 am; edited 1 time in total
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Sun Jun 01, 2008 1:07 pm    Post subject: Reply with quote

If it always dies at the same time then that would tend to indicate a cron job terminating the icecast. Check the error log as defined in the icecast xml configuration, see how it terminates.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Mon Jun 02, 2008 11:15 am    Post subject: ghost story Reply with quote

offcause we checked it, this is not it. there are no logfiles at all. the complete SERVICE stops!
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Mon Jun 02, 2008 1:43 pm    Post subject: Reply with quote

If you have configured icecast to not log anything then we won't be able to help much. Obviously you can try 2.3.2 as that has a number of fixes. I would suggest that you enable logging at least level 3, especially in these cases.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Jun 03, 2008 8:16 am    Post subject: loglevel Reply with quote

Goodmorning everyone,

The problem still continue's to be as vague. The loglevel was set to 3 and it gives me no output. There are no cronjobs configured at anytime near the crashtime. Now the crash is not only during daytime, but also during nighttime. And ALWAYS at 18 minutes past 1.

I have set the loglevel back to level 1 in order to catch more information about the problem. But it is not giving me any usable output.

The system is UBUNTU 7.04 and the icecast is taken directly from the internal apt-get reposity system.

CURRENT ICECAST.XML:
--
<icecast>
<limits>
<clients>1000</clients>
<sources>20</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>30</header-timeout>
<source-timeout>30</source-timeout>
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>FAKE</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>FAKE</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>mediaroot</admin-user>
<admin-password>FAKE</admin-password>
</authentication>

<hostname>stream.hoecom.net</hostname>

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/studiocam.nsv</shoutcast-mount>
-->

<shoutcast-mount>/stream.nsv</shoutcast-mount>


<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/etc/icecast2</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<!-- <pidfile>/usr/share/icecast2/icecast.pid</pidfile> -->

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>logs/access.log</accesslog>
<errorlog>logs/error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>100000000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>


<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>hoecom</user>
<group>hoecom</group>
</changeowner>
-->
</security>
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 03, 2008 2:52 pm    Post subject: Reply with quote

according to this xml, your logs should be located under /etc/icecast2/ but you seem to have a logs/access.log and logs/error.log as the actual filename which is wrong because those are paths not filenames. It probably won't open because of that. Try putting .../logs/ on logdir and remove logs/ from the filenames.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Anonymous
Guest





PostPosted: Tue Jun 03, 2008 4:35 pm    Post subject: log file location. Reply with quote

I saw the error in the config right after i posted it, underneath is the current XML-config used. The strange thing is, i am getting something written in the log file, only it is just one line placed over de last recorded event. So that doesn't help. Underneath is the current contents of the log-files.

How can the complete service of icecast STOP instead of malfunction????
There are no cron-jobs scheduled on the server but still it is crashing EVERY day and every night at exactly 18 min's past 1.


/ETC/ICECAST2/LOGS/ERROR.LOG
---
[2008-06-03 18:32:52] DBUG stats/modify_node_event update node total_bytes_sent (6208012308)

/ETC/ICECAST2/LOGS/ACCESS.LOG
---
81.*07.157.2*7 - - [03/Jun/2008:18:31:38 +0200] "GET /radiostanvaste.mp3 HTTP/1.1" 200 5364199 "-" "NSPlayer/11.0.5721.5145 WMFSDK/11.0" 729

/ETC/ICECAST2/ICECAST.XML
---
<icecast>
<limits>
<clients>1000</clients>
<sources>20</sources>
<threadpool>5</threadpool>
<queue-size>524288</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>30</header-timeout>
<source-timeout>30</source-timeout>
<burst-size>65535</burst-size>
</limits>

<authentication>
<!-- Sources log in with username 'source' -->
<source-password>FAKE</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>FAKE</relay-password>

<!-- Admin logs in with the username given below -->
<admin-user>mediaroot</admin-user>
<admin-password>FAKE</admin-password>
</authentication>

<hostname>stream.hoecom.net</hostname>

<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
</listen-socket>
<listen-socket>
<port>8001</port>
<shoutcast-compat>1</shoutcast-compat>
</listen-socket>
-->

<fileserve>1</fileserve>

<!-- set the mountpoint for a shoutcast source to use, the default if not
specified is /stream but you can change it here if an alternative is
wanted or an extension is required
<shoutcast-mount>/studiocam.nsv</shoutcast-mount>
-->

<shoutcast-mount>/stream.nsv</shoutcast-mount>


<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast2</basedir>

<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/etc/icecast2/logs</logdir>
<webroot>/usr/share/icecast2/web</webroot>
<adminroot>/usr/share/icecast2/admin</adminroot>
<pidfile>/etc/icecast2/icecast.pid</pidfile>

<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>

<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<!-- <playlistlog>playlist.log</playlistlog> -->
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>100000000</logsize> <!-- Max size of a logfile -->
<!-- If logarchive is enabled (1), then when logsize is reached
the logfile will be moved to [error|access|playlist].log.DATESTAMP,
otherwise it will be moved to [error|access|playlist].log.old.
Default is non-archive mode (i.e. overwrite)
-->
<!-- <logarchive>1</logarchive> -->
</logging>


<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>hoecom</user>
<group>hoecom</group>
</changeowner>
-->
</security>
</icecast>



Hope this helps! Sad
Back to top
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Tue Jun 03, 2008 4:56 pm    Post subject: Reply with quote

The xml only partly helps in the case of crashing. What I would suggest is build 2.3.2 with debug (make debug), then run

catchsegv icecast. -c .... 1>/tmp/output 2>&1

then report the contents that get reported in the file if it crashes. It's possible that something happens around that time that is triggering a bug but without more information it's hard to say.

karl.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
subRebel style by ktauber