The multi-user.target must be active error

chengkinhung

Active Member
Jun 15, 2007
27
4
53
Hi,

I am trying to install cPanel with cloud-init when deploy the CentOS 7 from template. I had setup the template with cloud-init and add cpanel installation command into the runcmd of the /etc/cloud/cloud.cfg. When CentOS 7 boot, I can see the cloud-init trigger the cpanel installation command and run successfully, but the cPanel installation stop with the following error messages:

Code:
The installation process detected that the multi-user.target is not active (boot is probably not finished)
The multi-user.target must be active before the installation can continue.
I guess this issue due to the cloud-init runleve, but I do not know how to fix, any one could help me ? Thanks very much.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,772
326
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
I've personally never tried this but it sounds like you are installing prior to the initial reboot post installation and centos is still in single user mode from the install.

I think you're going to have to get through that first reboot before you kick off the installer.
 

chengkinhung

Active Member
Jun 15, 2007
27
4
53
Hi GOT,

Thanks very much for your reply.

This template(Centos7) had been tested and capable to install cPanel, I do not think reboot can solve this issue, actually the VM also tried reboot several times. The reason may be the cloud-init service should be run after multi-user.target, but I do not know how yet.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @chengkinhung,

Can you let us know the output from the following commands?

Code:
ls -l /etc/systemd/system/default.target
systemctl get-default
Thank you.
 

chengkinhung

Active Member
Jun 15, 2007
27
4
53
Hi @cPanelMichael

# ls -l /etc/systemd/system/default.target
lrwxrwxrwx. 1 root root 37 Dec 13 10:20 /etc/systemd/system/default.target -> /lib/systemd/system/multi-user.target

# systemctl get-default
multi-user.target


However I run this commands through SSH login but not from cloud-init, and this issue almost definitely related with cloud-init runtime environment. As you know, the cloud-init run in the server boot time.
 
Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello @chengkinhung,

Can you open a support ticket so we can take a closer look at the affected system to see what's preventing the installation from succeeding? You can post the ticket number here and we'll update this thread with the outcome.

Thank you.
 

chengkinhung

Active Member
Jun 15, 2007
27
4
53
Hi @cPanelMichael,

Thanks for your suggest, but there is not cPanel server installed yet in this case, how can we open the ticket ?

and the cloud-init must be run when server booting, how can you debug this kind of case remotely ?

Do you ever try to use could-init before ?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463