Page 1 of 1

"Invalid username or password." Error

Posted: Mon Feb 27, 2017 6:39 pm
by evrend
When l try to login, return "Invalid username or password." error message. I remove sessions(rm -rf /usr/local/vesta/data/sessions/* && service vesta restart) then Error Message is "NO LANGUAGE DEFINED".
I tried to /usr/local/vesta/data/users/admin/user.conf => DISK_QUOTA='unlimited'
I tried to change admin pw(v-change-user-password)

> OS
Ubuntu 14.04
> VestaCP Vers.
0.9.8-17
> Extra Installations
Manual Php7.1

Error Log
/usr/local/vesta/log/nginx-error.log

Code: Select all

2017/02/27 13:14:35 [error] 16633#0: *8 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: 52.48.221.193, server: _, request: "POST /login/ HTTP/1.1", upstream: "fastc$

/usr/local/vesta/log/error.log (I dont need backup)

Code: Select all

2017-02-27 12:25:44 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:30:46 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:35:46 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:40:43 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:45:45 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:49:17 v-update-sys-vesta  [Error 1]
2017-02-27 12:50:45 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:55:48 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 12:58:54 v-update-user-quota  [Error 1]
2017-02-27 13:00:44 v-list-cron-job  [Error 1]
2017-02-27 13:00:45 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 13:00:46 v-list-cron-jobs  [Error 1]
2017-02-27 13:05:56 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 13:10:51 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 13:15:46 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 13:16:36 v-add-sys-quota  [Error 13]
2017-02-27 13:20:47 v-backup-user  'admin' 'yes' [Error 17]
2017-02-27 13:25:44 v-backup-user  'admin' 'yes' [Error 17]

Re: "Invalid username or password." Error

Posted: Tue Feb 28, 2017 1:28 pm
by skurudo
Can you show us output?

Code: Select all

ls -la /etc/sudoers.d/admin

Code: Select all

cat /etc/sudoers.d/admin
................................................................

We think this file /etc/sudoers.d/admin don't have code:

Code: Select all

# Created by vesta installer
Defaults env_keep="VESTA"
Defaults:admin !syslog
Defaults:admin !requiretty
Defaults:root !requiretty
If you paste this, all will work (as we hope)

Re: "Invalid username or password." Error

Posted: Tue Feb 28, 2017 8:56 pm
by evrend
ls -la /etc/sudoers.d/admin command result

Code: Select all

-r--r----- 1 root root 101 Sep  1  2014 /etc/sudoers.d/admin
nano /etc/sudoers.d/admin (file content)

Code: Select all

# Created by vesta installer
admin   ALL=(ALL)       ALL
admin   ALL=NOPASSWD:/usr/local/vesta/bin/*
l changed it with your code and restart vesta service but problem continues
nano /etc/sudoers.d/admin

Code: Select all

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

Re: "Invalid username or password." Error

Posted: Tue Feb 28, 2017 9:01 pm
by evrend
Thank you very much. l try to add your code to /etc/sudoers.d/admin file bottom. And reboot my server. Now its working fine. Thank you again. :)

My /etc/sudoers.d/admin file content so

Code: Select all

# Created by vesta installer
admin   ALL=(ALL)       ALL
admin   ALL=NOPASSWD:/usr/local/vesta/bin/*

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

Re: "Invalid username or password." Error

Posted: Wed Mar 01, 2017 8:31 am
by skurudo
Nice!
Thank you for report, evrend

Re: "Invalid username or password." Error

Posted: Sat Apr 08, 2017 2:02 pm
by peterbrinck
I have this same problem, and I've tried the same as @evrend, but it doesn't work for me.
But now, instead of "NO LANGUAGE DEFINED" I get "Invalid username or password."

What to do from here?

Re: "Invalid username or password." Error

Posted: Sun Apr 09, 2017 10:26 am
by skurudo
peterbrinck wrote:I have this same problem, and I've tried the same as @evrend, but it doesn't work for me.
But now, instead of "NO LANGUAGE DEFINED" I get "Invalid username or password."
What to do from here?
Show us your /usr/local/vesta/log/nginx-error.log
Maybe you don't have disk space or quota prob.

Re: "Invalid username or password." Error

Posted: Sun Apr 09, 2017 1:06 pm
by peterbrinck
I got it working in the end
I'm not quite sure how and why

I just tried EVERYTHING I could find in all the topics regarding this issue
And just like that, it worked again

The last thing I did was removing everything from the /etc/sudoers.d/admin file, and then added everything back in, and it worked

The problem wasn't disk space, because I still have more than 1.5 TB left, and I haven't deleted any files

Re: "Invalid username or password." Error

Posted: Mon Jul 17, 2017 2:43 pm
by skurudo