cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X

C SDK connection does not work

movaskainen
1-Visitor

C SDK connection does not work

I cannot get my Raspberry Pi 3 to connect to the Thingworx server. I have searched through the boards, tried disabling SSL authentication, upgraded my software, etc. but I always try to get the same error after trying to run the ExampleClient provided in the examples.

[FORCE] 2017-07-11 13:33:45,456: Starting up

[ERROR] 2017-07-11 13:33:45,457: twStream_CreateFromFile: error opening file: /opt/thingworx/subscribed_properties.bin

[ERROR] 2017-07-11 13:33:45,457: subscribedPropsMgr_Initialize: Error opening: /opt/thingworx/subscribed_properties.bin

[ERROR] 2017-07-11 13:33:45,713: Error intializing SSL connection

[ERROR] 2017-07-11 13:33:45,713: twWs_Connect: Error restarting socket.  Error 13

[ERROR] 2017-07-11 13:33:50,967: Error intializing SSL connection

[ERROR] 2017-07-11 13:33:50,967: twWs_Connect: Error restarting socket.  Error 32

[ERROR] 2017-07-11 13:33:56,221: Error intializing SSL connection

[ERROR] 2017-07-11 13:33:56,221: twWs_Connect: Error restarting socket.  Error 32

[ERROR] 2017-07-11 13:34:01,222: twApi_Connect: Max number of connect retries: 3, has been reached

[ERROR] 2017-07-11 13:34:01,222: main: Server connection failed after 3 attempts.  Error Code: 1001

What could be the problem? Thank you for your help in advance.

7 REPLIES 7
supandey
19-Tanzanite
(To:movaskainen)

Hi Markus are you getting this error with or without the SSL configuration? Because in the error above it seems to be complaining about the SSL connection initialization together with issues in accessing subscribed_properties.bin file under the specified location. What sort of user are you working with?

Hi,

I get this error by strictly adhering to the C SDK Quickstart guide. On the side note, the download link for C SDK provided in the guide does not contain the whole library and the files that are referred to in the guide.

I am trying to get this to work with SSL, but I have already tried to disable SSL as well, but weirdly and regardless, the "Error intializing SSL connection"-error persists.

Markus

Hi Sushant, Markus,

I also have the exact same error. Have you managed to find the solution?

Regards,

Ghifari

Nope, still no idea.

Are you using the IP and port of a local server or a hosted server on the dev zone?

Also, what changes have you made to the connection file to connect?

Hi all,

I also have the same problem, did you manage to connect?

@Jason: I am using the IP address of the 30-day hosted trial server, default port 80 (I guess?).

I am following the C SDK Setup Guide (https://developer.thingworx.com/resources/guides/thingworx-c-sdk-setup-guide/connection-test-setup). I did everything as explained in the guide, but I get the following errors when trying to run the executable:

Charls-Air:release ulrichmabou$ ./SimpleThingClient

[FORCE] 2017-08-14 15:36:58,550: Starting up

[ERROR] 2017-08-14 15:36:58,555: twStream_CreateFromFile: error opening file: /opt/thingworx/subscribed_properties.bin

[ERROR] 2017-08-14 15:36:58,555: subscribedPropsMgr_Initialize: Error opening: /opt/thingworx/subscribed_properties.bin

[ERROR] 2017-08-14 15:36:58,866: Error intializing SSL connection

[ERROR] 2017-08-14 15:36:58,866: twWs_Connect: Error restarting socket.  Error 60

Do you have the right port and IP information when disabling SSL?

Announcements


Top Tags