Help Center> Image Management Service> FAQs> OS> What Do I Do If the One-Click Password Resetting Plug-In Failed to Start?
Updated on 2023-08-15 GMT+08:00

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

Symptom

The one-click password reset plug-in failed to start after it is installed.

Solution

Add the following content to the ECS configuration (the configuration file path varies depending on the OS. For details, see Procedure):

/CloudrResetPwdAgent/bin/cloudResetPwdAgent.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 to the end of the file.
  • ECSs created from a SUSE 11 SP4 image must have 4 GB or a larger memory.

Procedure

  • 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
  • SUSE, Ubuntu, and Debian
    1. Run the following command to open the rc file:

      vi /etc/init.d/rc

    2. Press i to enter the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.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 make rc.local executable, and then to open the file:

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

      vi /etc/rc.d/rc.local

    2. Press i to enter the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.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 the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.
  • Debian 8
    1. Run the following command to open the rc.local file:

      vi /etc/rc.local

    2. Press i to enter the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.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 the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.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 the editing mode and add the following content to the end of the file:
      /CloudrResetPwdAgent/bin/cloudResetPwdAgent.script start
    3. Press Esc, enter :wq, and press Enter to save the configuration and exit.

OS FAQs

more