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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

Issue Learn Path Guide

DiegoTavares
9-Granite

Issue Learn Path Guide

Hello guys,

Let me expose some issue that occurs during learn step on Learn Path module. Exactly in the guide called  “Use the Edge MicroServer (EMS) to Connect to ThingWorx. In this guide the EMS can`t connect to the server. Appear code 201 error.

DiegoTavares_0-1595275047393.png

 

I tried change the log level, changed to DEBUG.

Like this link expose.

https://community.ptc.com/t5/ThingWorx-Developers/ERROR-Connecting-WS-EMS-on-Raspberry-Pi/td-p/569910

 

 

DiegoTavares_1-1595275047423.png

 

Became the same error.

 

I noted a little strange difference between the number of folders that appears in the example…

 

DiegoTavares_2-1595275047448.png

 

Maybe it would be the problem? Or other procedure.

Thanks.

Att. Diego Tavares

ACCEPTED SOLUTION

Accepted Solutions

Hello @slangley 

I´ve concluded this situation with @emoreira, meeting.

He gave me the text complement to put in the config.json file.

And tham it connected successfully.

Let me expose below.

 

{

    "ws_servers": [{

        "host": "xxxxxx",

        "port": 8080

    }],

    "appKey": "xxxxxx",

    "logger": {

        "level":             "DEBUG",

        "publish_directory": "C:\\CDEMO_EMS\\logs",

        "publish_level":     "DEBUG",

        "max_file_storage":  2000000,

        "auto_flush":        true

    },

    "http_server":  {

        "ssl": false,

        "authenticate": false

    },

    "ws_connection": {

        "encryption": "none"

    },

    "certificates": {

        "validate": false,

"allow_self_signed": true

    },

    "tunnel": {

        "buffer_size":    8192, 

        "read_timeout":   10, 

        "idle_timeout":   300000,

        "max_concurrent": 4

    },

    "file": {

        "buffer_size": 8192,

        "max_file_size": 8000000000, 

        "virtual_dirs": [  

            {"other":   "C:\\CDEMO_EMS\\other"},

            {"tw":      "C:\\CDEMO_EMS\\tw"},    

            {"updates": "C:\\CDEMO_EMS\\updates"}          

        ],

        "staging_dir":  "C:\\CDEMO_EMS\\staging"

    }  

}

 

 

We had diferences on logger level,  port and certificates.

Thanks for atenption!

Hugs,

Diego Tavares

 

 

 

View solution in original post

4 REPLIES 4
slangley
23-Emerald II
(To:DiegoTavares)

Hi @DiegoTavares.

 

I have notified the team responsible for the creation of the guide.  In the meantime, I will try to investigate for addressing the issue you encountered.

 

Regards.

 

--Sharon

slangley
23-Emerald II
(To:DiegoTavares)

Hi @DiegoTavares.

 

Which version of the EMS are you using?

 

Regards

 

--Sharon

Hello @slangley 

I´ve concluded this situation with @emoreira, meeting.

He gave me the text complement to put in the config.json file.

And tham it connected successfully.

Let me expose below.

 

{

    "ws_servers": [{

        "host": "xxxxxx",

        "port": 8080

    }],

    "appKey": "xxxxxx",

    "logger": {

        "level":             "DEBUG",

        "publish_directory": "C:\\CDEMO_EMS\\logs",

        "publish_level":     "DEBUG",

        "max_file_storage":  2000000,

        "auto_flush":        true

    },

    "http_server":  {

        "ssl": false,

        "authenticate": false

    },

    "ws_connection": {

        "encryption": "none"

    },

    "certificates": {

        "validate": false,

"allow_self_signed": true

    },

    "tunnel": {

        "buffer_size":    8192, 

        "read_timeout":   10, 

        "idle_timeout":   300000,

        "max_concurrent": 4

    },

    "file": {

        "buffer_size": 8192,

        "max_file_size": 8000000000, 

        "virtual_dirs": [  

            {"other":   "C:\\CDEMO_EMS\\other"},

            {"tw":      "C:\\CDEMO_EMS\\tw"},    

            {"updates": "C:\\CDEMO_EMS\\updates"}          

        ],

        "staging_dir":  "C:\\CDEMO_EMS\\staging"

    }  

}

 

 

We had diferences on logger level,  port and certificates.

Thanks for atenption!

Hugs,

Diego Tavares

 

 

 

slangley
23-Emerald II
(To:slangley)

Hi @DiegoTavares.

 

I'm happy to hear you found a solution, and thank you for sharing it with the community!

 

Regards.

 

--Sharon

Announcements


Top Tags