I have a bug report for Iotivity - should I ask for help here? Or perhaps post this on the JIRA?
# Possible Bug in Iotivity Cloud Client ## The problem Iotivity cloud sample client `aircon_controlee` fails to connect to the OCF servers in TLS mode. Client aborts with a core dump. Following the steps roughly from here - https://wiki.iotivity.org/iotivity_cloud_-_programming_guide ## System information - * OS - Ubuntu 16.04 LTS 64bit * GCC Version - (Ubuntu 5.4.0-6ubuntu1~16.04.5) 5.4.0 20160609 * git remote - https://gerrit.iotivity.org/gerrit/p/iotivity.git * git branch - 1.3-rel * git commit md5 - 630bb71 Prepare for scons3: change prints and more * Mongodb is installed and running with default settings. * Zookeeper service is running with default settings. ## Steps to reproduce - ### Step 1. Build the servers ```bash cd cloud/ cd ./stack/ mvn install -Dmaven.test.skip=true cd ../resourcedirectory/ mvn install -Dmaven.test.skip=true cd ../account/ mvn install -Dmaven.test.skip=true cd ../messagequeue/ mvn install -Dmaven.test.skip=true cd ../interface/ mvn install -Dmaven.test.skip=true ``` ### Step 2. Start background servers 1. Mongodb is installed and running on all defaults. 1. Zookeeper is installed and running on all defaults. 1. Kafka is running with the `server.properties` file in `cloud/messagequeue/` ### Step 3. Start all the cloud servers ```bash cd ./resourcedirectory java -jar ./target/CloudResourceDirectory-0.0.1-SNAPSHOT.jar 5684 127.0.0.1 27017 1 cd ../ cd ./account java -jar -Xms2G -Xmx2G ./target/CloudAccount-0.0.1-SNAPSHOT.jar 5685 127.0.0.1 27017 1 cd ../ cd ./messagequeue java -jar ./target/CloudMessageQueue-0.0.1-SNAPSHOT.jar 5686 127.0.1 2181 127.0.0.1 9092 1 cd ../ cd ./interface sudo java -Xms2G -Xmx2G -jar ./target/CloudInterface-0.0.1-SNAPSHOT.jar 5683 127.0.0.1 5684 127.0.0.1 5685 127.0.0.1 5686 80 8000 1 cd ../ ``` ### Step 4 Build the client Build client with this ```bash scons --config=force WITH_TCP=yes RELEASE=yes TARGET_TRANSPORT=IP WITH_CLOUD=yes WITH_SAMPLES=YES WITH_MQ=PUB,SUB SECURED=1 LOGGING=true LOG_LEVEL=DEBUG ``` (building this instead of `scons cloud` as `scons cloud` does not seem to build the `aircon_controlee` binary. ) ### Step 5 Run the client ```bash cd out/linux/x86_64/release/cloud/samples/client/ ./aircon_controlee 127.0.0.1:5683 github <github oauth token>` ``` ## Expected Output Client connects to the OCF servers. ## Actual Output Client fails to connect to the servers and is aborted (core dumped). Logs show the TLS handshake failed, with client's mbedTLS reporting an error `"got no CA chain"` (See the attached "aircon_controlee.log"). Interface server's logs show the client connects, and instantly disconnects. All other servers' logs show no activity. All logs are attached.
accountserver.log
Description: Binary data
aircon_controlee.log
Description: Binary data
interfaceserver.log
Description: Binary data
messagequeueserver.log
Description: Binary data
resourceserver.log
Description: Binary data
_______________________________________________ iotivity-dev mailing list iotivity-dev@lists.iotivity.org https://lists.iotivity.org/mailman/listinfo/iotivity-dev