Directadmin.service never wrote its PID file..

Portie Bami

Verified User
Joined
Jan 21, 2019
Messages
5
I've taken extra security measures to protect my VPS. Directadmin's default port 2222 is changed, and ssl is available on root level using letsencrypt.

Directadmin won't start up however, neither in the browser or as daemon.

HTML:
Job for directadmin.service failed because a configured resource limit was exceeded

when i look @ the contents of systemctl status directadmin.service, this is what is see:

HTML:
PID file /run/directadmin.pid not readable (yet?) after start.

directadmin.service never wrote its PID file. Failing.

Failed to start DirectAdmin Web Control Panel.

How can this be fixed? Does anybody know what "configured resource limit" was reached?

N.B. Services like /phpmyadmin are available on https.

Help would be greatly appreciated!

regards, Marco
 
Hello Marco,

What do you see with

Code:
cat /var/log/directadmin/error.log
?

What you see if you try:

Code:
[COLOR=#000000][FONT=&quot]cd /usr/local/directadmin
[/FONT][/COLOR][COLOR=#000000][FONT=&quot]./directadmin b200
?[/FONT][/COLOR]
 
Hi zEitEr,

Thank you for helping me out.

Cat returns:

HTML:
Can't connect to ssl!
A failure in the SSL library occured, usually a protocol error.
error:00000001::lib(0):func(0):reason(1)

(this strikes me as odd, since https://server.droominfo.nl/phpmyadmin does work)

b200 says:

HTML:
Bind Error: Make sure there aren't any copies running in the background
Address already in use

(but there are no active direactadmin instances to my knowledge)

regards, Marco
 
Marco,

phpMyAdmin works via a webserver (nginx, apache, litespeed), directadmin is a self-standing binary, and it does not require a web-server so that you could connect to it.

What do you see with

Code:
/usr/local/directadmin/directadmin c | egrep "^(ssl|ca)" | sort

Code:
/usr/local/directadmin/directadmin o

Code:
ps aux | grep directadmin

Code:
netstat -ntpl | grep directadmin

?
 
Hi zEitEr,

This is what is get:

HTML:
cacert=/usr/local/directadmin/conf/cacert.pem
cache_time=3600
cakey=/usr/local/directadmin/conf/cakey.pem
carootcert=/usr/local/directadmin/conf/carootcert.pem
ssl=1
ssl_cipher=HIGH:!aNULL:!MD5
ssl_ignore_when_local=0
ssl_port=0
ssl_redirect_host=server.droominfo.nl

HTML:
Compiled on 'CentOS 7.0 64-Bit'
Compile time: Dec  7 2018 at 14:05:44
Compiled with IPv6

HTML:
root      3190  0.0  0.0  19448   280 ?        Ss   jan21   0:07 /usr/local/directadmin/da-popb4smtp
root     29271  0.0  0.0 112732   984 pts/0    S+   08:53   0:00 grep --color=auto directadmin

n.b. the last command "netstat -ntpl | grep directadmin" doesn't return anything.

regards, Marco
 
And

Code:
ls -la /usr/local/directadmin/conf/carootcert.pem /usr/local/directadmin/conf/cacert.pem /usr/local/directadmin/conf/cakey.pem
?
 
Hi zEItEr,

It's been a while, but the problem still exists. Output of ls -la /usr/local/directadmin/conf/carootcert.pem /usr/local/directadmin/conf/cacert.pem /usr/local/directadmin/conf/cakey.pem

results in:

-rw-r----- 1 diradmin access 2269 12 mrt 16:06 /usr/local/directadmin/conf/cacert.pem
-rw-r----- 1 diradmin access 3243 12 mrt 16:06 /usr/local/directadmin/conf/cakey.pem
-rw-r----- 1 diradmin access 1647 12 mrt 16:06 /usr/local/directadmin/conf/carootcert.pem

regards, Marco
 
Marco,

What will you see if you run:

Code:
/usr/local/directadmin/directadmin

as root in a shell?
 
Hi,

I get:

HTML:
Bind Error: Make sure there aren't any copies running in the background
Address already in use

If DirectAdmin is running, but you cannot connect to port 3180, check this guide:
http://help.directadmin.com/item.php?id=75

grtz Marco
 
Back
Top