Chat daemon stops responding after some days

Chat daemon stops responding after some days

by Sergey Ab -
Number of replies: 5

Hi!

I found that chatd (moodle 1.9) is stops responding after some days idle. There are no errors in log. When I kill chatd processs and restart it -- all works fine.

Any suggestions?

Average of ratings: -
In reply to Sergey Ab

Re: Chat daemon stops responding after some days

by Luciano Rodriguez -
Which version of PHP are you using, I had that problem when I used PHP5, so i used PHP4 instead and it all worked fine.

--Luciano
In reply to Luciano Rodriguez

Re: Chat daemon stops responding after some days

by Sergey Ab -

I'm using PHP Version 5.2.6.

I think it is possible to have both versions -- 4 as command line for chatd and 5 for rest (apache etc.) Could I?

In reply to Sergey Ab

Re: Chat daemon stops responding after some days

by Luciano Rodriguez -
I do, and I am using the built in php4 just for Chatd. It works pretty good.

-Luciano
In reply to Sergey Ab

Re: Chat daemon stops responding after some days

by Israel Forés -
Hi!!!

I think that I've the same problem. When I restart the database, automatically lose the connection with chat and gives me a connection error. Maybe your ISP restart the DDBB every two days. My environment is:

php 5.1.6
mysql 5.0.27
on RedHat


I looked at bugs moodle (http://tracker.moodle.org) and I have not seen any similar bug.

The only way that I've found is restart the chat daemon everyday.

Any suggestions?
is.
In reply to Israel Forés

Re: Chat daemon stops responding after some days

by Luciano Rodriguez -
See if you can try to have php4 in the command line. I think you can install it in CLI, not CGI. So you can use php5 for moodle and php4 for the chatd. Just make sure you change the config file for chatd to call the php4. I hope this helps. smile

Try to google to get info to have php4 and php5 running on Redhat.

-luciano