CXS Cron hanging

Community forum to discuss cxs.
If you believe that there is a problem with your cxs installation and want support then, as a paid product, you should use the helpdesk after having consulted the documentation.
Post Reply
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

CXS Cron hanging

Post by ckh »

Got an odd problem on the last server you guys set up.

The cxs daily cron will sometimes just hang and prevent the logrotate process from running. I'll notice it when I receive an email that /var is running out of drive space, due to logs growing in size.

If I kill the cxs cron, then logrotate will run. I've noticed this happening about 3 or 4 different times since last december. Just noticed it now, looks like it hung on 12 Jan 2014, the logs were rotated on the 11th and now that I killed the cron, the logs rotated today, 14 Jan.

Any idea what I should be looking for? I have cxs installed on all my shared servers and a couple more, maybe 8-10 servers and this is the only one that hangs. Current version is 4.10
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CXS Cron hanging

Post by ForumAdmin »

We'll look at adding a timeout. For now, if you edit the script and place a space then an ampersand " &" at the end of each cxs line in /etc/cxs/cxsdaily.sh it should fork the process and not block the cron job.
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

Re: CXS Cron hanging

Post by ckh »

Thanks for the fix and quick repy!
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

Re: CXS Cron hanging

Post by ckh »

Added the space ampersand and it hung again, stopping the other daily crons:

/usr/sbin/cxs --upgrade --quiet &
/usr/sbin/cxs --qclean 7 --quarantine /home/quarantine --quiet &

are the two lines that aren't remarked out. I modified it on the 15th, worked on the 16th, then on the 17th, it hung again, killing the process allowed the other crons to run.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CXS Cron hanging

Post by ForumAdmin »

It might help if you could log a ticket with access details when the process hangs again so we can look at it, if possible. We'll keep looking into possible causes, though.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CXS Cron hanging

Post by ForumAdmin »

Additionally, to prevent it hanging your daily cron you might want to remove the current jobs and add them via:

Code: Select all

crontab -e
And schedule them for some time convenient to you. It may still hang, but should not hold anything up.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CXS Cron hanging

Post by ForumAdmin »

We were able to recreate the problem. This should hopefully now be fixed once you are running on v4.14:
http://blog.configserver.com/
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

Re: CXS Cron hanging

Post by ckh »

That was quick, thanks. I'll let you know if it happens again.
ckh
Junior Member
Posts: 147
Joined: 10 Dec 2006, 15:35

Re: CXS Cron hanging

Post by ckh »

This hasn't happened since I updated to 4.14, so the fix is working.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: CXS Cron hanging

Post by ForumAdmin »

Thank you for the follow-up, glad to hear it :)
Post Reply