Page 1 of 1

I cannot login to CP as admin.

Posted: Wed Feb 11, 2015 1:26 pm
by photographer
I cannot login to CP as admin. I have tried changing password from web form, server console for user admin. However, I still cannot login.
Could you prompt me what I can do or where need to check?

Re: I cannot login to CP as admin.

Posted: Wed Feb 11, 2015 3:07 pm
by imperio
Show me VestaCP logs

Code: Select all

/var/log/vesta/auth.log
/var/log/vesta/nginx-error.log
and result of this command

Code: Select all

df -h

Re: I cannot login to CP as admin.

Posted: Wed Feb 11, 2015 3:37 pm
by photographer
Thank you for answer

Code: Select all

2015-02-11 13:21:57 admin 188.31.53.6 successfully logged in 
2015-02-11 13:42:56 root 188.31.53.6 successfully logged in

Code: Select all

2015/02/11 14:09:42 [error] 19978#0: *53 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: 188.31.53.6, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "seindesign.cok:8083"
HDD has free space 47%

I.e. is something wrong with web interface?

Re: I cannot login to CP as admin.

Posted: Wed Feb 11, 2015 5:02 pm
by imperio
Try ti use this command

Code: Select all

mkdir /etc/sudoers.d
/usr/local/vesta/upd/add_sudo.sh

Re: I cannot login to CP as admin.

Posted: Tue Mar 31, 2015 6:49 pm
by DjarumSuper
Hi VestaCP Team

I have the same issue

Here my nginx-error.log:

Code: Select all

2015/03/31 18:12:05 [error] 26136#0: *169 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/list/db/"
2015/03/31 18:14:16 [error] 26136#0: *174 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:14:17 [error] 26136#0: *174 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:14:42 [error] 26136#0: *174 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:14:42 [error] 26136#0: *174 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:17:38 [error] 26136#0: *189 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: 61.94.228.137, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083"
2015/03/31 18:18:02 [error] 26136#0: *189 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:18:03 [error] 26136#0: *189 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://45.63.120.146:8083/login/"
2015/03/31 18:18:16 [error] 26136#0: *189 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:18:17 [error] 26136#0: *189 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:18:27 [error] 26136#0: *189 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:23:55 [error] 26136#0: *207 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: 61.94.228.137, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083"
2015/03/31 18:24:13 [error] 26136#0: *215 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:24:14 [error] 26136#0: *215 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:26:33 [error] 26136#0: *225 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: 61.94.228.137, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "45.63.120.146:8083", referrer: "https://XXXXXX:8083/login/"
2015/03/31 18:26:34 [error] 26136#0: *225 FastCGI sent in stderr: "PHP message: PHP Warning:  Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 33
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: XXXXXX, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "XXXXXX:8083", referrer: "https://XXXXXX:8083/login/"
Here my auth.log

Code: Select all

2015-03-31 05:02:55 admin 61.94.228.137 successfully logged in 
2015-03-31 06:06:22 admin 61.94.228.137 successfully logged in 
2015-03-31 18:14:16 admin 61.94.228.137 successfully logged in 
2015-03-31 18:14:42 admin 61.94.228.137 successfully logged in 
2015-03-31 18:18:02 admin 61.94.228.137 successfully logged in 
2015-03-31 18:18:16 root 61.94.228.137 successfully logged in 
2015-03-31 18:18:27 admin 61.94.228.137 failed to login 
2015-03-31 18:24:13 admin 61.94.228.137 successfully logged in 
2015-03-31 18:26:33 admin 61.94.228.137 successfully logged in 
Does my error have the same solution as above?

Thank you very much

Re: I cannot login to CP as admin.

Posted: Thu Apr 02, 2015 10:14 pm
by skurudo
DjarumSuper wrote:Does my error have the same solution as above?
Look similar. Try it.

But first check hdd space and try restart vesta service.

Re: I cannot login to CP as admin.

Posted: Wed May 27, 2015 2:34 pm
by skurudo
This error can be from broken sudo:
viewtopic.php?f=10&t=8349&p=27113#p27113

Re: I cannot login to CP as admin.

Posted: Sat May 30, 2015 9:58 pm
by webNpro
Try this: remove everything from the /tmp folder. It works for me...

Re: I cannot login to CP as admin.

Posted: Sun May 31, 2015 7:09 pm
by skurudo
webNpro wrote:Try this: remove everything from the /tmp folder. It works for me...
Nice solution, but it's like magic... do you have same errors in vesta-nginx log?