Help Center > > FAQs> Passwords and Key Pairs> Passwords> What Should I Do If a Service Port Is Used by a One-Click Password Reset Plug-in?

What Should I Do If a Service Port Is Used by a One-Click Password Reset Plug-in?

Updated at: Mar 17, 2020 GMT+08:00

Symptom

When an application is to run on an ECS, the system displays a message indicating that the required port is used by a one-click password reset plug-in. What should I do if such an issue occurs?

Possible Causes

If an ECS works in AUTO mode, when its one-click password reset plug-ins start, the plug-ins randomly use a port, which may be a service port.

The one-click password reset plug-ins have been upgraded to work in PIPE mode by default.

  • Newly created ECSs run in PIPE mode by default, and their one-click password reset plug-ins will not use service ports.
  • Existing ECSs still work in AUTO mode, in which the plug-ins randomly use a service port ranging from 31,000 to 32,999. The system will automatically select an idle port with the smallest port number.

Method 1 (Recommended): Modifying the wrapper Files of the One-Click Password Reset Plug-ins for the PIPE Mode

In the wrapper files, change from AUTO (SOCKET) to PIPE. After the change, the plug-ins will not use service ports.

  1. Open CloudResetPwdAgent configuration files.
    • Linux

      /CloudrResetPwdAgent/conf/wrapper.conf and /CloudResetPwdUpdateAgent/conf/wrapper.conf

    • Windows

      C:\CloudResetPwdUpdateAgent\conf\wrapper.conf and C:\CloudResetPwdUpdateAgent\conf\wrapper.conf

  2. Add the following data to the end of the files:

    wrapper.backend.type=PIPE

  3. Restart CloudResetPwdUpdateAgent.
    • Linux

      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script restart

    • Windows
      1. Press Win+R to start the Run text box.
      2. Enter services.msc and click OK.
        Figure 1 Run
      3. Right-click cloud reset password update agent and choose Restart from the shortcut menu.
        Figure 2 Services (Local)

Method 2: Modifying the Configuration to Change the Port Range

Modify the CloudResetPwdAgent configuration to change the default port range for the password reset plug-ins so that the service port is out of the port range.

For example, to change the port range for the password reset plug-ins to 40000-42000, perform the following operations:

  1. Open CloudResetPwdAgent configuration files.
    • Linux

      /CloudrResetPwdAgent/conf/wrapper.conf and /CloudResetPwdUpdateAgent/conf/wrapper.conf

    • Windows

      C:\CloudResetPwdUpdateAgent\conf\wrapper.conf and C:\CloudResetPwdUpdateAgent\conf\wrapper.conf

  2. Add the following data to the configuration files:

    wrapper.port.min=40000

    wrapper.port.max=41000

    wrapper.jvm.port.min=41001

    wrapper.jvm.port.max=42000

    Figure 3 Modifying the configuration files
  3. Restart CloudResetPwdUpdateAgent.
    • Linux

      /CloudResetPwdUpdateAgent/bin/cloudResetPwdUpdateAgent.script restart

    • Windows
      1. Press Win+R to start the Run text box.
      2. Enter services.msc and click OK.
        Figure 4 Run
      3. Right-click cloud reset password update agent and choose Restart from the shortcut menu.
        Figure 5 Services (Local)

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel