<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568697#M30696</link>
    <description>&lt;P&gt;You are very welcome. Glad to hear things are working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Craig A.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2018 20:39:57 GMT</pubDate>
    <dc:creator>CRArko</dc:creator>
    <dc:date>2018-08-28T20:39:57Z</dc:date>
    <item>
      <title>Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/567869#M30570</link>
      <description>&lt;P&gt;While I was trying to run&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;sudo ./luaScriptResource&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;in Raspberry Pi (Raspbian Jessie), &amp;nbsp;I got the following error log:&lt;/P&gt;
&lt;P&gt;[INFO ] 2018-08-24 06:15:35,737 ./luaScriptResource: Using config file: /home/pi/Downloads/microserver/etc/config.lua&lt;BR /&gt;[FORCE] 2018-08-24 06:15:35,737 ./luaScriptResource: Starting up ....&lt;/P&gt;
&lt;P&gt;[INFO ] 2018-08-24 06:15:35,743 luaScriptResource:main: Encryption is disabled on the RAP connection.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,743 luaScriptResource:main: FIPS is disabled.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,746 ./luaScriptResource: New path is (null)&lt;BR /&gt;[WARN ] 2018-08-24 06:15:35,749 ScriptResource::initialize: Encryption is disabled on HTTP Server.&lt;BR /&gt;[WARN ] 2018-08-24 06:15:35,750 ScriptResource::initialize: Authentication is disabled on the HTTP Server.&lt;BR /&gt;[WARN ] 2018-08-24 06:15:35,754 : &lt;BR /&gt;[WARN ] 2018-08-24 06:15:35,790 : &lt;BR /&gt;[FORCE] 2018-08-24 06:15:35,820 httpServer: starting http server port=8080&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,834 thingworx.shape: Creating a new shape.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,835 PiThing7: -- Configuration -------------------------------&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,835 PiThing7: scanRate: 501&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,835 PiThing7: scanRateResolution: 500&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,836 PiThing7: taskRate: 501&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,836 PiThing7: keepAliveRate: 60000&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,836 PiThing7: requestTimeout: 15000&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,836 PiThing7: registerRate: 43200000&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,836 PiThing7: register: true&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,837 PiThing7: getPropertySubscriptionOnReconnect: false&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,837 PiThing7: maxConcurrentPropertyUpdates: 100&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,837 PiThing7: defaultPushType: VALUE&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,837 PiThing7: useShapes: true&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,837 PiThing7: identifier: PiThing7&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,838 PiThing7: ------------------------------------------------&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,839 thingworx.template: Adding shape 'shapes.metadata' to template 'thingworx.template'&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,839 thingworx.template: Adding shape 'shapes.propsubscribe' to template 'thingworx.template'&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,840 thingworx.template: Creating new templates.PiTemplate named 'PiThing7'&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,840 PiThing7: -- Initializing properties ---------------------&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,840 PiThing7: Initialized property upToDate [baseType: BOOLEAN, pushType: NEVER, handler: nil, value: true]&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,840 PiThing7: Initialized property cpu_volt [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,841 PiThing7: Initialized property cpu_temperature [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,841 PiThing7: Initialized property cpu_freq [baseType: NUMBER, pushType: ALWAYS, handler: nil, value: 0]&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,841 PiThing7: ------------------------------------------------&lt;BR /&gt;[INFO ] 2018-08-24 06:15:35,842 Thingworx: Registering identifier *PiThing7 for thing PiThing7&lt;BR /&gt;[INFO ] 2018-08-24 06:15:36,842 PiThing7: Identifier *PiThing7 registered with main Thingworx script for for Thing PiThing7&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,812 PiThing7: -- Starting script --------------------------&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,813 PiThing7: Registering core callback handler&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,813 PiThing7: Starting main loop&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,813 PiThing7: Calling lifecycle start listeners.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,813 shapes.propsubscribe: Initialized&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,815 thingworx.handler: Creating a new handler.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,841 PiThing7: Error occured while accessing EMS. Checking isConnected.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,850 PiThing7: MicroServer is now available.&lt;BR /&gt;[INFO ] 2018-08-24 06:15:38,851 PiThing7: EMS is available: true, online: false&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When running sudo ./wsems I get the following:&lt;/P&gt;
&lt;P&gt;[FORCE] 2018-08-24 06:22:10,791 ./wsems: Initializing EMS ....&lt;BR /&gt;[FORCE] 2018-08-24 06:22:10,791 main: Using config file /home/pi/Downloads/microserver/etc/config.json&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,791 ./wsems: Creating the WsEms proxy.&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,791 ./wsems: Starting HTTP Server.&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,791 Main: Using custom certificate and private key for HTTP Server&lt;BR /&gt;[WARN ] 2018-08-24 06:22:10,791 Main: Encryption is disabled on HTTP Server.&lt;BR /&gt;[WARN ] 2018-08-24 06:22:10,791 Main: Authentication is disabled on the HTTP Server.&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,792 ./wsems: Initializing the ThingWorx REST interface.&lt;BR /&gt;[FORCE] 2018-08-24 06:22:10,792 httpServer: starting http server port=8080&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,792 wsEmsProxy::initialize: FIPS is disabled.&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,792 wsEmsProxy::initialize: Encryption is disabled on Web Socket connection.&lt;BR /&gt;[WARN ] 2018-08-24 12:22:10,793 SDK: SDK Version: 2.1.2&lt;BR /&gt;[WARN ] 2018-08-24 12:22:10,793 SDK: TLS Library: OpenSSL&lt;BR /&gt;[WARN ] 2018-08-24 12:22:10,793 SDK: TLS Library Version: 1.0.2l-fips&lt;BR /&gt;[WARN ] 2018-08-24 12:22:10,793 SDK: FIPS Capable&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,793 SDK: twWs_Create: Initializing Websocket Client for &lt;A href="http://www.iotspace.io:80//Thingworx/WS" target="_blank"&gt;www.iotspace.io:80//Thingworx/WS&lt;/A&gt;&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,793 SDK: twTlsClient_Create: Initializing TLS Client&lt;BR /&gt;[DEBUG] 2018-08-24 06:22:10,793 httpServer: http server bound to port=8080.&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,949 SDK: twApi_Initialize: Websocket Established after 0 tries&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,949 SDK: subscribedPropsMgr_Initialize: Initializing subscribed properties manager&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,949 WsProxy::initialize: EMS Version 5.4.2.334&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,949 WsProxy::initialize: twApi singleton initialized&lt;BR /&gt;[WARN ] 2018-08-24 06:22:10,949 WsProxy::initialize: Certificate validation is disabled.&lt;BR /&gt;[WARN ] 2018-08-24 06:22:10,949 WsProxy::initialize: Self signed certificates are enabled.&lt;BR /&gt;[DEBUG] 2018-08-24 06:22:10,949 jsonConfigurator::getJsonEntity: Key validation_criteria not found&lt;BR /&gt;[DEBUG] 2018-08-24 06:22:10,950 jsonConfigurator::getJsonEntity: Parent file not found&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,950 SDK: twTunnelManager_Create: Tunnel Manager singleton already exists&lt;BR /&gt;[ERROR] 2018-08-24 12:22:10,950 SDK: twMap_Add: parse function returned null.&lt;BR /&gt;[DEBUG] 2018-08-24 06:22:10,950 WsEmsProxy :: bindThing: Host specified as 'localhost'. Testing IPV6/IPV4 connectivity&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.iotspace.io:80--&amp;gt;[WARN" target="_blank"&gt;www.iotspace.io:80--&amp;gt;[WARN&lt;/A&gt; ] 2018-08-24 06:22:10,960 WsEmsProxy :: bindThing: Exception connecting to localhost:8001. Err: Connection refused [localhost:8001]&lt;BR /&gt;[WARN ] 2018-08-24 06:22:10,960 WsEmsProxy::bindThing: Changing host from 'localhost' to '127.0.0.1'&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,961 SDK: added PiThing7 to boundList&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,961 SDK: twApi_BindThings: not currently connected, only binding things to api&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,961 SDK: twMessage_Delete: Deleting BIND Message: 1&lt;BR /&gt;[DEBUG] 2018-08-24 06:22:10,961 jsonConfigurator::getJsonEntity: Parent file not found&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,961 wsEmsProxy::initialize: Initialization complete!&lt;BR /&gt;[INFO ] 2018-08-24 06:22:10,962 ./wsems: Starting the connection.&lt;BR /&gt;[ERROR] 2018-08-24 12:22:10,967 SDK: twStream_Delete: NULL Pointer passed in&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:10,967 SDK: twTlsClient_Reconnect: Re-establishing SSL context&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,244 SDK: twTlsClient_Connect: Connecting to server&lt;BR /&gt;[INFO ] 2018-08-24 12:22:11,451 SDK: Server supports websocket extensions: permessage-deflate&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,451 SDK: ws_on_headers_complete: Websocket connected!&lt;BR /&gt;[INFO ] 2018-08-24 12:22:11,451 SDK: twWs_Connect: Websocket connected!&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,452 SDK: twWs_SendMessage: Sent 60 bytes using 1 frames.&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,714 SDK: twMessage_Delete: Deleting RESPONSE Message: 2&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,714 SDK: twMessage_Delete: Deleting AUTH Message: 2&lt;BR /&gt;[WARN ] 2018-08-24 12:22:11,714 SDK: twBindBody_Delete: NULL body or stream pointer&lt;BR /&gt;[INFO ] 2018-08-24 06:22:11,714 Main: Succesfully connected. Saving .booted config file&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,714 SDK: twMessage_Delete: Deleting BIND Message: 3&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,714 SDK: twWs_SendMessage: Sent 27 bytes using 1 frames.&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:11,717 SDK: sendCtlFrame: &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sending Ping. Msg: 06:22:11&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,133 SDK: twMessage_Delete: Deleting RESPONSE Message: 3&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,133 SDK: twMessage_Delete: Deleting BIND Message: 3&lt;BR /&gt;[INFO ] 2018-08-24 12:22:12,836 SDK: api_requesthandler: No handler found. Returning 404&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,836 SDK: twMessage_Delete: Deleting RESPONSE Message: 5847&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,836 SDK: twWs_SendMessage: Sent 17 bytes using 1 frames.&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,836 SDK: twMessage_Delete: Deleting RESPONSE Message: 5847&lt;BR /&gt;[DEBUG] 2018-08-24 12:22:12,836 SDK: twMessage_Delete: Deleting REQUEST Message: 5847&lt;BR /&gt;[DEBUG] 2018-08-24 12:23:06,788 SDK: sendCtlFrame: &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sending Ping. Msg: 06:23:06&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2018-08-24-122335_1366x768_scrot.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/9810i3B285861859E0026/image-size/large?v=v2&amp;amp;px=999" role="button" title="2018-08-24-122335_1366x768_scrot.png" alt="2018-08-24-122335_1366x768_scrot.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While running sudo ./wsems I was able to ping my Thingworx (I have attached the screenshot)&lt;/P&gt;
&lt;P&gt;Can someone please help me solve this error? is it a problem with my port&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 06:37:21 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/567869#M30570</guid>
      <dc:creator>Gowresh_R</dc:creator>
      <dc:date>2018-08-24T06:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568002#M30604</link>
      <description>&lt;P&gt;Hello! Thanks for posting your question in our Community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.iotspace.io:80--&amp;gt;[WARN" target="_blank" rel="nofollow noopener noreferrer"&gt;www.iotspace.io:80--&amp;gt;[WARN&lt;/A&gt;&lt;SPAN&gt; ] 2018-08-24 06:22:10,960 WsEmsProxy :: bindThing: Exception connecting to localhost:8001. Err: Connection refused [localhost:8001]&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That may indicated a&amp;nbsp;problem with talking to port 8001, check to be sure there are no active firewall&amp;nbsp;blockages on that port. Also, what version of the EMS are&amp;nbsp;you running?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This &lt;A href="https://community.ptc.com/t5/ThingWorx-Developers/Error-trying-to-connect-ThingWorx-to-the-raspberry-pi/m-p/511071#M8207%3F&amp;amp;posno=1&amp;amp;q=WsEmsProxy%20::%20bindThing:%20Exception%20connecting%20to%20localhost:8001.%20Err:%20Connection%20refused&amp;amp;source=search" target="_self"&gt;other post&lt;/A&gt; shows similar&amp;nbsp;&lt;/SPAN&gt;errors, and looks like it's still a work in progress.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Craig A.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:00:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568002#M30604</guid>
      <dc:creator>CRArko</dc:creator>
      <dc:date>2018-08-24T16:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568009#M30605</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;That may indicated a&amp;nbsp;problem with talking to port 8001, check to be sure there are no active firewall&amp;nbsp;blockages on that port. Also, what version of the EMS are&amp;nbsp;you running?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello Craig! Thanks for your reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes. You were right. I forgot that the default port value will be taken if not specified. I specified the port name under "auto_bind". Now that error was eliminated. This is the log I get now:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[FORCE] 2018-08-24 14:49:53,826 ./wsems: Initializing EMS ....&lt;BR /&gt;[FORCE] 2018-08-24 14:49:53,826 main: Using config file /home/pi/Downloads/microserver/etc/config.json&lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,826 ./wsems: Creating the WsEms proxy.&lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,826 ./wsems: Starting HTTP Server.&lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,827 Main: Using custom certificate and private key for HTTP Server&lt;BR /&gt;[WARN ] 2018-08-24 14:49:53,827 Main: Encryption is disabled on HTTP Server.&lt;BR /&gt;[WARN ] 2018-08-24 14:49:53,827 Main: Authentication is disabled on the HTTP Server.&lt;BR /&gt;[FORCE] 2018-08-24 14:49:53,827 httpServer: &lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,827 ./wsems: Initializing the ThingWorx REST interface.&lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,828 wsEmsProxy::initialize: FIPS is disabled.&lt;BR /&gt;[INFO ] 2018-08-24 14:49:53,828 wsEmsProxy::initialize: Encryption is disabled on Web Socket connection.&lt;BR /&gt;[WARN ] 2018-08-24 20:49:53,829 SDK: SDK Version: 2.1.2&lt;BR /&gt;[WARN ] 2018-08-24 20:49:53,830 SDK: TLS Library: OpenSSL&lt;BR /&gt;[WARN ] 2018-08-24 20:49:53,830 SDK: TLS Library Version: 1.0.2l-fips&lt;BR /&gt;[WARN ] 2018-08-24 20:49:53,830 SDK: FIPS Capable&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:53,830 SDK: twWs_Create: Initializing Websocket Client for &lt;A href="http://www.iotspace.io:80//Thingworx/WS" target="_blank"&gt;www.iotspace.io:80//Thingworx/WS&lt;/A&gt;&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:53,830 SDK: twTlsClient_Create: Initializing TLS Client&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:53,830 httpServer: http server bound to port=8080.&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,866 SDK: twApi_Initialize: Websocket Established after 0 tries&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,866 SDK: subscribedPropsMgr_Initialize: Initializing subscribed properties manager&lt;BR /&gt;[INFO ] 2018-08-24 14:49:54,866 WsProxy::initialize: EMS Version 5.4.2.334&lt;BR /&gt;[INFO ] 2018-08-24 14:49:54,866 WsProxy::initialize: twApi singleton initialized&lt;BR /&gt;[WARN ] 2018-08-24 14:49:54,866 WsProxy::initialize: Certificate validation is disabled.&lt;BR /&gt;[WARN ] 2018-08-24 14:49:54,866 WsProxy::initialize: Self signed certificates are enabled.&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,866 jsonConfigurator::getJsonEntity: Key validation_criteria not found&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,867 jsonConfigurator::getJsonEntity: Parent file not found&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,868 SDK: twTunnelManager_Create: Tunnel Manager singleton already exists&lt;BR /&gt;[ERROR] 2018-08-24 20:49:54,868 SDK: twMap_Add: parse function returned null.&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,867 WsEmsProxy::bindThing: Host specified as 'localhost'. Testing IPV6/IPV4 connectivity&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.iotspace.io:80--&amp;gt;[DEBUG" target="_blank"&gt;www.iotspace.io:80--&amp;gt;[DEBUG&lt;/A&gt;] 2018-08-24 20:49:54,869 SDK: twTlsClient_Create: Initializing TLS Client&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,870 SDK: added PiThing7 to boundList&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,870 SDK: twApi_BindThings: not currently connected, only binding things to api&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,870 SDK: twMessage_Delete: Deleting BIND Message: 1&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,869 jsonConfigurator::getJsonEntity: Parent file not found&lt;BR /&gt;[INFO ] 2018-08-24 14:49:54,870 wsEmsProxy::initialize: Initialization complete!&lt;BR /&gt;[INFO ] 2018-08-24 14:49:54,871 ./wsems: Starting the connection.&lt;BR /&gt;[ERROR] 2018-08-24 20:49:54,872 SDK: twStream_Delete: NULL Pointer passed in&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,872 SDK: twTlsClient_Reconnect: Re-establishing SSL context&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,872 TlsServerStream:: doopen: Setting SO_RCVTIMEO&lt;BR /&gt;[DEBUG] 2018-08-24 14:49:54,873 TlsStream::doclose: Disconeccting socket&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,874 SDK: twTlsClient_Close: Disconnecting from server&lt;BR /&gt;[DEBUG] 24/Aug/2018:20:49:54 [+0600] HTTP Server: 0.0.0.0 - SeqId 2 - "" 400 375 "-"&lt;/P&gt;
&lt;P&gt;[DEBUG] 2018-08-24 20:49:54,874 SDK: twTlsClient_Close: Disconnecting from server&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:54,879 SDK: twTlsClient_Connect: Connecting to server&lt;BR /&gt;[INFO ] 2018-08-24 20:49:55,41 SDK: Server supports websocket extensions: permessage-deflate&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,41 SDK: ws_on_headers_complete: Websocket connected!&lt;BR /&gt;[INFO ] 2018-08-24 20:49:55,41 SDK: twWs_Connect: Websocket connected!&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,41 SDK: twWs_SendMessage: Sent 60 bytes using 1 frames.&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,238 SDK: twMessage_Delete: Deleting RESPONSE Message: 2&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,238 SDK: twMessage_Delete: Deleting AUTH Message: 2&lt;BR /&gt;[WARN ] 2018-08-24 20:49:55,239 SDK: twBindBody_Delete: NULL body or stream pointer&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,239 SDK: twMessage_Delete: Deleting BIND Message: 3&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,239 SDK: sendCtlFrame: &amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; Sending Ping. Msg: 14:49:55&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,239 SDK: twWs_SendMessage: Sent 27 bytes using 1 frames.&lt;BR /&gt;[INFO ] 2018-08-24 14:49:55,273 Main: Succesfully connected. Saving .booted config file&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,405 SDK: twMessage_Delete: Deleting RESPONSE Message: 3&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:55,405 SDK: twMessage_Delete: Deleting BIND Message: 3&lt;BR /&gt;[INFO ] 2018-08-24 20:49:56,695 SDK: api_requesthandler: No handler found. Returning 404&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:56,696 SDK: twMessage_Delete: Deleting RESPONSE Message: 6453&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:56,697 SDK: twWs_SendMessage: Sent 17 bytes using 1 frames.&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:56,697 SDK: twMessage_Delete: Deleting RESPONSE Message: 6453&lt;BR /&gt;[DEBUG] 2018-08-24 20:49:56,697 SDK: twMessage_Delete: Deleting REQUEST Message: 6453&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also my EMS version is 5-4-0-114.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:29:20 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568009#M30605</guid>
      <dc:creator>Gowresh_R</dc:creator>
      <dc:date>2018-08-24T16:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568065#M30608</link>
      <description>&lt;P&gt;Hello Craig! Thank you for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As you pointed out the port 8001 was an issue. Since I did not specify any port value for auto_binding, the default value of 8001 was taken. I changed it to another port and that error was solved.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However executing the luaResource still resulted in the same errors.&lt;/P&gt;
&lt;P&gt;My version of EMS is 5.4.0.&amp;nbsp; I tried the same with 5.4.2 but the results were the same. Somewhere in another post it was recommended to use version 5.3.2. But I was not able to get hold of that version. Could the latest version be causing these errors? With the same versions (5.4.0 and 5.4.2), I have seen people install microserver in a localhost (i.e ws_servers host as local ip address). But to my knowledge no one has installed it in a domain. Could you suggest where I will be able to get 5.3.4 version?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Gowresh&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 07:01:29 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568065#M30608</guid>
      <dc:creator>Gowresh_R</dc:creator>
      <dc:date>2018-08-25T07:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568595#M30683</link>
      <description>&lt;P&gt;My problem was solved. It was a small beginner's mistake. I failed to understand the concept that both the executable (wsems and luaResources) have to be run simultaneously. Running them fixed the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 13:29:42 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568595#M30683</guid>
      <dc:creator>Gowresh_R</dc:creator>
      <dc:date>2018-08-28T13:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error occured while accessing EMS. Checking isConnected. EMS is available: true, online: false</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568697#M30696</link>
      <description>&lt;P&gt;You are very welcome. Glad to hear things are working.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-- Craig A.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 20:39:57 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Error-occured-while-accessing-EMS-Checking-isConnected-EMS-is/m-p/568697#M30696</guid>
      <dc:creator>CRArko</dc:creator>
      <dc:date>2018-08-28T20:39:57Z</dc:date>
    </item>
  </channel>
</rss>

