Page 1 of 1

Error at Login

Posted: Mon Nov 24, 2014 10:46 am
by kopenk
hello, i have a problem when login to Vesta CP
error message said invalid user name password

and nginx-error.log :

2014/11/24 05:25:12 [error] 2231#0: *89 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: xxx.xxx.xx.xxx, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "domain.com:8083"

i look at index.php, and seems that it run cmd v-list-sys-config json, i try to run it at command line and the result is :

"config": {
"WEB_SYSTEM": "apache2",
"WEB_RGROUPS": "www-data",
"WEB_PORT": "8080",
"WEB_SSL": "mod_ssl",
"WEB_SSL_PORT": "8443",
"PROXY_SYSTEM": "nginx",
"PROXY_PORT": "80",
"PROXY_SSL_PORT": "443",
"FTP_SYSTEM": "vsftpd",
"MAIL_SYSTEM": "exim4",
"IMAP_SYSTEM": "dovecot",
"ANTIVIRUS_SYSTEM": "",
"ANTISPAM_SYSTEM": "",
"DB_SYSTEM": "mysql",
"DNS_SYSTEM": "bind9",
"STATS_SYSTEM": "webalizer,awstats",
"BACKUP_SYSTEM": "local",
"CRON_SYSTEM": "cron",
"DISK_QUOTA": "no",
"FIREWALL_SYSTEM": "iptables",
"FIREWALL_EXTENSION": "fail2ban",
"REPOSITORY": "cmmnt",
"VERSION": "0.9.8",
"LANGUAGE": "en"
}


i have no idea what to do now,
please help

Re: Error at Login

Posted: Mon Nov 24, 2014 1:38 pm
by imperio
Hello,

Code: Select all

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

Re: Error at Login

Posted: Mon Nov 24, 2014 3:24 pm
by kopenk
imperio wrote:Hello,

Code: Select all

mkdir /etc/sudoers.d
/usr/local/vesta/upd/add_sudo.sh
i have already try that so many time, but no luck
its still cant login

Re: Error at Login

Posted: Mon Nov 24, 2014 4:34 pm
by imperio
Do you have free space on disk ?
Show me please result of this command

Code: Select all

df -h
What chmod on tmp folder ? /tmp

Also you can try to reset admin password

Code: Select all

v-change-user-password

Re: Error at Login

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