directadmin.conf.lock

winger

Verified User
Joined
Oct 5, 2004
Messages
176
Location
Rio de Janeiro - Brasil
hello,

I get this error today in a new vps:

Unable to read config file. Check the file permissionsUnable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist

I've checked, and there is no directadmin.conf.lock at /usr/local/directadmin/conf/

any help?

thanks!
 
I have the same message in a new VPS :

Code:
Unable to read config file. Check the file permissionsUnable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist

Code:
#ls -la
total 20
drwx------ 2 diradmin diradmin 4096 Aug 14 15:42 .
drwxr-xr-x 7 diradmin diradmin 4096 Aug 14 13:06 ..
-rw------- 1 diradmin diradmin 1896 Aug 14 15:42 directadmin.conf
-rw------- 1 diradmin diradmin 1559 Aug 14 12:28 license.key
-r-------- 1 diradmin diradmin   30 Aug 14 12:30 mysql.conf

Permissions are -rw------- 1, so what is the problem ?
 
Same issue... Just finished to install DA I got these messages...

Code:
Unable to read config file. Check the file permissionsUnable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist

Code:
[root@server conf]# ls -la
total 40
drwx------ 2 diradmin diradmin 4096 Aug 16 17:55 .
drwxr-xr-x 7 diradmin diradmin 4096 Aug 16 19:35 ..
-rw------- 1 diradmin diradmin 1754 Aug 16 17:55 directadmin.conf
-rw------- 1 diradmin diradmin 1559 Aug 16 17:03 license.key
-r-------- 1 diradmin diradmin   30 Aug 16 17:04 mysql.conf

any clue?
 
These are the same settings I have. Where are you getting this message? at the end of your DirectAdmin install?

Jeff
 
I got a lot of these messages in the mail queue. I deleted them... now it seems the are no longer present.. I will do a better search... and let you you now if the problem has gone :)
 
I just installed another brand new server.... as soon as I finished DA installation and logged in the panel I can see a lot of these messages... (they are 18 )
 
Hello,

If you get a permission error, when there really isn't any need for the error (when the permissions are right), this is often caused by binaries for some other OS.

This is the same basic guide, just with different symptoms:
http://help.directadmin.com/item.php?id=267

Basically, the binaries are for some other OS, thus you get these very weird and confusing errors.

Use this info:
http://help.directadmin.com/item.php?id=318

and paste it all to us in an email, and include your license ID, and we'll set the license to the correct OS version for you.

John
 
hi, thanks for your reply. I'm giving a check and I notice that it happens in every server I install. I'm sure the OS version is correct (I use always CentOS 5 i386)
Every time I finish the installation i find a list of messages (all about at the same time) but it never happens again once deleted...
 
Hi

I discover the same problem.
I use proxmox and create VPS.

I've installed 3 VPS and they all have the same problem.


Files in /usr/local/directadmin are owned by
user : bacula
group : crontab

I do not find anything about this.
So have you an idea about this ?

Code:
drwx------ 2 bacula crontab 4096 2011-02-03 00:55 .
drwxr-xr-x 7 bacula crontab 4096 2011-02-02 15:49 ..
-rw------- 1 bacula crontab 1920 2011-02-03 00:55 directadmin.conf
-rw------- 1 bacula crontab 1559 2011-02-02 12:29 license.key
-r-------- 1 bacula crontab   30 2011-02-02 12:30 mysql.conf
 
Last edited:
Those files should be owned by diradmin:diradmin. Check your /etc/passwd file and your /etc/group file to see which uid and gid they use.

I don't know why it's happening, but all posix compatible operating systems use the uid and gid mapping in these files.

Jeff
 
Just happened to me as well, I have CentOS 5 and I got about 60 emails in my inbox about

"Unable to read config file. Check the file permissions Unable to read config file. Check to make sure that /usr/local/directadmin/conf/directadmin.conf.lock doesn't exist"

The config file is CMOD to 777 and the owner is diradmin:diradmin
 
Directadmin support answers this (and it works !) :

1) Try:
cd /usr/local/directadmin
./directadmin p

to see if that helps.

2) Ensure "diradmin" exists:

id diradmin

3) reset permissions:
cd /usr/local/directadmin/scripts
./set_permissions.sh all


4) Failing that, type:

cd /usr/local
chown -R diradmin:diradmin directadmin
cd directadmin/scripts
./set_permissions.sh all


5) Once "fixed" try creating a new User though DA to ensure that the:
/usr/local/directadmin/data/users/username


What is strange in my case, is that I install 3 vps in the same time, and only one has this problem. For the 2 others, only winscp show me strange owner and group, but in command line, all is ok.
 
Back
Top