We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on Vesta 2.0 and expect to release it by the end of 2024. Read more about it: https://vestacp.com/docs/vesta-2-development
Server Restart Times Out to Blank Page
-
- Posts: 2
- Joined: Tue Oct 17, 2017 6:58 pm
Server Restart Times Out to Blank Page
Whenever I go to "Server" and hit the "Restart" button under the hostname server, it hangs for about a minute and then sends me to an error page with no VestaCP, and it takes a while before I can get back on. Shouldn't it keep me on the control panel while it finishes its restart?
After I Click that restart button, here is what I get next:
Anyone else experiencing this and know how to fix?
After I Click that restart button, here is what I get next:
Anyone else experiencing this and know how to fix?
Re: Server Restart Times Out to Blank Page
This happens to everyone because PHP has to finish executing v-restart-system before it redirects to list server page.
You can fix this by doing the following, keep in mind when you update Vesta these settings will be overwritten and you will need to reapply the changes.
In /usr/local/vesta/bin/v-restart-system Replace
With
In /usr/local/vesta/web/restart/system/index.php Replace
With
You can fix this by doing the following, keep in mind when you update Vesta these settings will be overwritten and you will need to reapply the changes.
In /usr/local/vesta/bin/v-restart-system Replace
Code: Select all
if [ "$restart" = 'yes' ]; then
/sbin/reboot
fi
Code: Select all
if [ "$restart" = 'yes' ]; then
sleep 5
/sbin/reboot
fi
Code: Select all
exec (VESTA_CMD."v-restart-system yes", $output, $return_var);
Code: Select all
exec (VESTA_CMD."v-restart-system yes >/dev/null 2>/dev/null &", $output, $return_var);
-
- Posts: 2
- Joined: Tue Oct 17, 2017 6:58 pm
Re: Server Restart Times Out to Blank Page
Sorry, it took me a short while before I had the time to implement your fix. Thank you very much! Worked perfectly!
Happy New Year!
Happy New Year!