Failed to start the Gateway server: ERROR #5023: Remote Gateway Error: Communication failure on port: 5000 > ERROR #5001: External Language Server: invalid ping response
Our client getting sometimes this error and we need to change port number on JavaGateway process to continue,
Failed to start the Gateway server: ERROR #5023: Remote Gateway Error: Communication failure on port: 5000
> ERROR #5001: External Language Server: invalid ping response
Can you tell as why it is happenning? intersystems runtime is under linux.
Product version: IRIS 2023.1
I would start by checking if some other process is already using port 5000 (or whatever port JavaGateway is trying to run on). It would also be good to check the JavaGateway
Since you're on Linux you can check this with netstat:
Hallo Marc,
We have tryed to chage the ports the problem persists. hier is a logging: First we get warning from Javagateway. And when BO trying to execute sql we get Error and we need to change port to continue.
Did you try what @Marc Mundt told you? Check if there is a process that is using the port dedicated for the JDBC conenction (in your warning the port 5003).
Have you checked to see if there is another app using the Port? I know that sometimes the Shutdown doesn't always shutdown the Java Gateways properly, especially if you failover, and fail back to the primary. We have it scripted to make sure that if a Shutdown occurs or if the mirror fails over that the Java Gateways are properly shutdown.
It is working for a week and than it stops. We changed the port and changed the timeout of BO SQL adapter from 60 to -1.
We wait now if problem persists.
Does your Java Gateway stop or your BO? Is something scanning the ports and causing a blockage, or failure perhaps? Try enabling the Java Gateway log file, I know it's hard to read, but it may give you a clue to what is going on.
Also make sure that the External Language %JDBC Server isn't crashing for some unknown reason. I found that if the %JDBC Server starts having issues that the Java Gateways within your Namespaces start having issues as well.