DirectAdmin cant Start O.o

raytrax

Verified User
Joined
Aug 5, 2011
Messages
19
[Solved] DirectAdmin cant Start O.o

Well, after enabling SNI and compiling Lets Encrypt, DirectAdmin is not capable of start.
When I start, It complain about everything:
Code:
# ./directadmin b2000
Debug mode. Level 2000

Unable to chdir to /usr/local/directadmin
Error opening /var/log/directadmin /error.log: No such file or directory
2018:05:24-09:16:10: ioctl can't find the server's ip address for eth0  : No such device
Error opening /var/log/directadmin /error.log: No such file or directory
2018:05:24-09:16:10: Unable to read the license file
Unable to read the license file
reason: Unable to read the license file: /usr/local/directadmin/conf/license.key .  Make sure it's path is set correctly in the DirectAdmin configuration file.<br>
No such file or directory<br>

Well, I'm going to check everything:

- Permissions of the log folder, previously I have rotated the logs:
Code:
drwx------.  2 diradmin diradmin     4096 may 24 09:10 directadmin
Code:
-rw-------  1 diradmin diradmin 31880 may 24 08:51 2018-May-24.log
-rw-------  1 diradmin diradmin     0 may 24 09:10 error.log
-rw-------  1 diradmin diradmin     0 may 24 09:10 errortaskq.log
-rw-------  1 diradmin diradmin     0 may 24 09:10 login.log
-rw-------  1 diradmin diradmin     0 may 24 09:10 security.log
-rw-------  1 diradmin diradmin     0 may 24 09:10 system.log
- the directdmin configuration folder, same ip:
Code:
# ls -la conf/
total 28
drwx------. 2 diradmin diradmin 4096 may 24 09:43 .
drwxr-xr-x. 7 diradmin diradmin 4096 may 24 09:45 ..
-rw-------  1 diradmin diradmin 2418 may 24 09:43 directadmin.conf
-rw-------  1 diradmin diradmin 1559 may 24 09:20 license.key
-rw-------. 1 diradmin diradmin 1559 abr  5 02:03 license.old
-rw-------. 1 diradmin diradmin   43 may 19 23:39 my.cnf
-rw-------. 1 diradmin diradmin   32 abr  5 02:04 mysql.conf
- the license, I re-download the license without problem:
Code:
]# ls -la conf/license.key
-rw------- 1 diradmin diradmin 1559 may 24 09:23 conf/license.key
- permission correction:
Code:
directadmin p
set_permissions.sh da_files
set_permissions.sh logs
set_permissions.sh etc_configs
- check network interface:
Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr XXX.XXX.XXX.XXX
          inet addr:XXX.XXX.XXX.XXX  Bcast:XXX.XXX.XXX.XXX  Mask:255.255.255.0
          inet6 addr: XXX.XXX.XXX.XXX/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1392239 errors:0 dropped:0 overruns:0 frame:0
          TX packets:488423 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:101382156 (96.6 MiB)  TX bytes:651728432 (621.5 MiB)
          Interrupt:17
Code:
# grep eth /usr/local/directadmin/conf/directadmin.conf
ethernet_dev=eth0

# grep ip /usr/local/directadmin/scripts/setup.txt
ip=XXX.XXX.XXX.XXX

# grep eth /var/log/messages
May 24 09:55:21 ser2 named[23209]: listening on IPv4 interface eth0, XXX.XXX.XXX.XXX#53

SO: Centos6.9
DA: 2.0

Any idea where to take it?
Thanks
 
Last edited:
Please try checking:
getenforce

And try stracing the process to see what's going wrong.
 
Hi, I check SELinux and its disabled:

Code:
# getenforce
Disabled

Still to be disabled I have restarted the server but same error:

Code:
# ./directadmin b2000
Debug mode. Level 2000

Unable to chdir to /usr/local/directadmin
Error opening /var/log/directadmin /error.log: No such file or directory
2018:05:24-12:24:43: ioctl can't find the server's ip address for eth0  : No such device
Error opening /var/log/directadmin /error.log: No such file or directory
2018:05:24-12:24:43: Unable to read the license file
Unable to read the license file
reason: Unable to read the license file: /usr/local/directadmin/conf/license.key .  Make sure it's path is set correctly in the DirectAdmin configuration file.<br>
No such file or directory<br>
 
Would you mind creating a ticket at tickets.directadmin.com and providing access to the box? Thank you!
 
Thanks smtalk! They could solve the problem through the ticket.

FYI: If someone happens to the problem comes from the DirectAdmin configuration file, for some strange reason had spaces at the end of each line :eek:
 
Back
Top