iotedge: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory – Raspberry Pi

After installing Azure IoT Edge using the guide for Linux ARM32, the following error was presented: “iotedge: error while loading shared libraries: libssl.so.1.0.2: cannot open shared object file: No such file or directory“. 

The fix was simple enough, just install the building libssl1.02 using the following command:

sudo apt-get install libssl1.0.2

Test by running the iotedge command:

iotedge

azureiotedgeCapture.PNG

If that works successfully, restart the iotedge service:

service iotedge edge restart

Verify that it is running by checking the service status:

service iotedge edge status

azureiotedgeCapture

Your app is currently in read-only mode because you have published a generated function.json

If you published your Azure function from Visual Studio and are seeing the message:

Your app is currently in read-only mode because you have published a generated function.json

Then do the following steps:

From the functions page click Platform Features.

Click platform features

After you go to the platform features page, click on App Service Editor

platform featuresAfter that, find your function in the list of functions. In the image below the function name is “IoTUploadProcessingFunction”. Expand the files underneath it and select the function.json file. Delete the line “generatedBy”: “Microsoft.NET.Sdk.Functions-1.0.0.0”.

Delete this line

After that your function should be running. If not go back to the functions screen in Azure and start it.