Start a topic
Search
LogIn
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Please log in to access translation
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
Close X

ThingWorx Navigate is now Windchill Navigate Learn More

  • Community
  • ThingWorx
  • ThingWorx Developers
  • Error opening non-TLS socket[localhost:8001]
Translate the entire conversation x
Please log in to access translation
Options
  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page

Error opening non-TLS socket[localhost:8001]

gquiroga
gquiroga 12-Amethyst
12-Amethyst
‎May 31, 2018 03:30 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Notify Moderator
Please log in to access translation
‎May 31, 2018 03:30 PM

Error opening non-TLS socket[localhost:8001]

When running wsems I get the following errors:

UnencryptedClientStream::doopen:Error opening socket. Error: 111

 

HttpClient::initialize: Exception while opening connection request to localhost. Error: Error opening non-TLS socket [localhost:8001]

 

 

Labels:
  • Labels:
  • Connectivity
  • Troubleshooting
  • Tags:
  • ems
  • Thingworx Edge Micro Server
  • Thingworx EMS
0 Kudos
Reply
Notify Moderator
  • All forum topics
  • Previous Topic
  • Next Topic
3 REPLIES 3
smanley
smanley 14-Alexandrite
14-Alexandrite
(To:gquiroga)
‎May 31, 2018 04:29 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Notify Moderator
Please log in to access translation
‎May 31, 2018 04:29 PM

Are you using a self signed certificate to connect the WSEMS? We have an article that may help you resolve the issue. 

EMS and LSR are unable make a connection to SSL enabled ThingWorx server using EMS 5.4.0

 

  • Below are the sample config.json and config.lua that will work for a server with self signed certificate
  • Please find detailed explanation with examples from the Edge Help Center

WS EMS - Config.json

"http_server": {
"host": "localhost",
"port": 8000,
"ssl": true,
"authenticate": false,
"use_default_certificate" : true
},
"certificates": {
"validate": false,
"allow_self_signed": true
}


LSR - config.lua

-- EMS Connection Configuration
scripts.rap_host = "localhost"
scripts.rap_port = 8000

-- EMS Connection TLS Configuration
scripts.rap_ssl = true
scripts.rap_deny_selfsigned = false
scripts.rap_validate = false

-- EMS Connection Authentication
-- Configuration
scripts.rap_server_authenticate = false

-- HTTP Server Configuration
scripts.script_resource_host = "localhost"
scripts.script_resource_port = 8001

-- HTTP Server TLS Configuration
scripts.script_resource_ssl = true
scripts.script_resource_use_default_certificate = true

-- HTTP Server Authentication
-- Configuration
scripts.script_resource_authenticate = false
PTC
0 Kudos
Reply
Notify Moderator
gquiroga
gquiroga 12-Amethyst
12-Amethyst
(To:smanley)
‎May 31, 2018 04:44 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Notify Moderator
Please log in to access translation
‎May 31, 2018 04:44 PM

Hi smanley,

 

That is the configuration I've got on both the config.json and the config.lua files. 

When I try to run the LSR it get's stucked on "Initializing TLS Client" even if SSL is deactivated.

0 Kudos
Reply
Notify Moderator
ShravanS
ShravanS 6-Contributor
6-Contributor
(To:gquiroga)
‎Sep 10, 2018 05:43 PM
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Notify Moderator
Please log in to access translation
‎Sep 10, 2018 05:43 PM

Hi gquiroga,

Did you get it working? I am facing the same issue here

0 Kudos
Reply
Notify Moderator
Announcements










Contact Community Management
Top Tags
About
PTC.com Products & Solutions Contact
Resources
My PTC - Support PTC University Help Center - Product Guides Product Documentation Success Paths - Planning &
Implementation Guides
Other PTC Communities
Onshape PTC user
Terms of Service Privacy Policy
facebook twitter linkedin youtube
Powered by Khoros