Selt-Hosting: Time-out errors?

I have an old computer running ubuntu to host FarmOS.
It works well with the exception that it often times out after a period of inactivity.
To get it working again, I have to go and poke the computer to wake it up, and it will respond again and stay up for a few hours or so.

I have it set not to shut down or log out after any period of time, and even tried a chron job to have it ping the router every 30 minutes, but still no dice.

I am using apache2 as my http server. Any suggestions are appreciated, Thanks!

1 Like

I wonder if this could just be Drupal’s “poor man’s cron” running automatically. See this comment here: https://github.com/farmOS/farmOS.org/issues/36#issuecomment-428266587

Here are instructions for setting up Drupal’s cron to run via Linux crontab: https://www.drupal.org/docs/7/setting-up-cron/overview

Hope that helps!

Or hmm, maybe I’m misreading the symptoms you describe. Does the server become completely unresponsive? Or does it just take a little extra long for a page to load, but then works again?

If the latter, it might be cron. If the former, then it might be something lower level on your server. Not sure!

Sounds like the server is closing the ethernet connection and going to sleep.

I run 2 servers - a dual xeon monster for my nas and run virtualbox and jails with apache24. no issues at all with sleeping. Even with a custom install.

It sounds like the computer is physically going to sleep and disabling the nic.

What do your system logs show for sigterm? like mstentat said, is it unresponsive in the shell? What is the memory usage and cpu usage? Can you confirm no port issues through router or switches?

1 Like