Page 1 of 3

Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 4:42 pm
by ScIT
OS: Ubuntu Server 14.04 LTS

Upgraded two of my servers (more or less not really productives) to vesta v17. Upgrade worked well, but on second server i've noticed that i can't login with admin user.

After some research i found some error logs in /var/log/vesta/nginx-error.log

Code: Select all

2016/11/25 16:49:21 [error] 3888#0: *16 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14
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: 8.8.8.8, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "my.server.tld:8083"
2016/11/25 16:49:31 [error] 3888#0: *16 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: HTTP_CLIENT_IP in /usr/local/vesta/web/inc/main.php on line 14PHP 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: 8.8.8.8, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "my.server.tld:8083", referrer: "https://my.server.tld:8083/login/"
But i think they are not problem related, because they also comes up on second server.

After a while I noticed that the $VESTA variable was not set properly in root user. A echo $VESTA in normal system user (not vesta related) works as expected. An echo in admin or root user is empty.

It's a bit a strange issue, maybe someone from the devs would like to take a look? Atm i'm not shure if it is really v17 related.

Best Regards
Raphael

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 4:48 pm
by dpeca
What distribution you are using?

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 4:50 pm
by ScIT
dpeca wrote:What distribution you are using?
sorry, clicked wrong - problem is still pending.

Distribution: Ubuntu 14.04 LTS

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 5:02 pm
by stevetoza
Same issue here on the same version of ubuntu

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 5:08 pm
by ScIT
stevetoza wrote:Same issue here on the same version of ubuntu
if you try to

Code: Select all

sudo su
echo $VESTA
do you also have an empty return as value?

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 5:14 pm
by stevetoza

Code: Select all

root@vestacp:~# sudo su
root@vestacp:~# echo $VESTA

root@vestacp:~#

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 5:16 pm
by ScIT
stevetoza wrote:

Code: Select all

root@vestacp:~# sudo su
root@vestacp:~# echo $VESTA

root@vestacp:~#
k, thank you for checking: Seems to be exactly the same problem that i have.

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 9:41 pm
by Niklas
Hi

I had the same problem with centos 6. I just rebooted the server and then everything was ok!

Re: Can't login to vesta after upgrade to V17

Posted: Fri Nov 25, 2016 9:44 pm
by ScIT
Niklas wrote:Hi

I had the same problem with centos 6. I just rebooted the server and then everything was ok!
Reboot does not solve the problem on ubuntu 14.04.

Re: Can't login to vesta after upgrade to V17

Posted: Sat Nov 26, 2016 6:41 am
by mehargags
ok Updated my first Debian 8.5 Server... went butter smooth. May be something specific to Ubu ?