[OpenSIPS-Users] OpenSIPS, Corosync, and Logrotate

Larry Long larry at djslyde.com
Fri Apr 27 15:59:26 CEST 2012


Hello,

CentOS 5.8/2.6.18 kernel
OpenSIPS 1.6.2-2
MediaProxy 2.4.3-2
Corosync 1.2.0-1

I am having an issue with my OpenSIPS where when logrotate runs, it 
hangs briefly and gives a busy signal immediately when calling in. One 
of the things I did to try to alleviate this problem is have OpenSIPS 
write to it's own log as shown in this syslog configuration:

local0.*                        /var/log/opensips.log

This is rotated at the same time as /var/log/messages daily. However, 
the problem still occurs. I see the following errors in the log around 
the same time the logs are rotated:

Apr 21 04:02:14 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:02:13 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:02:13 sipsbox /usr/sbin/opensips[7518]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:02:15 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:04:55 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:04:56 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:06 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:07 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:10 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:20 sipsbox /usr/sbin/opensips[7518]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:21 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:24 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:27 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:32 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:05:32 sipsbox /usr/sbin/opensips[7518]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:06:00 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:06:31 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:07:04 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:07:36 sipsbox /usr/sbin/opensips[7518]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:08:40 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:08:57 sipsbox /usr/sbin/opensips[7522]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:09:28 sipsbox /usr/sbin/opensips[7521]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:10:00 sipsbox /usr/sbin/opensips[7518]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer
Apr 21 04:11:05 sipsbox /usr/sbin/opensips[7519]: 
ERROR:mediaproxy:send_command: did timeout waiting for an answer

If I disable logrotate for the night, it does not occur.

Currently, I have 4 servers in my corosync cluster, the primary runs 
OpenSIPS with media-dispatcher only, the other 3 run media-relay and can 
accept failovers for OpenSIPS and media-dispatcher.

My next step in troubleshooting this would be to upgrade OpenSIPS and 
then mediaproxy. Does anyone have any advice on this?

Thank you!



More information about the Users mailing list