8 Replies Latest reply on Jul 20, 2016 12:12 PM by aanjan RSS
    twu Explorer

    OPC-DA doesn't work, can't connect to Thingwork application

    I make sure Thingworx 7.1.3 b14 work properly, I also make sure I can login to Thingworx by https://localhost/Thingworx, and secure type is self-signed certification, however, in accordance with the PDF file, I installed RemoteOpcDa_Extenstions and want to fetch data from my OPC server, ThingWorxOpcDaClient service can startup but can't connect to Thingworx application, the log from ThingWorxOpcDaClient service as below:

     

    2016-07-14 11:53:23.877Z [L: Information] [T: 1] [U: SYSTEM] [O: com.thingworx.services.HostService] Initializing Service...

    2016-07-14 11:53:24.096Z [L: Information] [T: 1] [U: SYSTEM] [O: com.thingworx.services.HostService] Initialization complete.

    2016-07-14 11:53:24.096Z [L: Information] [T: 4] [U: SYSTEM] [O: com.thingworx.services.HostService] Starting Service...

    2016-07-14 11:53:24.205Z [L: Information] [T: 4] [U: SYSTEM] [O: com.thingworx.services.HostService] Service started.

    2016-07-14 11:53:24.346Z [L: Information] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] Registering 1 Properties for ThingName: RemoteOPCDAThing

    2016-07-14 11:53:24.377Z [L: Information] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] Registering 10 Services for ThingName: RemoteOPCDAThing

    2016-07-14 11:53:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] Error intializing SSL connection

    2016-07-14 11:53:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] twWs_Connect: Error restarting socket.  Error 0

    2016-07-14 11:54:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] Error intializing SSL connection

    2016-07-14 11:54:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] twWs_Connect: Error restarting socket.  Error 0

    2016-07-14 11:55:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] Error intializing SSL connection

    2016-07-14 11:55:24.393Z [L: Error] [T: 6] [U: SYSTEM] [O: com.thingworx.communications.client.TwApiWrapper] [Error] twWs_Connect: Error restarting socket.  Error 0

     

    A part of OpcDaThing.config parameter:

     

        "rows": [

          {

            "Address": "127.0.0.1",

            "Port": 443,

            "Resource": "/Thingworx/WS",

            "IsSecure": true,

            "ThingName": "RemoteOPCDAThing",

            "AppKey": "d05f8d33-1f5b-43e9-8863-5c261837a0a2",

            "AllowSelfSignedCertificates": true,

            "DisableCertValidation": true,

            "ConnectTimeout": 10000,

            "ConnectRetries": -1,

            "ReconnectInterval": 60,

            "MaxMessageSize": 64000,

            "MessageTimeout": 10000,

            "OfflineMsgQueueSize": 16384,

            "OfflineMsgStoreDir": "/opt/thingworx",

            "MaxMessages": 500,

            "IdlePingRate": 45,

            "MessageChunkSize": 8192,

            "MessageFrameSize": 8192,

            "AutoReconnect": true,

            "ForceConnectOnReadProperty": false,

            "ForceConnectOnWriteProperty": false,

            "ForceConnectOnInvokeService": true,

            "PongTimeout": 10000,

            "StaleMsgCleanupRate": 50000,

            "StreamBlockSize": 256,

            "MaxConnectDelay": 10000,

            "SocketReadTimeout": 10,

            "ThrowOnOfflineMesssageSave": false,

            "ClientName": "ThingWorxOPCGateway",

            "MessageStoreConfiguration": "ALL",

            "DisableEncryption": false

          }

        ]


    ThingWorxOPCService.exe version is 5.6.1.1100

    Could I have forgotten something?