Help!!!! Failed to start directadmin service, please make sure you have a valid license

calmok

New member
Joined
Aug 11, 2015
Messages
4
Welcome to DirectAdmin version 1.63.4!

Here is the information given:

Admin user: admin
Admin email: [email protected]
Server IP: xxxxxxxxxxxxxxxx
Server IP Netmask: /24
Server Hostname: server.hostname.com
Name Servers:
ns1.hostname.com
ns2.hostname.com
ip.list written successfully
./data/admin/login.hist written successfully
./data/admin/next_ticket.number written correctly
./data/admin/services.status written successfully
tickets.list written successfully
Admin admin is being created by root.
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
secure_access_group='access' did not exist (9999). Creating it and adding defaults.
Admin user created

System Security Tips:
https://docs.directadmin.com/operation-system-level/securing/general.html#basic-system-security

Job for directadmin.service failed because the control process exited with error code.
See "systemctl status directadmin.service" and "journalctl -xe" for details.
[setup.sh] Failed to start directadmin service, please make sure you have a valid license
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-01-14 19:28:39 CST; 41ms ago
Docs: http://www.directadmin.com
Process: 9046 ExecStart=/usr/local/directadmin/directadmin (code=exited, status=2)
Main PID: 9046 (code=exited, status=2)
CPU: 178ms

1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/util/licence/session.go:73 +0x59
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/lstate.(*Client).Run(0xc00003e700, {0x13c1858, 0xc00003e6c0})
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/lstate/state.go:145 +0x59
1月 14 19:28:39 server.hostname.com directadmin[9046]: main.runWebServer.func1()
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/main.go:126 +0x65
1月 14 19:28:39 server.hostname.com directadmin[9046]: created by main.runWebServer
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/main.go:124 +0x598
1月 14 19:28:39 server.hostname.com systemd[1]: directadmin.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
1月 14 19:28:39 server.hostname.com systemd[1]: directadmin.service: Failed with result 'exit-code'.
1月 14 19:28:39 server.hostname.com systemd[1]: Failed to start DirectAdmin Web Control Panel.


I'm Debian 11.2, using
bash <(curl -Ss https://www.directadmin.com/setup.sh || wget -O - https://www.directadmin.com/setup.sh)


The authorization key is correct, but it always indicates that there is a problem with authorization
 
Last edited:

realcryptonight

Verified User
Joined
Nov 16, 2019
Messages
255
Welcome to DirectAdmin version 1.63.4!

Here is the information given:

Admin user: admin
Admin email: [email protected]
Server IP: xxxxxxxxxxxxxxxx
Server IP Netmask: /24
Server Hostname: server.hostname.com
Name Servers:
ns1.hostname.com
ns2.hostname.com
ip.list written successfully
./data/admin/login.hist written successfully
./data/admin/next_ticket.number written correctly
./data/admin/services.status written successfully
tickets.list written successfully
Admin admin is being created by root.
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
Sys:setUGPriv:gid==9999
secure_access_group='access' did not exist (9999). Creating it and adding defaults.
Admin user created

System Security Tips:
https://docs.directadmin.com/operation-system-level/securing/general.html#basic-system-security

Job for directadmin.service failed because the control process exited with error code.
See "systemctl status directadmin.service" and "journalctl -xe" for details.
[setup.sh] Failed to start directadmin service, please make sure you have a valid license
● directadmin.service - DirectAdmin Web Control Panel
Loaded: loaded (/etc/systemd/system/directadmin.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2022-01-14 19:28:39 CST; 41ms ago
Docs: http://www.directadmin.com
Process: 9046 ExecStart=/usr/local/directadmin/directadmin (code=exited, status=2)
Main PID: 9046 (code=exited, status=2)
CPU: 178ms

1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/util/licence/session.go:73 +0x59
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/lstate.(*Client).Run(0xc00003e700, {0x13c1858, 0xc00003e6c0})
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/lstate/state.go:145 +0x59
1月 14 19:28:39 server.hostname.com directadmin[9046]: main.runWebServer.func1()
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/main.go:126 +0x65
1月 14 19:28:39 server.hostname.com directadmin[9046]: created by main.runWebServer
1月 14 19:28:39 server.hostname.com directadmin[9046]: git.directadmin.com/directadmin/bin/directadmin/main.go:124 +0x598
1月 14 19:28:39 server.hostname.com systemd[1]: directadmin.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
1月 14 19:28:39 server.hostname.com systemd[1]: directadmin.service: Failed with result 'exit-code'.
1月 14 19:28:39 server.hostname.com systemd[1]: Failed to start DirectAdmin Web Control Panel.


I'm Debian 11.2, using
bash <(curl -Ss https://www.directadmin.com/setup.sh || wget -O - https://www.directadmin.com/setup.sh)


The authorization key is correct, but it always indicates that there is a problem with authorization
You can try to manually download the license key and install it yourself.
If that does not work I would recommend to create a support ticket about this. (If you have a personal license you need to email sales. But this is way slower.)
 
Top