cant login to directadmin

oompaloompa

New member
Joined
Apr 15, 2013
Messages
12
When I try to login to directadmin the page just refreshed. I checked the error logs and saw lots of these errors:

Authentication::User Dir: Stat Error: : No such file or directory

So I googled the error and followed several of the suggestions I found on this forum but non of them have solved the error and I still cant login.

Strangley I would login ok yesterday? My ip address is also in the dated log files, but when I change my ip address, it just gets added to the text file and I still cant login.
 
I have tried

cd /usr/local/directadmin
killall -9 directadmin
./directadmin d

/var/log/directadmin/error.log

2013:04:18-00:14:21: Authentication::User Dir: Stat Error: : No such file or directory
2013:04:18-00:19:43: Authentication::User Dir: Stat Error: : No such file or directory
2013:04:18-00:36:01: Authentication::User Dir: Stat Error: : No such file or directory
2013:04:18-01:04:05: Authentication::User Dir: Stat Error: : No such file or directory
2013:04:18-01:49:00: Authentication::User Dir: Stat Error: : No such file or directory

/var/log/directadmin/2013-Apr-18.log

18/04/2013:01:04:05 92.*.*.* POST /CMD_LOGIN HTTP/1.1 admin
18/04/2013:01:04:05 92.*.*.* GET / HTTP/1.1 admin
18/04/2013:01:04:11 92.*.*.* BAD REQUEST unknown
18/04/2013:01:04:28 92.*.*.* BAD REQUEST unknown
18/04/2013:01:48:58 92.*.*.* GET / HTTP/1.1 (null)
18/04/2013:01:49:00 92.*.*.* POST /CMD_LOGIN HTTP/1.1 admin
18/04/2013:01:49:00 92.*.*.* GET / HTTP/1.1 admin
18/04/2013:01:49:06 92.*.*.* BAD REQUEST unknown

* to hide my ip
 
Ok I have managed to fix this problem following the advice from this post

http://forum.directadmin.com/archive/index.php/t-20624.html

in ssh i ran the following

./directadmin c |grep users

it came up with usersdir=

so I deleted userdata=./data/users from directadmin.conf and restarted directadmin, but that didnt work for me, so I added a blank space below userdata=./data/users, saved the file to the server and restarted directadmin and directadmin is back online. It seems you need to have a space below userdata=./data/users in userdata=./data/users or you will not be able to login. I think I removed the space from the file yesterday thinking it was not required!
 
Back
Top