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 

Strange error when checking icecast stats
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server
View previous topic :: View next topic  
Author Message
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Tue Aug 11, 2009 7:44 pm    Post subject: Strange error when checking icecast stats Reply with quote

I just installed an Icecast RPM I built from the Icecast source RPM, and when I start icecast with service icecast start, it says starting icecast ok
However, when I go to restart, or check it's status it fails.
Checking status gives this:
[root@eagle icecast]# service icecast status
icecast dead but subsys locked
Restarting with service icecast restart just gives
Restarting icecast: failed.
Any idea?
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Aug 12, 2009 5:53 pm    Post subject: Reply with quote

Try a simple thing..
In a terminal, as root, type:
Code:
tail -f /var/log/messages

If no eror is found, have a look to /var/log/icecast/error.log

Mostly, it is a bad permission on a file or directory which may cause this. In source RPM for CentOS x86_64, I had this issue and had to add some postinstall scripts to changes permissions and owner.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 6:15 pm    Post subject: Reply with quote

I don't see any errors. Still the problem persists. I have a user and group called Icecast.
The only thing I see in the error log is:
[2009-08-12 14:10:13] INFO main/main Icecast 2.3.2 server started
[2009-08-12 14:10:13] DBUG yp/yp_recheck_config Updating YP configuration
[2009-08-12 14:10:13] INFO yp/yp_update_thread YP update thread started
[2009-08-12 14:10:13] INFO fserve/fserv_thread_function file serving thread started
[2009-08-12 14:10:13] INFO connection/get_ssl_certificate No SSL capability on any configured ports
[2009-08-12 14:10:14] DBUG slave/_slave_thread checking master stream list
Still when I do service icecast restart it says
shutting down icecast
Failed
service icecast start
Starting icecast: ok.
service icecast status
Icecast dead but subsys locked
Back to top
View user's profile Send private message
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 6:21 pm    Post subject: Reply with quote

Forgot to add that when I do service icecast reload, it says:
Reloading Icecast
failed.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Aug 12, 2009 6:35 pm    Post subject: Reply with quote

Wel, as log says icecast is running, the only issue than remains is where PID for server is saved..
as all initscript rely on this, it could mean PID is not savec, so initscript believes icecast is dead, while it is running..
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 6:48 pm    Post subject: Reply with quote

jcr wrote:
Wel, as log says icecast is running, the only issue than remains is where PID for server is saved..
as all initscript rely on this, it could mean PID is not savec, so initscript believes icecast is dead, while it is running..

I don't understand. according to the xml it says:
<pidfile>/var/run/icecast/icecast.pid</pidfile>
It still doesn't work.
What else to check.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Aug 12, 2009 6:58 pm    Post subject: Reply with quote

Check if icecast can access /var/run/icecast/icecast.pid
Sometimes it happens that icecast is not the owner of this, and even not owner of some other file sin the package..
This sounds to me like a bug imported in CentOS from old Fedora 9, which often had this bug..
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 7:04 pm    Post subject: Reply with quote

I've checked some directories.
The /var/run/icecast directory's ownership is set to icecast and permissions are set to 0755
The icecast.pid file is set to the ownership of root and it's permissions are 0644
The icecast Init file is set to 0755 in the /etc/init.d directory, and the script's ownership is set to root.
Back to top
View user's profile Send private message
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 7:13 pm    Post subject: Reply with quote

I've done some tests.
When Icecast starts it writes it's pidfile.
it has trouble stopping, restarting, reloading, and checking it's status.
When it tries to stop it fails, when it restarts, as you know it fails.
To me, and from how the init script looks, when it restarts it first stops the server then starts it again.
The second part of the script runs fine, it's able to start it after the restart, but when it attempts to stop it to start it again that's when it fails.
if you'd like I can paste the init sript here.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Wed Aug 12, 2009 9:29 pm    Post subject: Reply with quote

I have the init script, as I provided source RPM..
This runs fine on x86_64 bocxes with Centos & Fedora 32 & 64 bits.

What sounds strange is this funny behaviour with restart..
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Wed Aug 12, 2009 9:44 pm    Post subject: Reply with quote

Sounds odd to me as well.
It stopping, restarting, checking it's status, and reloading all don't work.
The status command reports:
icecast dead but subsys locked.
I attempted removing the icecast file from /var/lock/subsys it still doesn't work right.
So now I've run into an issue because I tried adding mounts and can't reload icecast.
The only way to get it working properly as in to display the fact it is stopped with /etc/init.d/icecast status, is to type killall icecast.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Thu Aug 13, 2009 9:18 am    Post subject: Reply with quote

And your icecast error.log does not tell you anything ?
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Thu Aug 13, 2009 9:52 am    Post subject: Reply with quote

jcr wrote:
And your icecast error.log does not tell you anything ?


What was pasted a few messages ago is the only things that error log has. Tail -f /var/log/messages gives nothing either.
Back to top
View user's profile Send private message
jcr
Modérateur français
Modérateur français


Joined: 14 Apr 2006
Posts: 544
Location: France, Auvergne

PostPosted: Thu Aug 13, 2009 11:00 am    Post subject: Reply with quote

Sounds really weird then. Looks like killproc function in initscripts does not really kill running instance, or pid file is not created.
_________________
Epsilon Friends Radio Icecast Radio on CentovaCast admin panel. Icecast hosting
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
topdog



Joined: 05 Jul 2009
Posts: 34

PostPosted: Thu Aug 13, 2009 2:36 pm    Post subject: Reply with quote

jcr wrote:
Sounds really weird then. Looks like killproc function in initscripts does not really kill running instance, or pid file is not created.

The Pid file is created when it starts. But killproc doesn't seem to work.
In fact, killproc on the command line gives:
killproc
Command not found
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Icecast Streaming Media Server Forum Index -> Icecast Server All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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