Skip to main content
1-Visitor
May 4, 2022
Solved

connection server is not getting started

  • May 4, 2022
  • 1 reply
  • 1947 views

Hi, I have installed ThingWorx platform 9.3.0 (enabled SSL/TLS) and installed connection server 9.2.0 on the same VM and done cxserver.conf changes as per the documentation but when I run the connection server from CMD, nothing got shown and in cxserver.txt I can see below error.

 

Error in custom provider, java.lang.IllegalArgumentException: port out of range:-1
while locating com.thingworx.connectionserver.FabricBytesChannelProvider
at com.thingworx.connectionserver.ConnectionServerModule.configure(ConnectionServerModule.java:44)

 

Can someone help me to understand what went wrong here. I have created truststore and provided the details as part of CONNECTION_SERVER_OPTS too.

Best answer by VladimirRosu_116627

I think there's something wrong with your YAML. Please check it with http://www.yamllint.com/ before starting the connector.

The -2

Also do note that cx-server.protocol.port is the port where CX server accepts connections. Meaning it should be an open port, not used by anything in the machine.

Under cx-server.transport.websockets you should note your platform IP, port etc. The statement you were unsure above means that you must add the port in this setting even if you use ws or wss.

 

I assume you are already familiar with the content from the help center, https://support.ptc.com/help/thingworx/connection_services/en/#page/thingworx_cx_services/connection_server_docs/c_cx_server_minimal_configuration.html#

1 reply

24-Ruby III
May 5, 2022

 Hi,

 

Read this article - "Connection Server fails to start with error "Error in custom provider, java.lang.IllegalArgumentException: port out of range:-1" in ThingWorx Connection Server": https://www.ptc.com/en/support/article/CS259038 

1-Visitor
May 5, 2022

Hi VladimirN,

I reviewed all relevant articles before reaching out here but it didn't help. This article is for old version of connection server but I hope it works for new version too but it didn't solve my issue.

 

I have one question on below statement.

  • This websocket must have the port configured explicitly

I have configured TWX SSL so when I mentioned the port 443 explicitly, it's giving a different error. If I remove this port, it's going to next level and failing at 

cx-server {
protocol.port = 8443
. . .
}

 

Whatever the port I give here, I am getting the port out of range error.

 

19-Tanzanite
May 5, 2022

I think there's something wrong with your YAML. Please check it with http://www.yamllint.com/ before starting the connector.

The -2

Also do note that cx-server.protocol.port is the port where CX server accepts connections. Meaning it should be an open port, not used by anything in the machine.

Under cx-server.transport.websockets you should note your platform IP, port etc. The statement you were unsure above means that you must add the port in this setting even if you use ws or wss.

 

I assume you are already familiar with the content from the help center, https://support.ptc.com/help/thingworx/connection_services/en/#page/thingworx_cx_services/connection_server_docs/c_cx_server_minimal_configuration.html#