Hello,
I have my system hosted on vultr since 2017 and I have to login to vultr and do a server restart.
This usually happens overnight and the phones in the office are dead in the morning. If i restart thru vultr or thru the freepbx gui everything goes back to normal.
I dont know where to look to find out why this keeps happening.
If the problem still occurs, you may want to change the server type or location. One of our instances was locking up, and support basically said that they were aware that their AMD servers are really popular and often oversold, so they suggested switching to Intel.
I have seen systems with years of uptime and systems that have to be rebooted every other day. Why? Who knows. As hardware and other things have improved it is less common. Some old timers still schedule reboots just because. You could consider a weekly reboot and in theory if your uptime is typically a month this would fix the issue with no other effort.
To create a cron job to reboot your system every Sunday at 8 PM, you can follow these steps:
Open a terminal or SSH into your server.
To edit the crontab file for your user, you can use the crontab command. Type the following command to open the crontab file:
crontab -e
This will open the crontab file in the default text editor (usually vi or nano). You can choose your preferred text editor. Here’s an example using nano:
export VISUAL=nano; crontab -e
Add the following line to the crontab file to schedule the reboot every Sunday at 8 PM (20:00):
0 20 * * 0 /sbin/reboot
In this line:
0 in the first field represents minutes.
20 in the second field represents hours (8 PM).
* in the third field represents any day of the month.
* in the fourth field represents any month.
0 in the fifth field represents Sunday (0 or 7 can be used interchangeably for Sunday).
Save and exit the text editor.
The cron job is now set to reboot your system every Sunday at 8 PM.
Make sure to double-check the schedule to ensure it aligns with your server’s timezone, and test the reboot to confirm that it works as expected.
I’ve got exactly the same issue with the latest FreePBX distro on Vultr.
I think it’s usually when an update occured automatically.
I never put my hands on this issue to be honnest because, it’s only a test server.
One day, I will try to fixe it if I’ve got some free times.