3 modules have errors but no trace errors shown within hours

Takahiro Tsuji 1 Reputation point
2022-02-16T02:11:59.557+00:00

I have been struggling to reproduce the scenario of the git repo in order to capture the image from my USB camera and classify the images.
But I have been facing the problem with modules. All three modules have errors.

steps to reproduce

  1. Clone the repo.
    https://github.com/Azure-Samples/Custom-vision-service-iot-edge-raspberry-pi/
  2. Update .env file with my container registry.
  3. Build the entire solution by right-clicking on the deployment.template.json file
  4. Building process built for bullseye OS environment. It failed because of import error.
    4.1. I searched the image for my stretch version and changed from balenalib/raspberrypi3-debian-python:3.7 to balenalib/raspberrypi3-debian:stretch but building failed because default python version is 3.5.3.
    4.2. I changed the image to balenalib/raspberrypi3-debian-python:3.7-stretch.
    but building failed with the import error libhdf5.so:103.
    4.3 I added libhdf5-100 to install list of CameraCapture and changed to azure-iot-device in requirement.txt of SenseHatDisplay.
    4.4. built and pushed.
  5. Right-click on the config/deployment.json.
  6. After successful deployment, attach your USB camera to Raspberry Pi 3's hub.
  7. Check the camera status by v4l2-ctl --list-devices and check the camera image by an application.
  8. Open your IoT hub in Azure Portal and check camera-capture, sensehat-display, image-classifier-service.
  9. I tried with libhdf5-100 and python-h5py but no progress.
  10. I already submitted an issue at that git repo but no response yet.
  11. Last week I changed balena image version to Python3.5 and other errors appeared.
  12. On 21st AM I changed again to Python3.7 but build log includes 6 "load metadata" lines and one is the following:
    "load metadata for docker.io/balenalib/raspberrypi3-debian-python:3.5-stretch"
    build messages includes File "/usr/local/lib/python3.5/site-packages/cv2/init.py".
    This message was left when I missed to clear.
  13. PM I corrected numpy version no. and re-built and pushed the images and now no trace messages appear even if those 3 modules have error signal.
  14. I noticed the modules are not restarted and restarted them and found trace errors.
  15. On 23rd trace errors changed to ones with python3.7 and little change of error message appeared.
  16. On 23rd I changed installation list for trace issues
  17. On 24th restarted raspbian stretch and checked the status on Azure Portal. But I cannot find any trace errors.

Any log messages given by the failure on 24th the following are old

  1. camera-capture
    Traceback (most recent call last):
    File "./main.py", line 19, in <module>
    import CameraCapture
    File "/CameraCapture.py", line 10, in <module>
    import cv2
    File "/usr/local/lib/python3.7/site-packages/cv2/init.py", line 3, in <module>
    from .cv2 import *
    ImportError:
  2. sensehat-display
    Traceback (most recent call last):
    File "./main.py", line 9, in <module>
    import iothub_client
    ImportError: No module named 'iothub_client'
  3. image-classifier-service
    Traceback (most recent call last):
    File "app.py", line 13, in <module>
    from predict import initialize, predict_image, predict_url
    File "/app/predict.py", line 5, in <module>
    import tensorflow as tf
    File "/usr/local/lib/python3.5/site-packages/tensorflow/init.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
    File "/usr/local/lib/python3.5/site-packages/tensorflow/python/init.py", line 47, in <module>
    import numpy as np
    File "/usr/local/lib/python3.5/site-packages/numpy/init.py", line 150, in <module>
    from . import random
    File "/usr/local/lib/python3.5/site-packages/numpy/random/init.py", line 143, in <module>
    from .mtrand import *
    ImportError: /usr/local/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: PyFPE_jbufTraceback (most recent call last):
    File "app.py", line 13, in <module>
    from predict import initialize, predict_image, predict_url
    File "/app/predict.py", line 5, in <module>
    import tensorflow as tf
    File "/usr/local/lib/python3.5/site-packages/tensorflow/init.py", line 24, in <module>
    from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
    File "/usr/local/lib/python3.5/site-packages/tensorflow/python/init.py", line 47, in <module>
    import numpy as np
    File "/usr/local/lib/python3.5/site-packages/numpy/init.py", line 150, in <module>
    from . import random
    File "/usr/local/lib/python3.5/site-packages/numpy/random/init.py", line 143, in <module>
    from .mtrand import *
    ImportError: /usr/local/lib/python3.5/site-packages/numpy/random/mtrand.cpython-35m-arm-linux-gnueabihf.so: undefined symbol: PyFPE_jbuf

