Replies: 2 comments
-
Even when running device-bacnet-c I'm getting the same error: mpunix@LIN-MP22QN1X:~/edgex-foundry/edgex-device-sdk-c/device-bacnet-c-3.0.1/build/release/device-bacnet-ip$ ./device-bacnet-c -cp=consul.http://localhost:8500 -r -cd /home/mpunix/edgex-foundry/edgex-device-sdk-c/device-bacnet-c-3.0.1/res
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="iot_threadpool_alloc (threads: 8 max_jobs: 0 default_priority: -1 affinity: -1)"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="iot_scheduler_alloc (priority: -1 affinity: -1)"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Found registry service at consul.http://localhost:8500"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Unable to get configuration from registry."
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Will load from file."
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Setting LogLevel to TRACE"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Uploading configuration to registry."
level=DEBUG ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="HTTP response: 404"
level=TRACE ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="GET to http://localhost:8500/v1/kv/edgex/v3/device-bacnet-ip/Writable?recurse=true returns 404 (no data)"
level=TRACE ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="GET to http://localhost:8500/v1/catalog/service/core-metadata returns 200, data [{"ID":"6a6d8d14-7b3c-389c-25a9-448ab36beb8b","Node":"edgex-core-consul","Address":"172.18.0.4","Datacenter":"dc1","TaggedAddresses":{"lan":"172.18.0.4","lan_ipv4":"172.18.0.4","wan":"172.18.0.4","wan_ipv4":"172.18.0.4"},"NodeMeta":{"consul-network-segment":"","consul-version":"1.16.6"},"ServiceKind":"","ServiceID":"core-metadata","ServiceName":"core-metadata","ServiceTags":[],"ServiceAddress":"edgex-core-metadata","ServiceWeights":{"Passing":1,"Warning":1},"ServiceMeta":{},"ServicePort":59881,"ServiceSocketPath":"","ServiceEnableTagOverride":false,"ServiceProxy":{"Mode":"","MeshGateway":{},"Expose":{}},"ServiceConnect":{},"ServiceLocality":null,"CreateIndex":210,"ModifyIndex":210}]"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Starting device-bacnet-ip device service, version 3.0.1"
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="EdgeX device SDK for C, version 3.0.1"
...
...
level=INFO ts=2024-08-17T09:52:57Z app=device-bacnet-ip msg="Message Bus is set to Redis streams at localhost:6379"
level=TRACE ts=2024-08-17T09:53:02Z app=device-bacnet-ip msg="GET to http://localhost:8500/v1/kv/edgex/v3/device-bacnet-ip/Writable?recurse=true&index=246 returns 200, data [{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/DataTransform","Flags":0,"Value":"dHJ1ZQ==","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/Discovery/Enabled","Flags":0,"Value":"dHJ1ZQ==","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/Discovery/Interval","Flags":0,"Value":"MA==","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/MaxCmdOps","Flags":0,"Value":"MA==","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/MaxEventSize","Flags":0,"Value":"MA==","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacnet-ip/Writable/Device/UpdateLastConnected","Flags":0,"Value":"ZmFsc2U=","CreateIndex":303,"ModifyIndex":303},{"LockIndex":0,"Key":"edgex/v3/device-bacne"
level=INFO ts=2024-08-17T09:53:02Z app=device-bacnet-ip msg="Reconfiguring"
level=ERROR ts=2024-08-17T09:53:15Z app=device-bacnet-ip msg="Curl failed with code 6 (Couldn't resolve host name)"
level=TRACE ts=2024-08-17T09:53:15Z app=device-bacnet-ip msg="GET to http://edgex-core-metadata:59881/api/v3/ping returns 0 (no data)"
level=ERROR ts=2024-08-17T09:53:25Z app=device-bacnet-ip msg="Curl failed with code 6 (Couldn't resolve host name)"
level=TRACE ts=2024-08-17T09:53:25Z app=device-bacnet-ip msg="GET to http://edgex-core-metadata:59881/api/v3/ping returns 0 (no data)"
level=ERROR ts=2024-08-17T09:53:35Z app=device-bacnet-ip msg="Curl failed with code 6 (Couldn't resolve host name)"
level=TRACE ts=2024-08-17T09:53:35Z app=device-bacnet-ip msg="GET to http://edgex-core-metadata:59881/api/v3/ping returns 0 (no data)" Please note I'm trying to run it in hybrid mode with my docker-compose.yml file, |
Beta Was this translation helpful? Give feedback.
0 replies
-
I Have modified # GET command to edgex-core-metadata returns 200 in response
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="GET to http://edgex-core-metadata:59881/api/v3/provisionwatcher/service/name/device-random returns 200, data {"apiVersion":"v3","statusCode":200,"totalCount":0,"provisionWatchers":[]}
"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="iot_scheduler_start"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Running schedule #0 from threadpool"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="iot_threadpool_try_work"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Added new job #0"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Re-queue repeating schedule #0"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Running schedule #1 from threadpool"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="iot_threadpool_try_work"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 7 processing job 0"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Added new job #1"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Re-queue repeating schedule #1"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 0 processing job 1"
level=INFO ts=2024-08-20T07:28:29Z app=device-random correlation-id=9bfbbad6-aabc-4014-bc0c-d6023f2eb0db msg="AutoEvent: Windmill-device/SensorOne"
level=INFO ts=2024-08-20T07:28:29Z app=device-random correlation-id=74a64e69-ed0c-4500-80a4-ec730d3c700b msg="AutoEvent: Windmill-device/SensorTwo"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 0 completed job 1"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 0 waiting for new job"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 7 completed job 0"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="Thread 7 waiting for new job"
level=TRACE ts=2024-08-20T07:28:29Z app=device-random msg="iot_schedule_create #2 (period: 30000000000 repeat: 0 delay: 0)" Discussion will be continued in : https://github.com/orgs/edgexfoundry/discussions/305 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
[ Issue ]:
From https://github.com/edgexfoundry/device-sdk-c/tree/b5fd43aa6b4e8069e65248caa2e7d6db03f961ef/src/c/examples/random
I have cloned it to my local machine and built it, build was sucessful.
I'm running hybrid mode with the device-random service, I executed
./device-random -cp=consul.http://localhost:8500 -r -o
but encountered the following error:From the directory where I'm running compose file, core-metadata is running:
device-random logs:
Please help on this !
Beta Was this translation helpful? Give feedback.
All reactions