iotedge | The IoT Edge OSS project
kandi X-RAY | iotedge Summary
kandi X-RAY | iotedge Summary
The IoT Edge OSS project
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of iotedge
iotedge Key Features
iotedge Examples and Code Snippets
Community Discussions
Trending Discussions on iotedge
QUESTION
I am trying to setup my azure iot edge device (Linux Ubuntu 18.04 - Linux Containers), but as soon as I apply the configuration with the Connectionstring my EdgeAgent fails on first provisioning with the following error message
...ANSWER
Answered 2022-Jan-31 at 09:57Managed to resolve the issue, by specifying the edgeHub and edgeAgent container versions explicitly. Check Github issue for more detail.
QUESTION
I am trying to configure Edge device as a transparent gateway. But I am new to the concept. I am using different machine to generate the certificates and later I will copy them to my Edge device. I am following this link to generate certificates.
My question is: The edge device is Linux based and my development machine is Windows. So which steps should I follow to generate the certificates (and if I follow Windows steps to generate the certificates, will it work for Linux based IoT edge device?)
How can I copy the certificates from development machine to IoT edge device (which is VM Ubuntu server 18.04 LTS)?
Any help would be really great. Thank you in advance.
...ANSWER
Answered 2022-Jan-24 at 06:48As your IoT Edge device is Linux based, you should follow the steps for Linux machine to configure the certificate.
Follow the steps given in Manage certificates on an IoT Edge device and follow the complete tutorial for complete development.
QUESTION
The OPC Publisher marketplace image runs successfully as a standalone container (albeit with server connection problems). But I am not able to deploy it as an edge module, especially after changing container create options.
Background: In my host laptop I was never able to get the module up so I created a Ubuntu VM. When I tried to deploy the edge module in the VM with default container create options the module did show up in the iotedge module list as "running". I wanted to set the "--op" option to set publishing rate so I changed it in the create options using the portal "Set modules" tab. Since there is no update button I used create button to "recreate" the modules. After this the module did not show up.
After that the OPC publisher module is not showing up on the edge VM. I am following the Microsoft tutorial.
Following is the command:
...ANSWER
Answered 2022-Jan-22 at 06:34I raised a support query in Azure portal. After sending support bundles and trying various suggestions like removing DNS configuration, changing bind path to a non-sudo location etc. the team zeroed in on the edge version mismatch.
After re-reading the documentation I uninstalled the earlier iotedge package and installed aziot-edge instead and problem solved!
The team has raised a github issue for public tracking here:
https://github.com/Azure/Industrial-IoT/issues/1425
@asergaz also pointed to the right direction but did not notice since it came a bit later
QUESTION
We are running a C# application (.net Core 3.1) on ubuntu 18.04. The application does a http request to a self-signed https endpoint, but that request is canceled. I managed to reproduce it using the following snippet:
...ANSWER
Answered 2022-Jan-03 at 15:22It turned out to be a firewall issue, but a very pesky one.
- In our CA certificate there was a pki.ourdomain.org defined.
- The C# HTTP library called that URL at some point during the request (despite the ServerCertificateCustomValidationCallback returning true)
- Curl and python (requests) do not make this call so they dont timeout.
- Our firewall discarded the request to this pki domain, without any error or response.
- This caused the HTTP request to eventually timeout without any relevant error message.
When we found out this cause we added the pki.* url to the firewall rules. A more hacky solution without firewall changes is be to add pki.ourdomain.org to direct to localhost. This makes the pki request fail instantly, and the original request is executed normally.
I still dont fully understand why the C# library has this behaviour and other clients do not, but I hope this may help someone.
QUESTION
The current IotEdge deployment is missing a crucial component which is a rollback strategy, while searching in the documentation, nothing specifies how we can get the devices to a previous version.
There's 2 options I considered through my journey of searching for a solution, which one would you opt for and how are you handling this situation ?
Option 1Use kubernetes to manage IotEdge deployments, which is in my opinion over-engineered and not intended for managing only deployment, as K8s is an orchestrator with many useful components not essentially made for such scenarios (or am I wrong ?).
Pros- Quick
- Centralized configuration
- Can target multiple iothubs
- Over-engineered
- K8s knowledge (learning curve)
The second option is to write custom scripts that handle the deployment/rollback..
Pros- Lightweight solution
- Free (no additional costs)
- Maintenance is hard.
- Slow Build time
- Bug prone
ANSWER
Answered 2021-Dec-13 at 10:13If you want to rollback a deployment you should just delete the current one and IoT Edge will rollback to the previous deployment targeting it. To be clear, I am talking about deployments at scale
EDIT: Instead of deleting the deployment, just modify the target condition, that can prevent from a misclick. See the rollback deployment official documentation
QUESTION
The module "AzureVideoAnalyzerEdge" seems to be asking for a JWS token. I cant find a JWS token anywhere in azure for this.
Im not sure what this is referring to and it's my first time deploying AVA to the edge.
Happy to provide more info if required. just need to be pointed in the right direction.
The error is below:
...ANSWER
Answered 2021-Oct-27 at 21:23The error is coming because you are entering the wrong JWT token, so you must follow this document to generate a JWT token for Azure Video Analyzer. https://docs.microsoft.com/en-us/azure/azure-video-analyzer/video-analyzer-docs/access-policies#creating-a-token
QUESTION
When programatically deploying an Azure IoT Edge solution to IoT hub via a deployment manifest (see here), is it possible to also immediately specify properties (tags) for module twins? like here.
...ANSWER
Answered 2021-Oct-27 at 12:13Yes! You can use Device Provisioning Service (DPS) for that.
When you create an enrollment in DPS, you have the opportunity to declare an initial device twin state. In the device twin, you can set tags to group devices by any metric you need in your solution, like region, environment, location, or device type. These tags are used to create automatic deployments.
Reference: Create and provision IoT Edge for Linux on Windows devices at scale using symmetric keys
QUESTION
I have been trying to retrieve sensor data generated by OPC simulation server (data listed in excel file and read by OPC simulation) in to one of the custom modules in Azure IOT Edge. When the data logged in the console it shows me that data has not been logged in order. Following is the JSON for OPC publisher hosted in iot edge as a module.
...ANSWER
Answered 2021-Aug-02 at 23:35So some questions:
- What version of iotedge are you using?
- Is it just that logs are not in order or are messages being received out of order?
- What protocol are you using MQTT or AMQP?
QUESTION
I am using following code in my docker file for video streaming
...ANSWER
Answered 2021-Aug-11 at 14:57With any container, including IoT Edge Modules, you need to expose the /dev/videoX to the container. With IoT Edge Modules, this is done with a Container Create Option.
Search for /dev/video0 here: https://kevinsaye.wordpress.com/2018/04/16/creating-an-opencv-module-for-iot-edge/ to see how it is done.
QUESTION
I am using Azure IoT Hub with an Edge device and have installed the Edge runtime on the device. I used this tutorial from Microsoft to get started.
Now I want to customize this Java code. I then again build, push and deploy the container according to the tutorial, but the changes are not show when I run the command iotedge logs MyModule -f
op the edge device.
I already found this: https://github.com/Azure/iotedge/issues/364#issuecomment-424947107 But it does not seem to help for me.
Can someone help me?
...ANSWER
Answered 2021-May-14 at 10:51Are you using the latest in the tag to identify the updated version. It would be better if you could change the version number as well. Finally, check if the build you created is also reflecting the changes you have made before pushing it to the container.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install iotedge
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page