On 21st PM there are error messages for 3 modules

EgeAgent log

<6> 2022-02-21 04:41:42.256 +00:00 [INF] - Experimental features configuration: {"Enabled":false,"DisableCloudSubscriptions":false}
<6> 2022-02-21 04:41:43.054 +00:00 [INF] - Installing certificates [CN=iotedged workload ca c:04/28/2022 00:05:47] to Root
<6> 2022-02-21 04:41:43.855 +00:00 [INF] - Starting metrics listener on Host: *, Port: 9600, Suffix: /metrics
<6> 2022-02-21 04:41:44.733 +00:00 [INF] - Updating performance metrics every 05m:00s
<6> 2022-02-21 04:41:44.768 +00:00 [INF] - Started operation Get system resources
<6> 2022-02-21 04:41:44.777 +00:00 [INF] - Collecting metadata metrics
<6> 2022-02-21 04:41:45.135 +00:00 [INF] - Set metadata metrics: 1.0.10.4.37804714 (57772714c81c8b823a5ef05bf11bf343b923fb6a), {"Enabled":false,"DisableCloudSubscriptions":false}, {"OperatingSystemType":"linux","Architecture":"armv7l","Version":"1.2.7","Provisioning":{"Type":"ProvisioningType","DynamicReprovisioning":false,"AlwaysReprovisionOnStartup":false},"ServerVersion":"3.0.13+azure","KernelVersion":"4.9.35-v7+","OperatingSystem":"Raspbian GNU/Linux 9 (stretch)","NumCpus":4,"Virtualized":"no"}, True
<6> 2022-02-21 04:41:45.263 +00:00 [INF] - Started operation Checkpoint Availability
<6> 2022-02-21 04:41:45.305 +00:00 [INF] - Started operation refresh twin config
<6> 2022-02-21 04:41:45.404 +00:00 [INF] - Edge agent attempting to connect to IoT Hub via Amqp_Tcp_Only...
<6> 2022-02-21 04:41:47.494 +00:00 [INF] - Created persistent store at /tmp/edgeAgent
<6> 2022-02-21 04:41:47.924 +00:00 [INF] - Started operation Metrics Scrape
<6> 2022-02-21 04:41:47.925 +00:00 [INF] - Started operation Metrics Upload
Scraping frequency: 01:00:00
Upload Frequency: 1.00:00:00
<6> 2022-02-21 04:41:49.369 +00:00 [INF] - Registering request handler UploadModuleLogs
<6> 2022-02-21 04:41:49.370 +00:00 [INF] - Registering request handler GetModuleLogs
<6> 2022-02-21 04:41:49.371 +00:00 [INF] - Registering request handler UploadSupportBundle
<6> 2022-02-21 04:41:49.372 +00:00 [INF] - Registering request handler RestartModule
<6> 2022-02-21 04:41:49.637 +00:00 [INF] - Edge agent connected to IoT Hub via Amqp_Tcp_Only.
<6> 2022-02-21 04:41:50.098 +00:00 [INF] - Initialized new module client with subscriptions enabled
<6> 2022-02-21 04:41:50.369 +00:00 [INF] - Obtained Edge agent twin from IoTHub with desired properties version 23 and reported properties version 681.
<6> 2022-02-21 04:41:51.921 +00:00 [INF] - Plan execution started for deployment 23
<6> 2022-02-21 04:41:51.936 +00:00 [INF] - Executing command: "Command Group: (\n [Stop module edgeHub]\n [Start module edgeHub]\n [Saving edgeHub to store]\n)"
<6> 2022-02-21 04:41:51.960 +00:00 [INF] - Executing command: "Stop module edgeHub"
<6> 2022-02-21 04:41:52.069 +00:00 [INF] - Executing command: "Start module edgeHub"
<6> 2022-02-21 04:41:53.968 +00:00 [INF] - Executing command: "Saving edgeHub to store"
<6> 2022-02-21 04:41:54.000 +00:00 [INF] - Plan execution ended for deployment 23
<6> 2022-02-21 04:41:54.601 +00:00 [INF] - Updated reported properties
<6> 2022-02-21 04:41:59.916 +00:00 [INF] - Updated reported properties
<6> 2022-02-21 04:42:25.530 +00:00 [INF] - Received direct method call - ping
<6> 2022-02-21 04:42:25.541 +00:00 [INF] - Received request ping with payload
<6> 2022-02-21 04:42:25.557 +00:00 [INF] - Successfully handled request ping
<6> 2022-02-21 04:42:25.738 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:25.739 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:25.885 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bcamera-capture\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:26.045 +00:00 [INF] - Initiating streaming logs for camera-capture
<6> 2022-02-21 04:42:26.934 +00:00 [INF] - Received 20 bytes of logs for camera-capture
<6> 2022-02-21 04:42:26.966 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:40.712 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:40.716 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:40.724 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bsensehat-display\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:40.832 +00:00 [INF] - Initiating streaming logs for sensehat-display
<6> 2022-02-21 04:42:40.862 +00:00 [INF] - Received 20 bytes of logs for sensehat-display
<6> 2022-02-21 04:42:40.863 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:45.028 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:45.030 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:45.057 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bimage-classifier-service\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:45.147 +00:00 [INF] - Initiating streaming logs for image-classifier-service
<6> 2022-02-21 04:42:45.174 +00:00 [INF] - Received 20 bytes of logs for image-classifier-service
<6> 2022-02-21 04:42:45.175 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:46.776 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:46.777 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:46.780 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bimage-classifier-service\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:46.858 +00:00 [INF] - Initiating streaming logs for image-classifier-service
<6> 2022-02-21 04:42:46.920 +00:00 [INF] - Received 20 bytes of logs for image-classifier-service
<6> 2022-02-21 04:42:46.922 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:47.951 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:47.953 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:47.956 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bimage-classifier-service\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:48.061 +00:00 [INF] - Initiating streaming logs for image-classifier-service
<6> 2022-02-21 04:42:48.088 +00:00 [INF] - Received 20 bytes of logs for image-classifier-service
<6> 2022-02-21 04:42:48.089 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:49.081 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:49.083 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:49.087 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bimage-classifier-service\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:49.190 +00:00 [INF] - Initiating streaming logs for image-classifier-service
<6> 2022-02-21 04:42:49.238 +00:00 [INF] - Received 20 bytes of logs for image-classifier-service
<6> 2022-02-21 04:42:49.239 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:52.816 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:52.818 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:52.821 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bcamera-capture\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:52.934 +00:00 [INF] - Initiating streaming logs for camera-capture
<6> 2022-02-21 04:42:52.987 +00:00 [INF] - Received 20 bytes of logs for camera-capture
<6> 2022-02-21 04:42:52.989 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:42:59.444 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:42:59.445 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:42:59.446 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bedgeAgent\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:42:59.500 +00:00 [INF] - Initiating streaming logs for edgeAgent
<6> 2022-02-21 04:42:59.866 +00:00 [INF] - Received 4882 bytes of logs for edgeAgent
<6> 2022-02-21 04:42:59.867 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:44:00.994 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:44:00.996 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:44:00.998 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bedgeHub\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}
<6> 2022-02-21 04:44:01.091 +00:00 [INF] - Initiating streaming logs for edgeHub
<6> 2022-02-21 04:44:01.339 +00:00 [INF] - Received 3318 bytes of logs for edgeHub
<6> 2022-02-21 04:44:01.340 +00:00 [INF] - Successfully handled request GetModuleLogs
<6> 2022-02-21 04:51:57.746 +00:00 [INF] - HealthRestartPlanner is clearing restart stats for module 'edgeHub' as it has been running healthy for 00:10:00.
<6> 2022-02-21 04:51:57.746 +00:00 [INF] - Plan execution started for deployment 23
<6> 2022-02-21 04:51:57.749 +00:00 [INF] - Executing command: "Saving edgeHub to store"
<6> 2022-02-21 04:51:57.760 +00:00 [INF] - Plan execution ended for deployment 23
<6> 2022-02-21 04:52:03.156 +00:00 [INF] - Updated reported properties
<6> 2022-02-21 04:53:05.838 +00:00 [INF] - Received direct method call - GetModuleLogs
<6> 2022-02-21 04:53:05.839 +00:00 [INF] - Received request GetModuleLogs with payload
<6> 2022-02-21 04:53:05.841 +00:00 [INF] - Processing request to get logs for {"schemaVersion":"1.0","items":{"id":"\bedgeAgent\b","filter":{"tail":1500,"since":"15m","until":null,"loglevel":null,"regex":""}},"encoding":1,"contentType":1}

