4 Replies Latest reply on Nov 7, 2016 5:08 PM by deannarob RSS
    deannarob Explorer

    Weird issue with EMS

    I'm trying to run the wsems on a Raspberry Pi with Raspbian OS installed and am running into a weird issue...

    I’ve created a config.json file under /home/pi/microserver/etc using just the basics:

    {

                   "ws_servers":     [{

                                                 "host":  "52.4.2.14",

                                                 "port":   8080

                                  }],

                   "appKey":            "217750a0-050d-46ae-9eb4-a038e81d0f68"

    }

     

    But when I run the wsems, it changes 8080 to 0 and spits this out:

     

    [INFO ] 2016-11-07 15:36:39,542 ./wsems: Using config file: /home/pi/microserver5.3/etc/config.json

    [FORCE] 2016-11-07 15:36:39,543 ./wsems: Starting up ....

    [FORCE] 2016-11-07 15:36:39,545 ./wsems: Initializing EMS ....

    [FORCE] 2016-11-07 15:36:39,547 main: Using config file /home/pi/microserver5.3/etc/config.json

    [ERROR] 2016-11-07 15:36:39,547 SDK: twApi_Initialize: Invalid parameter found

    [ERROR] 2016-11-07 15:36:39,548 WsProxy::initialize: Unable to initialize twApi singleton

    [ERROR] 2016-11-07 15:36:39,549 Main: Could initialize the wsEmsProxy

    [FORCE] 2016-11-07 15:36:39,549 Main: Exiting....

    [FORCE] 2016-11-07 15:36:39,556 httpServer: starting http server port=8000

     

    Also, if I change the rwx permissions of config.json to read only, it complains that it can't write to the file (why would it ever write to this file?):

     

    [INFO ] 2016-11-07 14:49:06,376 ./wsems: Using config file: /home/pi/microserver5.3/etc/config.json

    [FORCE] 2016-11-07 14:49:06,381 ./wsems: Starting up ....

    [FORCE] 2016-11-07 14:49:06,383 ./wsems: Initializing EMS ....

    [FORCE] 2016-11-07 14:49:06,386 main: Using config file /home/pi/microserver5.3/etc/config.json

    [ERROR] 2016-11-07 14:49:06,389 SDK: twApi_Initialize: Invalid parameter found

    [ERROR] 2016-11-07 14:49:06,391 WsProxy::initialize: Unable to initialize twApi singleton

    [ERROR] 2016-11-07 14:49:06,391 Main: Could initialize the wsEmsProxy

    [FORCE] 2016-11-07 14:49:06,392 Main: Exiting....

    [FORCE] 2016-11-07 14:49:06,398 httpServer: starting http server port=8000

    [ERROR] 2016-11-07 14:49:06,487 jsonConfigurator::~jsonConfigurator: Error writing file. Error: Access denied [/home/pi/microserver5.3/etc/config.json]

     

    Does anybody know why this could be happening/how to fix it?