Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Vesta Web Interface
  • Search

Server Restart Times Out to Blank Page

Questions regarding the Web Interface
GUI
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
JerDoggMcKoy
Posts: 2
Joined: Tue Oct 17, 2017 6:58 pm

Server Restart Times Out to Blank Page
  • Quote

Post by JerDoggMcKoy » Thu Dec 28, 2017 12:54 am

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?

Image

After I Click that restart button, here is what I get next:

Image

Anyone else experiencing this and know how to fix?
Top

joem
Posts: 378
Joined: Thu Nov 13, 2014 8:33 am

Os: CentOS 6x
Web: nginx + php-fpm
Re: Server Restart Times Out to Blank Page
  • Quote

Post by joem » Thu Dec 28, 2017 3:38 am

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

Code: Select all

if [  "$restart" = 'yes' ]; then
    /sbin/reboot
fi
With

Code: Select all

if [  "$restart" = 'yes' ]; then
    sleep 5
    /sbin/reboot
fi
In /usr/local/vesta/web/restart/system/index.php Replace

Code: Select all

exec (VESTA_CMD."v-restart-system yes", $output, $return_var);
With

Code: Select all

exec (VESTA_CMD."v-restart-system yes >/dev/null 2>/dev/null &", $output, $return_var);
Top

JerDoggMcKoy
Posts: 2
Joined: Tue Oct 17, 2017 6:58 pm

Re: Server Restart Times Out to Blank Page
  • Quote

Post by JerDoggMcKoy » Fri Dec 29, 2017 5:35 am

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!
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Interface”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password