EdgeHub log

<6> 2022-02-21 04:42:05.376 +00:00 [INF] - Version - 1.0.10.4.37804714 (57772714c81c8b823a5ef05bf11bf343b923fb6a)
<6> 2022-02-21 04:42:05.376 +00:00 [INF] - OptimizeForPerformance=False
<6> 2022-02-21 04:42:05.377 +00:00 [INF] - MessageAckTimeoutSecs=30
<6> 2022-02-21 04:42:05.381 +00:00 [INF] - Loaded server certificate with expiration date of "2022-03-23T04:41:59.0000000+00:00"
<6> 2022-02-21 04:42:05.441 +00:00 [INF] - Using Asp Net server for metrics
<6> 2022-02-21 04:42:05.790 +00:00 [INF] - Created new message store
<6> 2022-02-21 04:42:05.793 +00:00 [INF] - Started task to cleanup processed and stale messages
<6> 2022-02-21 04:42:06.207 +00:00 [INF] - Created DeviceConnectivityManager with connected check frequency 00:05:00 and disconnected check frequency 00:02:00
<6> 2022-02-21 04:42:06.756 +00:00 [INF] - Created device scope identities cache
<6> 2022-02-21 04:42:06.787 +00:00 [INF] - Starting refresh of device scope identities cache
<6> 2022-02-21 04:42:06.849 +00:00 [INF] - Initialized storing twin manager
<6> 2022-02-21 04:42:06.888 +00:00 [INF] - Initializing configuration
<6> 2022-02-21 04:42:06.972 +00:00 [INF] - New device connection for device c/$edgeHub
<6> 2022-02-21 04:42:07.036 +00:00 [INF] - Client c/$edgeHub connected to edgeHub, processing existing subscriptions.
<6> 2022-02-21 04:42:07.298 +00:00 [INF] - Attempting to connect to IoT Hub for client c/$edgeHub via AMQP...
<6> 2022-02-21 04:42:07.429 +00:00 [INF] - Processing pending subscriptions for c/$edgeHub
<6> 2022-02-21 04:42:10.893 +00:00 [INF] - Created cloud endpoint iothub with max batch size 10 and fan-out factor of 10.
<6> 2022-02-21 04:42:11.457 +00:00 [INF] - Exiting disconnected state
<6> 2022-02-21 04:42:11.610 +00:00 [INF] - Received device connected callback
<6> 2022-02-21 04:42:11.641 +00:00 [INF] - Device connected to cloud, processing subscriptions for connected clients.
<6> 2022-02-21 04:42:11.650 +00:00 [INF] - Processing subscriptions for client c/$edgeHub on device connected to cloud.
<6> 2022-02-21 04:42:11.651 +00:00 [INF] - Skipping c/$edgeHub for subscription processing, as it is currently being processed.
<6> 2022-02-21 04:42:11.700 +00:00 [INF] - Entering connected state
<6> 2022-02-21 04:42:11.718 +00:00 [INF] - Cloud connection for c/$edgeHub is True
<6> 2022-02-21 04:42:11.737 +00:00 [INF] - Connection status for c/$edgeHub changed to ConnectionEstablished
<6> 2022-02-21 04:42:11.744 +00:00 [INF] - Client c/$edgeHub connected to cloud, processing existing subscriptions.
<6> 2022-02-21 04:42:11.745 +00:00 [INF] - Skipping c/$edgeHub for subscription processing, as it is currently being processed.
<6> 2022-02-21 04:42:11.758 +00:00 [INF] - Created cloud proxy for client c/$edgeHub via AMQP, with client operation timeout 20 seconds.
<6> 2022-02-21 04:42:11.782 +00:00 [INF] - Initialized cloud proxy d698b6eb-4f3c-431d-aedd-bb5e3d49ef71 for c/$edgeHub
<6> 2022-02-21 04:42:11.792 +00:00 [INF] - Created cloud connection for client c/$edgeHub
<6> 2022-02-21 04:42:12.343 +00:00 [INF] - Set the following 3 route(s) in edge hub
<6> 2022-02-21 04:42:12.343 +00:00 [INF] - CameraCaptureToSenseHatDisplay: FROM /messages/modules/camera-capture/outputs/output1 INTO BrokeredEndpoint("/modules/sensehat-display/inputs/input1")
<6> 2022-02-21 04:42:12.344 +00:00 [INF] - CameraCaptureToIoTHub: FROM /messages/modules/camera-capture/outputs/output1 INTO $upstream
<6> 2022-02-21 04:42:12.344 +00:00 [INF] - CameraCaptureGAToIoTHub: FROM /messages/modules/CameraCaptureGA/outputs/* INTO $upstream
<6> 2022-02-21 04:42:12.352 +00:00 [INF] - Updated message store TTL to 7200 seconds
<6> 2022-02-21 04:42:12.355 +00:00 [INF] - Updated the edge hub store and forward configuration
<6> 2022-02-21 04:42:12.668 +00:00 [INF] - Started operation Get EdgeHub config
<6> 2022-02-21 04:42:12.670 +00:00 [INF] - Initialized edge hub configuration
<6> 2022-02-21 04:42:12.711 +00:00 [INF] - Starting timer to authenticate connections with a period of 300 seconds
<6> 2022-02-21 04:42:12.828 +00:00 [INF] - Updated reported properties for c/$edgeHub
<6> 2022-02-21 04:42:12.894 +00:00 [INF] - Processing pending subscriptions for c/$edgeHub
<6> 2022-02-21 04:42:13.125 +00:00 [INF] - Scheduling server certificate renewal for "2022-03-23T04:39:29.0007126Z".
<6> 2022-02-21 04:42:13.131 +00:00 [INF] - Starting protocol heads - (MQTT, AMQP, HTTP)
<6> 2022-02-21 04:42:13.518 +00:00 [INF] - Starting MQTT head
<6> 2022-02-21 04:42:13.849 +00:00 [INF] - Initializing TLS endpoint on port 8883 for MQTT head.
<6> 2022-02-21 04:42:14.287 +00:00 [INF] - Starting AMQP head
<6> 2022-02-21 04:42:14.322 +00:00 [INF] - Started MQTT head
<6> 2022-02-21 04:42:14.494 +00:00 [INF] - Obtained edge hub config from module twin
<6> 2022-02-21 04:42:14.652 +00:00 [INF] - Set the following 3 route(s) in edge hub
<6> 2022-02-21 04:42:14.652 +00:00 [INF] - CameraCaptureToSenseHatDisplay: FROM /messages/modules/camera-capture/outputs/output1 INTO BrokeredEndpoint("/modules/sensehat-display/inputs/input1")
<6> 2022-02-21 04:42:14.652 +00:00 [INF] - CameraCaptureToIoTHub: FROM /messages/modules/camera-capture/outputs/output1 INTO $upstream
<6> 2022-02-21 04:42:14.653 +00:00 [INF] - CameraCaptureGAToIoTHub: FROM /messages/modules/CameraCaptureGA/outputs/* INTO $upstream
<6> 2022-02-21 04:42:14.653 +00:00 [INF] - Updated message store TTL to 7200 seconds
<6> 2022-02-21 04:42:14.653 +00:00 [INF] - Updated the edge hub store and forward configuration
<6> 2022-02-21 04:42:14.764 +00:00 [INF] - Started AMQP head
<6> 2022-02-21 04:42:14.771 +00:00 [INF] - Starting HTTP head
<4> 2022-02-21 04:42:17.228 +00:00 [WRN] - Overriding address(es) '"http://+:80"'. Binding to endpoints defined in "UseKestrel()" instead.
<6> 2022-02-21 04:42:17.316 +00:00 [INF] - Started HTTP head
<6> 2022-02-21 04:42:19.567 +00:00 [INF] - Updated reported properties for c/$edgeHub

Azure IoT Edge
Azure IoT Edge
An Azure service that is used to deploy cloud workloads to run on internet of things (IoT) edge devices via standard containers.
573 questions
Azure AI Custom Vision
Azure AI Custom Vision
An Azure artificial intelligence service and end-to-end platform for applying computer vision to specific domains.
247 questions
{count} votes

2 answers

Sort by: Most helpful
  1. QuantumCache 20,266 Reputation points
    2022-03-02T22:39:12.027+00:00

    Hello @Takahiro Tsuji
    Sorry for the delay in response!
    Please refer to a similar issue: please let us know over here or via email if you need further help in this matter.

    My build wasn't working as my swap space was too small. I upped it to 500 MB and it compiles now. See this link to increase your swap space: http://raspberrypi.stackexchange.com/questions/70/how-to-set-up-swap-space

    I have solved my issue. Its working for me now. python sdk needs c code for building, once I have provided that, it is working smooth now.

    I found that you need to copy the iothub_client.so file into your working directory that was generated in /azure-iot-sdk-python/c/cmake/iotsdk_linux/python/src/iothub_client.so while you were compiling it. Probably there is more elegant way to add this to python global modules, but this works.

    0 comments No comments

  2. Takahiro Tsuji 1 Reputation point
    2022-03-04T07:59:07.473+00:00

    Hi @QuantumCache
    Thank you for the answer.

    I understand that iothub_client.so is needed but I cannot find an easy way to copy that library file to the Docker image.

    1. Should I build environment by commands in Raspbian?
    2. There is still the "libhdf5_serial.so.103: cannot open shared object file" for CameraCapture.
      I searched for the information on the web but no progress in this environment.
      I could import cv2 by cloning OpenCV4-Python source in my raspbian.
      So, I think there is a trouble in this docker environment.

    Can you provide other information?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.