[SOLVED] Bugs found when changing site IP
Posted: Sun Mar 22, 2015 10:03 pm
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)
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)