Help Center> Image Management Service> FAQ> OS> What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?

What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?

Scenarios

If the plug-in failed to start after it has been installed, you need to add the following content to the rc file:

/CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
/CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
  • If exit 0 is displayed at the end of the file, add the preceding content to the line just before exit 0: If exit 0 is not displayed, add the preceding content at the end of the file.
  • ECSs created using a SUSE 11 SP4 image must have 4 GB or a larger memory.

Procedure

  • For a CoreOS, run the following commands to start the plug-in:
    cat >/etc/systemd/system/cloudResetPwdAgent.service <<EOT
    [Unit]
    Description=cloudResetPwdAgent service
    Wants=local-fs.target
    Requires=local-fs.target
    [Service]
    Type=simple
    ExecStart=/CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
    RemainAfterExit=yes
    ExecStop=/CloudrResetPwdAgent/bin/cloudResetPwdAgent.script stop
    KillMode=none
    [Install]
    WantedBy=multi-user.target
    EOT
    systemctl enable cloudResetPwdAgent.service
    cat >/etc/systemd/system/cloudResetPwdUpdateAgent.service <<EOT
    [Unit]
    Description=cloudResetPwdUpdateAgent service
    Wants=local-fs.target
    Requires=local-fs.target
    [Service]
    Type=simple
    ExecStart=/CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    RemainAfterExit=yes
    ExecStop=/CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script stop
    KillMode=none
    [Install]
    WantedBy=multi-user.target
    EOT
    systemctl enable cloudResetPwdUpdateAgent.service
  • SUSE, Ubuntu, and Debian
    1. Run the following command to open the rc file:

      vi /etc/init.d/rc

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • CentOS Linux 7
    1. Run the following commands to open the rc.local file:

      chmod +x /etc/rc.d/rc.local

      vi /etc/rc.d/rc.local

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • openSUSE 13
    1. Run the following command to open the boot.local file:

      vi /etc/init.d/boot.local

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • Debian 8
    1. Run the following commands to open the rc.local file:

      vi /etc/rc.local

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • Fedora 20
    1. Run the following commands to open the rc.local file:

      touch /etc/rc.d/rc.local

      chmod +x /etc/rc.d/rc.local

      vi /etc/rc.d/rc.local

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • Other OSs
    1. Run the following command to open the rc.local file:

      vi /etc/rc.d/rc

    2. Press i to enter editing mode and add the following content at the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.