1

When I am trying to open the device management console, it redirect be to the below page and after that nothing would happened when i click on the re-direct button, please suggets, I am using wso2 IOT server 3.0.0 and have started all three modules broker, core and analytics...

enter image description here

With http below logs printed on console.

enter image description here

Community
  • 1
  • 1

2 Answers2

1

This can happen if iot.keymanager.host environment variable is not set properly. By default this is set in wso2server.bat file. Check if it's set properly.

Bee
  • 12,251
  • 11
  • 46
  • 73
  • thanks for the reply, i have checked in versions, 3.0.0, Beta2 and beta this environment variable is set in analytics wso2server.bat file only, shall i need to set it under core module wso2server file also, also one more thing for beta and beta2 version i am able to login on device management console, i am facing this issue with 3.0.0 version only.. – Shamit Jain Feb 01 '17 at 05:13
  • Yes you can add it to other script as well. – Bee Feb 01 '17 at 05:43
  • Hi, I have tried by adding the same, but still getting the same issue, request you to please help. – Shamit Jain Feb 01 '17 at 06:05
  • It should ideally work, but I'm not sure if there are any other issues in beta. Since 3.0.0 GA released now, you can try with that. – Bee Feb 01 '17 at 08:33
  • I have tried with 3.0.0 also getting the error while starting Analytics. [2017-02-01 16:12:27,213] [IoT-Analytics] ERROR {org.wso2.carbon.device.mgt.input.adapter.mqtt.util.MQTTAdapterListener} - error occurred while parsing generating token for the adapter Unexpected character (<) at position 0.[2017-02-01 16:12:27,244] [IoT-Analytics] ERROR {org.wso2.carbon.device.mgt.input.adapter.mqtt.util.MQTTAdapterListener} - MQTT Exception occurred when starting listener Bad user name or password (4) – Shamit Jain Feb 01 '17 at 10:55
  • MQTT error in analytics can pop up if you start the analytics runtime before core. This could happen if you install the sample device types by running the plugins-deployer.xml. When you deploy samples then it starts a listener in analytics which needs to connect to broker. In order to connect it requires core to be up. Either you have to start in the order ->(broker, core, analytics) or ignore the error if it prints "[2017-02-01 17:17:23,590] [IoT-Analytics] INFO {org.wso2.carbon.device.mgt.input.adapter.mqtt.util.MQTTAdapterListener} - MQTT Connection successful" – exterminator Feb 01 '17 at 12:11
1

There is an issue when running on Windows and inorder to make it work, we need to start the server with below command.

wso2server.bat -Diot.analytics.host="localhost" -Diot.analytics.https.port="9445" -Dmqtt.broker.host="localhost" -Dmqtt.broker.port="1886" -Diot.core.host="localhost" -Diot.core.https.port="9443" -Diot.keymanager.host="localhost" -Diot.keymanager.https.port="9443" -Diot.gateway.host="localhost" -Diot.gateway.https.port="8243" -Diot.gateway.http.port="8280"

if you are running the above command in an existing pack that you have already started then you might need to enable UpdateAPI(set true to EnableUpdateApi) property in webapp-publisher-config.xml in core/repository/conf/etc directory.

exterminator
  • 250
  • 4
  • 11
  • Can you please let me know with which OS we need to run this product as of now I am able to login in Device management console with windows OS but getting some other error, able to load the login page but when clicked on device management getting some http 500 error "<" token invalid, and because of this new device enroll link not loaded, I am new to these products, please help. – Shamit Jain Feb 01 '17 at 17:27
  • This works on both linux and windows. But in windows the issue is that the default environment variables was not set. To overcome "http 500 error <" error set set true to EnableUpdateApi property in webapp-publisher-config.xml in core/repository/conf/etc directory and restart. This will republish all the apis again. – exterminator Feb 01 '17 at 19:06
  • one more thing when I am trying to download virtual fire alarm agent I am getting the error in logs stated: [2017-02-06 23:39:08,336] [] ERROR - VirtualFireAlarmServiceImpl Error occurred when trying to read property file sketch.properties org.wso2.carbon.device.mgt.common.DeviceManagementException: Error occurred when trying to read property file sketch.properties at org.wso2.carbon.device.mgt.iot.virtualfirealarm.service.impl.util.ZipUtil.getSketchArchive(ZipUtil.java:199) – Shamit Jain Feb 06 '17 at 18:10
  • Caused by: java.io.IOException: Unable to delete file: D:\iot\wso2\iotserver\wso2iot-3.0.0\wso2iot-3.0.0\core\bin\..\repository\resources\sketches\archives\1huxp5813pffl\virtual_firealarm.jks – Shamit Jain Feb 06 '17 at 18:18
  • when I trying to remove this file manually then getting an error file in use and open in java, and on browser it is showing blank page... – Shamit Jain Feb 06 '17 at 18:20