Ubuntu 10.04.4 LTS Directadmin Setup

stefanb

Verified User
Joined
Oct 23, 2013
Messages
7
Hello,

I have Download Ubuntu 10.04.4 LTS en the installation script from directadmin.

I installed with the normal setting en automatic.

But when the installation are ready i can not login in Directadmin. I see the following errors on the terminal.

./data/admin/login.hist written successfully
./data/admin/next_ticket.number written correctly
./data/admin/services.status written successfully
tickets.list written successfully
*** Error creating Admin User : ./data/users/admin/user.usage : Unable to get Lock on file:<br>
open error for ./data/users/admin/user.usage.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
./data/users/admin/domains.list : Unable to get Lock on file:<br>
open error for ./data/users/admin/domains.list.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
./data/users/admin/user.conf : Unable to get Lock on file:<br>
open error for ./data/users/admin/user.conf.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.usage.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/users.list.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.conf.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.allocation.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Group admin already exists. Please chose a different username.<br>

*** Unable to write the admin's user files
*** Unable to write '/usr/local/directadmin/data/users/admin/httpd.conf' httpd.conf
*** Can't get lock on user's httpd.conf<br>

How can i fix this so that i can use directadmin on this server ?
 
Hello,

A few things to check:
Code:
cd /usr/local/directadmin
cat /etc/debian_version
uname -m
id diradmin
./directadmin o
ls -la
ls -la data
and we can go from there.

John
 
Hello,

A few things to check:
Code:
cd /usr/local/directadmin

cat /etc/debian_version
squeeze/sid
uname -m
x86_64

id diradmin
uid=106(diradmin) gid=114(diradmin) groups=114(diradmin)

./directadmin o

root@srvdir:/usr/local/directadmin# ./directadmin o
Compiled on 'Debian 6.0 64-bit'
Compile time: Sep 26 2013 at 23:20:30
Compiled with IPv6

ls -la
drwxr-xr-x  6 diradmin diradmin    4096 Oct 23 10:47 .
drwxr-xr-x 14 root     root        4096 Oct 23 10:07 ..
drwx------  2 diradmin diradmin    4096 Oct 23 10:50 conf
drwxr-xr-x  4 root     root        4096 Oct 23 11:09 custombuild
-rw-r--r--  1 diradmin diradmin  113970 Oct 22 07:47 custombuild.tar.gz
-rwx------  1 diradmin diradmin 1067100 Sep 27 07:20 da-popb4smtp
drwx--x--x  8 diradmin diradmin    4096 Oct 24 10:02 data
-rwx------  1 diradmin diradmin 2180698 Sep 27 07:20 dataskq
-rwx------  1 diradmin diradmin 2164099 Sep 27 07:20 directadmin
drwx--x--x  4 diradmin diradmin    4096 Oct  1 10:45 scripts
-rw-r--r--  1 diradmin diradmin 3016064 Oct 23 10:46 update.tar.gz

ls -la data
and we can go from there.
drwx--x--x 8 diradmin diradmin 4096 Oct 24 10:02 .
drwxr-xr-x 6 diradmin diradmin 4096 Oct 23 10:47 ..
drwx------ 4 diradmin diradmin 4096 Oct 24 10:05 admin
drwx------ 2 diradmin diradmin 4096 Oct 23 10:21 sessions
drwxr-xr-x 5 diradmin diradmin 4096 Oct 1 10:45 skins
drwx--x--x 8 diradmin diradmin 4096 Oct 23 11:09 templates
drwx------ 3 diradmin diradmin 4096 Oct 23 10:22 tickets
drwx--x--x 2 diradmin diradmin 4096 Oct 23 10:47 users



John

A few things to check:
Code:
cd /usr/local/directadmin

cat /etc/debian_version
squeeze/sid
uname -m
x86_64

id diradmin
uid=106(diradmin) gid=114(diradmin) groups=114(diradmin)

./directadmin o

root@srvdir:/usr/local/directadmin# ./directadmin o
Compiled on 'Debian 6.0 64-bit'
Compile time: Sep 26 2013 at 23:20:30
Compiled with IPv6

ls -la
drwxr-xr-x  6 diradmin diradmin    4096 Oct 23 10:47 .
drwxr-xr-x 14 root     root        4096 Oct 23 10:07 ..
drwx------  2 diradmin diradmin    4096 Oct 23 10:50 conf
drwxr-xr-x  4 root     root        4096 Oct 23 11:09 custombuild
-rw-r--r--  1 diradmin diradmin  113970 Oct 22 07:47 custombuild.tar.gz
-rwx------  1 diradmin diradmin 1067100 Sep 27 07:20 da-popb4smtp
drwx--x--x  8 diradmin diradmin    4096 Oct 24 10:02 data
-rwx------  1 diradmin diradmin 2180698 Sep 27 07:20 dataskq
-rwx------  1 diradmin diradmin 2164099 Sep 27 07:20 directadmin
drwx--x--x  4 diradmin diradmin    4096 Oct  1 10:45 scripts
-rw-r--r--  1 diradmin diradmin 3016064 Oct 23 10:46 update.tar.gz

