Can't login to vesta after upgrade to V17
Posted: Fri Nov 25, 2016 4:42 pm
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
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
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/"
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