RCI Error: cannot open port #1055. Probably port in use

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
eljefegt
Posts: 8
Joined: Tue Dec 06, 2016 11:56 am
Location: US

RCI Error: cannot open port #1055. Probably port in use

Post by eljefegt »

Occasionally in our environment, we find an issue where we're unable to log on to RCC. I believe this also prevents tests from reporting properly, but I haven't been able to confirm that 100%. The only way to correct the issue is by rebooting the server, which is an issue as this is in use in a production environment.

RCC Log shows:
[1/17/2017 9:18:42 PM] Connecting... Ok. TCP Connection established
[1/17/2017 9:18:42 PM] Authentication... Failed. Cannot read data

HostMon SysLog around the time of the error shows: (We attempted to restart the service a few times)
1/17/2017 8:55:47 PM Action error: Attachment file not found (D:\HostMon\ESO\Scripts\output\%TestName%\%NewestFile%)
1/17/2017 8:55:47 PM Action error: Attachment file not found (D:\HostMon\ESO\Scripts\output\%TestName%\%NewestFile%)
1/17/2017 8:58:00 PM Action error: Attachment file not found (D:\HostMon\ESO\Scripts\output\%TestName%\%NewestFile%)
1/17/2017 8:58:45 PM Action error: Attachment file not found (D:\HostMon\ESO\Scripts\output\%TestName%\%NewestFile%)
1/17/2017 9:04:23 PM Action error: Attachment file not found (D:\HostMon\ESO\Scripts\output\%TestName%\%NewestFile%)
1/17/2017 9:06:05 PM Monitor started
1/17/2017 9:06:05 PM RCI Error: cannot open port #1055. Probably port in use
1/17/2017 9:06:06 PM Error: cannot save log list.File access denied
1/17/2017 9:15:40 PM Monitor started
1/17/2017 9:15:40 PM RCI Error: cannot open port #1055. Probably port in use
1/17/2017 9:15:41 PM Error: cannot save log list.File access denied
1/17/2017 9:16:15 PM Monitor started
1/17/2017 9:16:15 PM RCI Error: cannot open port #1055. Probably port in use
1/17/2017 9:16:15 PM RCI Error: cannot open port #1055. Probably port in use
1/17/2017 9:17:04 PM Monitor stopped
1/17/2017 9:17:07 PM Monitor started
1/17/2017 9:17:07 PM RCI Error: cannot open port #1055. Probably port in use

When I attempt to force close the port with a tool like cports, the port cannot be closed. I read multiple threads around StackOverflow about this essentially being a zombie process holding the port open.

Image

netstat -ano shows the port open and assigned to a process that doesn't exist in task manager.

Image

Any ideas what could be causing this?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

CurrPorts shows that TCP port 1055 is used by System process.
That's why HostMontor can't open TCP port 1055 for incomming connections.
You may change TCP port, used for RCI connections (RCC, Telnet, Web Service) using HostMonitor menu Options -> RCI. Do not forget to change connection port on RCC/Telnet/Web Service clients.
eljefegt
Posts: 8
Joined: Tue Dec 06, 2016 11:56 am
Location: US

Post by eljefegt »

I don't believe we have anything else that should be using port 1055. Is there any instance in which an orphaned RCC session could show up as System process?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

No. TCP port 1055 (used by default) should be opened for incoming connections by hostmon.exe process.
KonstantinK
Posts: 5
Joined: Wed Oct 20, 2021 4:28 am
Location: Israel

Post by KonstantinK »

Hi, Friends.

I'm using version 12.98, and I've had the same issue.
It happens on the computer with Windows 10.

The message appeared when the HostMonitor service was closed, and the Application started manually.
After a short investigation, it became understood that the previous process had closed and the port had been left open.

Nothing except restarting the computer didn't help.
KS-Soft
Posts: 12860
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Try to use port above 5000

Regards
Alex
Post Reply