Page 1 of 1

Problem with login in VestaCP

Posted: Thu Mar 31, 2022 3:28 pm
by webstower
Hi everyone,

I have a problem, when I write muy user and password, press login and nothing happend, login screen shows again..

One week ago, my HD was full.. today have free space

Things that I see by SSH Client..

The log file in /var/log/vesta/nginx-error shows the following error:
FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/api/v1/login/index.php on line 129

The sudoers file in /etc/sudores.d/admin have the following content:
# 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/*
admin ALL=NOPASSWD: !ALL, /bin/su

The vesta service is running and the password is correct, checked with de vesta command for that purpose.

Any ideas what happening that I canĀ“t login to VESTACP web interface?

Re: Problem with login in VestaCP

Posted: Fri Apr 01, 2022 12:26 pm
by sandro
Before this disk space issue, did everything work normally?

I don't think it's a problem with sudo.

Maybe some package update, such as PHP, may have occurred and this is causing this problem.

I believe you have already tried restarting Vesta, right?

Try checking other files in /usr/local/vesta/log like system.log, auth.log or nginx-access.log.