Page 1 of 1

Help can not access the vestacp panel I get error "504 Gateway Time-out" *_* Solved *_*

Posted: Tue Mar 07, 2017 8:02 pm
by willamsphp
Help can not access the vestacp panel I get error "504 Gateway Time-out"

The error occurs after changing the IP of the server.

Automating IP exchange or Public DNS exchange.

I believe this error is generated "504 Gateway Time-out"

Most do not know what I have to reconfigure any server.

What files can not be modified to change IP and DNS?

What should I do?

nginx-error.log

Code: Select all

PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_X_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED_FOR in /usr/local/vesta/web/inc/main.php on line 14
PHP message: PHP Notice:  Undefined index: HTTP_FORWARDED in /usr/local/vesta/web/inc/main.php on line 14" while reading response header from upstream, client: 170.245.64.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "namehost:8083", referrer: "https://namehost:8083/login/"
2017/03/07 18:53:05 [error] 1486#0: *62 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "namehost:8083", referrer: "https://namehost/login/"
2017/03/07 19:00:09 [error] 1486#0: *68 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "namehost:8083", referrer: "https://namehost/login/"
2017/03/07 19:19:49 [error] 1486#0: *72 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "namehost:8083"
2017/03/07 19:44:48 [error] 1486#0: *77 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "GET /list/user/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "namehost:8083"
2017/03/07 19:58:50 [error] 1486#0: *82 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "ip:8083"
2017/03/07 21:33:26 [error] 1486#0: *94 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 170.245.64.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock", host: "ip:8083", referrer: "https://ip:8083/login/"
df -h

Code: Select all

root@ip:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            492M   12K  492M   1% /dev
tmpfs           100M  388K   99M   1% /run
/dev/xvda1       30G  2.3G   26G   9% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            497M     0  497M   0% /run/shm
none            100M     0  100M   0% /run/user
df -i

Code: Select all

root@eip:~# df -i
Filesystem      Inodes  IUsed   IFree IUse% Mounted on
udev            125801    387  125414    1% /dev
tmpfs           127038    365  126673    1% /run
/dev/xvda1     1966080 165594 1800486    9% /
none            127038      2  127036    1% /sys/fs/cgroup
none            127038      2  127036    1% /run/lock
none            127038      1  127037    1% /run/shm
none            127038      2  127036    1% /run/user
root@ip:~#

Re: Help can not access the vestacp panel I get error "504 Gateway Time-out"

Posted: Thu Mar 09, 2017 6:15 am
by skurudo
We think this file /etc/sudoers.d/admin don't have code:

Code: Select all

# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
If you paste this, all will work (as we hope)

Don't forget restart vesta service.

Re: Help can not access the vestacp panel I get error "504 Gateway Time-out"

Posted: Thu Mar 09, 2017 3:06 pm
by willamsphp
Solved the problem

Worked perfectly

Thank you for your help

skurudo And note 100%


Re: Help can not access the vestacp panel I get error "504 Gateway Time-out" *_* Solved *_*

Posted: Thu Mar 09, 2017 8:01 pm
by skurudo
Thanks you for report, willamsphp
^_^

Re: Help can not access the vestacp panel I get error "504 Gateway Time-out" *_* Solved *_*

Posted: Wed Jun 14, 2017 6:13 pm
by elDekyfin
I have a similar problem. All the websites hosted on the server work fine, but the vestacp panel always shows a 504 error. This problem begun only a few days ago: Everything was working perfectly till then.