Direct Admin won't start

LeeGiS

Verified User
Joined
Feb 19, 2013
Messages
9
Hello,

I was having trouble logging in to Direct Admin, as it wouldn't allow me login with correct username and password. Then I tried restarting it, and once it was stopped, it wouldn't turn on. I checked the error log, and what I'm getting is:
Code:
Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_fkQ4sEz04kkijyC285F8EEjOnPSu8VOnGnq6zn73XpjEnvHuyU0DhjZS6zMEVizj for reading.<br>
Unable to open file for writing<br>
. Make sure the disk isn't full.<br>

2013:02:19-06:25:23: Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_ua1wgqRdLSdnJRenX6sgDp1p2Zqik9xfjwZNmzy7Rbti2XWXbMDoBDbBmQtWZo9G for reading.<br>
Unable to open file for writing<br>
.  Make sure the disk isn't full.
2013:02:19-06:25:23: Unable to write session file: Unable to read session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_ua1wgqRdLSdnJRenX6sgDp1p2Zqik9xfjwZNmzy7Rbti2XWXbMDoBDbBmQtWZo9G for reading.<br>
<br>
Unable to write session file: Unable to open /usr/local/directadmin/data/sessions/da_sess_ua1wgqRdLSdnJRenX6sgDp1p2Zqik9xfjwZNmzy7Rbti2XWXbMDoBDbBmQtWZo9G for reading.<br>
Unable to open file for writing<br>
. Make sure the disk isn't full.<br>

Any ideas how to fix this?
 
Another error, that I suspect happened when I wouldn't be able to login, before stopping directadmin is:
Code:
2013:02:19-05:19:47: ConfigFile::writeFile(./data/admin/login.hist) : Timestamp from when it was read is different, overwriting anyway
2013:02:19-05:19:47: ConfigFile::writeFile(./data/admin/tickets.list) : Timestamp from when it was read is different, overwriting anyway
 
The disk isn't full, the server is brand new, and OS has just been installed less than a week ago.
The command outputs:
Code:
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs            300G  3.8G  297G   2% /
none                  768M  4.0K  768M   1% /dev
none                  768M     0  768M   0% /dev/shm
 
Make sure that /tmp and /home/tmp are chmod 0777

If not check what you have for tmpdir in /usr/local/directadmin/conf/directadmin.conf and make sure that folder is chmod 0777
 
Make sure that /tmp and /home/tmp are chmod 0777

If not check what you have for tmpdir in /usr/local/directadmin/conf/directadmin.conf and make sure that folder is chmod 0777

I just did but it is still the same error. The folder in directadmin.conf is /home/temp
 
Actually it might be permissions on the folder /usr/local/directadmin/data/sessions

Are your ownership wrong on this folder or any parent folders? Everything in /usr/local/directadmin should be owned by diradmin
 
Actually it might be permissions on the folder /usr/local/directadmin/data/sessions

Are your ownership wrong on this folder or any parent folders? Everything in /usr/local/directadmin should be owned by diradmin

OK, that solved the problem. diradmin did not have permissions on /usr/local and /usr, but it had permissions to related subfolders. However, I did give permissions to it now, but my main directory for apache is /home/username, and now apache does not have a permission to reach to that folder, therefore the website is not working. Is there any way to combine the permission for two user groups to access the same folders?
 
Now another error popped up. When I log in, it just shows:
Code:
Error: document not found
And nothing else.
Error log displays:
Code:
2013:02:19-04:06:38: *** Unable to read ./data/skins/enhanced/files_admin.conf
2013:02:19-04:06:38: loadLangFile: file is null: language=en docroot=./data/skins/enhanced
 
My guess is you have more permission problems on /usr/local/directadmin

You should be able to do:

Code:
chown -R diradmin:diradmin /usr/local/directadmin
 
I did it but nothing has changed. Error:Document not found is still being displayed. However, error log, does not seem to display any errors
 
Yes, I have not changed anything.
Would changing skin help? If so, where can I get a free skin and how do I change it?
 
You shoud try do this:

Code:
cd /usr/local/directadmin/data/skins
./packskins.sh

To restore your skins. The default one should work (called enhanced)

I do offer support service, so, if you cant find out a solution feel free to pm me for a quote.

Regards
 
Back
Top