The multi-user.target must be active error
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:
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.
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.
-
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. 0 -
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. 0 -
Hello @chengkinhung, Can you let us know the output from the following commands? ls -l /etc/systemd/system/default.target systemctl get-default
Thank you.0 -
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. 0 -
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 ? 0 -
Hi @chengkinhung, You can send an email directly to cs @ cpanel.net explaining the issue and asking that your support request be forwarded to our Technical Support team. As far as cloud-init, can you review the document below and verify you are following the best practices it outlines? Best Practices for cPanel Virtualization Templates - cPanel Knowledge Base - cPanel Documentation Thank you. 0
Please sign in to leave a comment.
Comments
7 comments