Page 1 of 1

[SOLVED] Bugs found when changing site IP

Posted: Sun Mar 22, 2015 10:03 pm
by Ted B
Changing hosting today. New IP was created in VestaCP and assigned to domain. I've bump up system config items where Vesta doesn't change.old ip. It made impossible to connect to server with 502 Bad gateway from nginx until I've found old ip with grep and fix manually.

Items are:

/etc/iptables.rules
-A INPUT -s XXX.XXX.XXX.XXX/32 -j ACCEPT

/ipt
same string

/etc/vsftpd.conf
pasv_address
new IP appears in single quotes: pasv_address='xxx.xxx.xxx.xxx'
causing error
500 OOPS: invalid pasv_address
and subsequent
500 OOPS: priv_sock_get_cmd
while connecting ftp. After removing quotes and vsftpd restart ftp connection was restored

Hope it would be helpful for users and developers

Debian 7 32-bit
vestacp 0.9.8 (i386)
vesta-php 0.9.7 (i386)
vesta-nginx 0.9.7 (i386)

Re: Bugs found when changing site IP

Posted: Wed Jan 13, 2016 1:19 pm
by skurudo
Thanks, Ted B
No such thing in newer versions.