Page 1 of 1

Can't login but no error

Posted: Thu Nov 05, 2015 3:55 am
by stuartallen
Can't login to Vesta CP. Though logs report that a successful login occured, the login page just reloads, without an "incorrect password" warning or anything.
Ubuntu 14.04.1
root@artservices3:~# free -m
total used free shared buffers cached
Mem: 741 384 357 7 31 190
-/+ buffers/cache: 161 579
Swap: 0 0 0

I have tried solutions found in multiple threads on this forum to no avail. Including the following:
viewtopic.php?f=16&t=8862&p=29512#p29512
viewtopic.php?f=16&t=7063
viewtopic.php?f=10&t=8349&p=27113#p27113

Any ideas out there. Would really appreciate the help.

Almost forgot - error in nginx-error.log:

2015/11/04 21:26:15 [error] 1900#0: *46 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /usr/local/vesta/web/login/index.php on line 83" while reading response header from upstream, client: 99.65.201.104, server: _, request: "GET /login/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/vesta-php.sock:", host: "162.220.52.115:8083", referrer: "https://162.220.52.115:8083/login/"

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/vda2 9.3G 5.7G 3.2G 65% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
udev 361M 4.0K 361M 1% /dev
tmpfs 75M 400K 74M 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 371M 0 371M 0% /run/shm
none 100M 0 100M 0% /run/user
/dev/vda1 453M 36M 390M 9% /boot

Re: Can't login but no error

Posted: Thu Nov 05, 2015 10:08 am
by skurudo
Try v-change-password

Code: Select all

v-change-user-password admin password

Re: Can't login but no error

Posted: Fri Nov 06, 2015 6:03 pm
by stuartallen
Tried that - doesn't work. Log shows a successful login, but it's just not redirecting to dashboard.

Re: Can't login but no error

Posted: Sat Nov 07, 2015 1:01 pm
by Govo
Hi stuartallen

Try and remove the session

SSH into server
run
rm -r -f /tmp/*
Try login again

Cheers
Govo

Re: Can't login but no error

Posted: Mon Nov 09, 2015 12:53 pm
by stuartallen
Nope - emptied that directory and still have same result. Other thoughts?

Re: Can't login but no error

Posted: Mon Nov 09, 2015 2:23 pm
by Govo
This might be help full

https://github.com/serghey-rodin/vesta/issues/312

let me

Cheers
Govo

Re: Can't login but no error

Posted: Mon Nov 09, 2015 5:49 pm
by skurudo
stuartallen wrote:Nope - emptied that directory and still have same result. Other thoughts?
Let's check logs:
/usr/local/vesta/log/nginx-error.log
/usr/local/vesta/log/system.log

Re: Can't login but no error

Posted: Mon Nov 09, 2015 6:15 pm
by Govo
Just booting up may server

Can you post the out put of your logs

Cheers
Govo

Re: Can't login but no error

Posted: Mon Nov 09, 2015 7:31 pm
by SCelik
These errors occurs becouse of php session. Php can not create session.

Why does php can not create sessions?

1) Php (apache) doesn't has write permissions to session_save_path. (after php update, you have to chmod 777 that folder)
2) Your user's disk quota is full. (If you activated quota on buggy version of vesta release: 14 and earlier)
3) Your server's disk is full.

Re: Can't login but no error

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