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 and logrotate

 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Wed Apr 21, 2010 9:04 am    Post subject: Icecast and logrotate Reply with quote

Hello,

I've a little problem, I've 5 debian boxes with Icecast 2.3.2-5 installed. All of them have the same icecast.xml.

On 4 of them, I have no problem with logrotate. On the one remaining, after the logrotate, Icecast isn't logging anymore. I have to stop/start icecast to make it writing (-HUP isn't enough).

The logrotate icecast script is the same on all the servers.

Do you have an idea where to look ?

(I use the changeowner on all the servers without the chroot and the user used has right to write in the log directory)

Thanks in advance
Back to top
View user's profile Send private message AIM Address MSN Messenger
karlH
Code Warrior
Code Warrior


Joined: 13 Jun 2005
Posts: 5476
Location: UK

PostPosted: Wed Apr 21, 2010 12:57 pm    Post subject: Reply with quote

not much to go one really. There are other possible reasons for writing to suddenly stop working, disk full, quota limit reached, maybe file size limit reached. Can you rename the file and then send HUP, does that reopen a new log file?

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



Joined: 21 Apr 2010
Posts: 13

PostPosted: Wed Apr 21, 2010 1:00 pm    Post subject: Reply with quote

Hello,

Thanks for your reply.

Disk has a lot of space available.

Renaming the file and doing -HUP doesn't recreate the log files (but it does on the other servers).

There is no quota for users.

File limit is set to 100MB and is far from being used as after logrotate, the file should be 0 Byte.

TIA
Back to top
View user's profile Send private message AIM Address MSN Messenger
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Wed Apr 21, 2010 1:38 pm    Post subject: Reply with quote

Just an extra info, the server has around 3500 mountpoints and 5000 listeners (but also the other ones so it should matter).

TIA
Back to top
View user's profile Send private message AIM Address MSN Messenger
gimlioak



Joined: 21 Apr 2010
Posts: 13

PostPosted: Fri Apr 23, 2010 6:19 am    Post subject: Reply with quote

Hello,

In fact Karl found the problem (thanks to him).

I'm using the change owner directive and the icecast.xml should be readable by the final owner.

At start, it sounds the rights used are the ones of the original owner (root in this case) but after rotate (or -HUP) it's the rights of the changed owner.

Many thanks
Back to top
View user's profile Send private message AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server 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