What Should I Do If a Service Port Is Used by a One-Click Password Reset Plug-in?
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.
- Open CloudResetPwdAgent configuration files.
- Add the following data to the end of the files:
- Restart CloudResetPwdUpdateAgent.
- Windows
- Press Win+R to start the Run text box.
- Enter services.msc and click OK. Figure 1 Run
- Right-click cloud reset password update agent and choose Restart from the shortcut menu. Figure 2 Services (Local)
- Windows
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:
- Open CloudResetPwdAgent configuration files.
- Add the following data to the configuration files:
wrapper.port.max=41000
wrapper.jvm.port.min=41001
wrapper.jvm.port.max=42000
Figure 3 Modifying the configuration files
- Restart CloudResetPwdUpdateAgent.
- Windows
- Press Win+R to start the Run text box.
- Enter services.msc and click OK. Figure 4 Run
- Right-click cloud reset password update agent and choose Restart from the shortcut menu. Figure 5 Services (Local)
- Windows
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.