Page 1 of 1

Can not login to VestaCp

Posted: Wed Mar 07, 2018 8:17 am
by sarzali
Hello,

Today I faced a problem I haven't faced before. I was not able to access admin panels of VestaCp. So I search around and I read a topic here on forum and found out that this is a disc space problem. So I checked space on the server, so I was able to access my admin panels.

The problem is I still cannot to login to VestaCp.

This is my /usr/local/vesta/log/system.log

This is the /usr/local/vesta/log/nginx-error.log

2018/03/07 12:20:13 [error] 2013#0: *106 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 106" while reading response header from u pstream, client: 103.18.10.251, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run /vesta-php.sock:", host: "URL:8083", referrer: "https://URL:8083/login/"

and this is the /usr/local/vesta/log/auth.log

2018-01-05 15:57:51 admin 124.29.237.119 successfully logged in
2018-01-25 10:10:03 admin 124.29.237.107 successfully logged in
2018-02-08 12:20:14 admin 124.29.237.211 successfully logged in
2018-02-09 11:31:17 admin 124.29.237.111 successfully logged in
2018-02-09 11:53:58 admin 124.29.237.111 successfully logged in
2018-02-16 10:32:19 admin 103.18.10.251 successfully logged in
2018-02-26 14:17:02 admin 103.18.10.251 successfully logged in
2018-02-27 16:43:47 admin 103.18.10.251 successfully logged in
2018-03-01 13:28:34 admin 103.18.10.251 successfully logged in
2018-03-05 11:19:41 admin 103.18.10.251 successfully logged in
2018-03-07 12:48:11 admin 127.0.0.1 successfully logged in
2018-03-07 12:48:15 admin 127.0.0.1 failed to login
2018-03-07 12:48:38 admin 127.0.0.1 failed to login

The last few hours I was reading topics here on the forum, unfortunately none of them worked for me.

I would be grateful if you could help me solve this.
Thank you.

Re: Can not login to VestaCp

Posted: Tue Mar 13, 2018 2:36 pm
by skurudo
I can't login to VestaCP
viewtopic.php?f=10&t=14958

Re: Can not login to VestaCp

Posted: Tue Jun 26, 2018 12:39 pm
by dichvuseo
The first time I know this. Thanks

Re: Can not login to VestaCp

Posted: Wed Nov 17, 2021 9:09 am
by smartfahad358
Please try to answer Sir

viewtopic.php?f=11&t=20720


SAME ISSUE!

Re: Can not login to VestaCp

Posted: Tue Jul 04, 2023 5:16 am
by kashif
Im also facing the login issue and tried all mentioned steps but still failed to login

OS : CentOS 7.9

vi //etc/sudoers.d/admin

Code: Select all

# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty

# sudo is limited to vesta scripts
admin   ALL=NOPASSWD:/usr/local/vesta/bin/*
df -h

Code: Select all

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        7.7G     0  7.7G   0% /dev
tmpfs           7.8G     0  7.8G   0% /dev/shm
tmpfs           7.8G  793M  7.0G  11% /run
tmpfs           7.8G     0  7.8G   0% /sys/fs/cgroup
/dev/sda2       911G  117G  749G  14% /
tmpfs           1.6G     0  1.6G   0% /run/user/0
Logs

Code: Select all

==> /var/log/vesta/auth.log <==
2023-07-03 22:11:52 admin 127.0.0.1 failed to login

==> /var/log/vesta/nginx-error.log <==
2023/07/03 22:11:52 [error] 22151#0: *3 FastCGI sent in stderr: "PHP message: PHP Warning:  fopen(): Filename cannot be empty in /usr/local/vesta/web/api/v1/login/index.php on line 74
PHP message: PHP Warning:  fwrite() expects parameter 1 to be resource, boolean given in /usr/local/vesta/web/api/v1/login/index.php on line 75
PHP message: PHP Warning:  fclose() expects parameter 1 to be resource, boolean given in /usr/local/vesta/web/api/v1/login/index.php on line 76
PHP message: PHP Warning:  unlink(): No such file or directory in /usr/local/vesta/web/api/v1/login/index.php on line 83
PHP message: PHP Notice:  Undefined index: user in /usr/local/vesta/web/api/v1/login/index.php on line 159
PHP message: PHP Notice:  Undefined variable: users in /usr/local/vesta/web/api/v1/login/index.php on line 171" while reading response header from upstream, client: 182.191.65.62, server: _, request: "POST /api/v1/login/index.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "host.ictfax.com:8083", referrer: "https://host.ictfax.com:8083/login"
Admin password also correct , verified the admin password from command line