ls -la data
and we can go from there.
drwx--x--x 8 diradmin diradmin 4096 Oct 24 10:02 .
drwxr-xr-x 6 diradmin diradmin 4096 Oct 23 10:47 ..
drwx------ 4 diradmin diradmin 4096 Oct 24 10:05 admin
drwx------ 2 diradmin diradmin 4096 Oct 23 10:21 sessions
drwxr-xr-x 5 diradmin diradmin 4096 Oct 1 10:45 skins
drwx--x--x 8 diradmin diradmin 4096 Oct 23 11:09 templates
drwx------ 3 diradmin diradmin 4096 Oct 23 10:22 tickets
drwx--x--x 2 diradmin diradmin 4096 Oct 23 10:47 users
 
Hello,

Ok, next check for admin's User folder:
Code:
cd /usr/local/directadmin/
ls -la data/users

If it's missing, try this again:
Code:
./directadmin i
./directadmin p
John
 
Hello,

Ok, next check for admin's User folder:
Code:
cd /usr/local/directadmin/
ls -la data/users

If it's missing, try this again:
Code:
./directadmin i
./directadmin p
John

root@srvdir:/usr/local/directadmin# ls -la data/users
total 8
drwx--x--x 2 diradmin diradmin 4096 Oct 23 10:47 .
drwx--x--x 8 diradmin diradmin 4096 Oct 24 11:02 ..
root@srvdir:/usr/local/directadmin# ./directadmin i

The config file already exists:
/usr/local/directadmin/conf/directadmin.conf

Do you really want to install DirectAdmin again? (y/n): y
Re-installing directadmin...
## REPORT_START
Welcome to DirectAdmin verion 1.44.0!
You are now about to run the install program. If DirectAdmin is already
installed, it may destroy previous data.


Here is the information given:

Admin user: admin
Admin email: [email protected]
Server IP: *
Server IP Netmask: 255.255.255.0
Server Hostname: srvdir.local
Name Servers:
ns1.srvdir.local
ns2.srvdir.local
options.conf exists, not installing the httpd.conf. Relying on custombuild.
Backup of /etc/proftpd.conf to /etc/proftpd.conf.back successfull
Install of /usr/local/directadmin/data/templates/proftpd.conf to /etc/proftpd.conf successfull
Install of /usr/local/directadmin/data/templates/directadmin.conf to /usr/local/directadmin/conf/directadmin.conf successfull
directory /usr/local/directadmin/data created
directory ./data/admin created
directory /usr/local/directadmin/data/tickets created
directory ./data/users created
directory /home/tmp created
directory /usr/local/directadmin/data/sessions created
directory /etc/virtual created
directory /var/spool/virtual created
directory ./data/admin/ips created
directory ./data/admin/packages created
file ./data/admin/packages.list created
ip.list written successfully
./data/admin/login.hist written successfully
./data/admin/next_ticket.number already exists
./data/admin/services.status written successfully
tickets.list written successfully
*** Error creating Admin User : ./data/users/admin/user.usage : Unable to get Lock on file:<br>
open error for ./data/users/admin/user.usage.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
./data/users/admin/domains.list : Unable to get Lock on file:<br>
open error for ./data/users/admin/domains.list.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
./data/users/admin/user.conf : Unable to get Lock on file:<br>
open error for ./data/users/admin/user.conf.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.usage.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/users.list.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.conf.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Unable to get Lock on file:<br>
open error for ./data/users/admin/reseller.allocation.lock: No such file or directory<br>
./data/users/admin: No such file or directory<br>
<br>
Group admin already exists. Please chose a different username.<br>

*** Unable to write the admin's user files
*** Unable to write '/usr/local/directadmin/data/users/admin/httpd.conf' httpd.conf
*** Can't get lock on user's httpd.conf<br>

## INSTALL_COMPLETE
## ACCOUNT_INFO


The following information has been set:

Admin username: admin
Admin password: *
Admin email: *


Server IP: *
Server Hostname: srvdir.local

To login now, follow this link:

http://*:2222

root@srvdir:/usr/local/directadmin# ./directadmin p
Permissions set

But i don't work, the are no admin account in /etc/passwd
 
Hello,

Got another report of this issue today.
I believe it's because of this new feature:
http://www.directadmin.com/features.php?id=1499

Where the admin group may already exist before DA is installed.

For now, ensure there is no admin group on the system, eg
Code:
userdel admin
groupdel admin
note, the groupdel command will fail if there was an admin user too.. only one of the above would work.. either way, ensure there is no admin group.

Of course, make sure you're not logged in as admin when you delete it.

I've already added a fix to 1.44.1 in the pre-release binaries, but it's not released yet, so for now, just remove admin, then run the finishing commands:
Code:
./directadmin i
./directadmin p
commands to finish up the install.

John
 
Back
Top