Page 2 of 3

Re: 500 Internal Server Error after a server's migration

Posted: Wed Jan 20, 2016 2:22 pm
by sanna
skurudo wrote:How did you install VestaCP: full install or with advanced options?
no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's

Re: 500 Internal Server Error after a server's migration

Posted: Wed Jan 20, 2016 2:37 pm
by skurudo
sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Search your old IP, may be you changed not all old records?

Code: Select all

find /etc -type f -name "*" | xargs grep "old-ip-here"

Code: Select all

find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"

Re: 500 Internal Server Error after a server's migration

Posted: Wed Jan 20, 2016 3:03 pm
by sanna
skurudo wrote:
sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Search your old IP, may be you changed not all old records?

Code: Select all

find /etc -type f -name "*" | xargs grep "old-ip-here"

Code: Select all

find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"
SpoilerShow
root@srv1:~# find /etc -type f -name "*" | xargs grep "104.194.14.77"
/etc/apache2/mods-enabled/rpaf.conf: # old ip 104.194.14.77
/etc/iptables.rules:-A INPUT -s 104.194.14.77/32 -j ACCEPT
root@srv1:~# find /usr/local/vesta/ -type f -name "*" | xargs grep "104.194.14.77"
/usr/local/vesta/data/users/admin/history.log:ID='5' DATE='2015-03-06' TIME='16:40:37' CMD='added system ip address 104.194.14.77' UNDO=''
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:07:41 [error] 2772#0: *278 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:08:01 [error] 2772#0: *269 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:09:56 [error] 2782#0: *19 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/list/mail/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/15 19:29:48 [error] 2782#0: *22 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:PHP message: PHP Notice: Undefined index: LANGUAGE in /usr/local/vesta/web/login/index.php on line 38" while reading response header from upstream, client: 213.213.84.212, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:18 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 10:43:25 [error] 2762#0: *11 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 213.213.84.212, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:23:59 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:24:06 [error] 2778#0: *1 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/16 18:25:09 [error] 2778#0: *6 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/login/"
/usr/local/vesta/log/nginx-error.log.1:2015/03/17 17:47:29 [error] 2774#0: *9 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33" while reading response header from upstream, client: 95.247.124.66, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "104.194.14.77:8083", referrer: "https://104.194.14.77:8083/reset/"
Here there's the old log file too
They changed IP on december 2015
thanks

Re: 500 Internal Server Error after a server's migration

Posted: Wed Jan 20, 2016 5:11 pm
by sanna
skurudo wrote:
sanna wrote:no sorry this is a label but I have Demian :)
Full install before Changed the IP because a datacenter migration's
Search your old IP, may be you changed not all old records?

Code: Select all

find /etc -type f -name "*" | xargs grep "old-ip-here"

Code: Select all

find /usr/local/vesta/ -type f -name "*" | xargs grep "old-ip-here"
thanks Skurudo:
root@srv1:~# find /etc -type f -name "*" | xargs grep "104.194.14.77"
/etc/apache2/mods-enabled/rpaf.conf: # old ip 104.194.14.77
/etc/iptables.rules:-A INPUT -s 104.194.14.77/32 -j ACCEPT
root@srv1:~# find /usr/local/vesta/ -type f -name "*" | xargs grep "104.194.14.77"

I found only the old logs file
They changed IP on december 2015
thanks

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 10:45 am
by skurudo
Try to Rebulid web.

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 10:52 am
by sanna
skurudo wrote:Try to Rebulid web.
Possible it is a Ioncube Loader issue ? Because I changed IP
I need to reinstall again
thanks for support Skurudo

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 11:54 am
by skurudo
sanna wrote: Possible it is a Ioncube Loader issue ? Because I changed IP
I need to reinstall again
Great idea! But do you have encoded script with ip-binding?

You can see in console what's with iouncude:

Code: Select all

php -v

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 2:39 pm
by sanna
skurudo wrote:
sanna wrote: Possible it is a Ioncube Loader issue ? Because I changed IP
I need to reinstall again
Great idea! But do you have encoded script with ip-binding?

You can see in console what's with iouncude:

Code: Select all

php -v
Yes
php -v
PHP 5.4.45-0+deb7u2 (cli) (built: Oct 17 2015 09:01:48)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies
with the ionCube PHP Loader v4.7.4, Copyright (c) 2002-2014, by ionCube Ltd.

I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/

many thanks

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 2:45 pm
by skurudo
sanna wrote: I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/
502 Bad Gateway - your server can't receive answer from webserver

Try to raise memory_limit in your php.ini and check.

Re: 500 Internal Server Error after a server's migration

Posted: Thu Jan 21, 2016 4:24 pm
by sanna
skurudo wrote:
sanna wrote: I think the problem is in PHP I receive Bad Gateway Error :
502 Bad Gateway
on Phpmyadmin http://172.245.218.82/phpmyadmin/
502 Bad Gateway - your server can't receive answer from webserver

Try to raise memory_limit in your php.ini and check.
I have no limit
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
memory_limit = -1