Skip to content

Commit 2a2357e

Browse files
Merge pull request #229952 from bishal41/Network-troubleshooting-for-LTE-connection
TSG for MTU mismatch
2 parents 1cd475c + 66c21fa commit 2a2357e

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

articles/iot-edge/troubleshoot-common-errors.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,49 @@ You can set DNS server for each module's *createOptions* in the IoT Edge deploym
115115
116116
Be sure to set this configuration for the *edgeAgent* and *edgeHub* modules as well.
117117

118+
### Edge Agent module with LTE connection reports 'empty edge agent config' and causes 'transient network error'
119+
120+
#### Symptoms
121+
122+
A device configured with LTE connection is having issues starting modules defined in the deployment. The *edgeAgent* isn't able to connect to the IoT Hub and reports *empty edge agent config* and *transient network error occurred.*
123+
124+
#### Cause
125+
126+
Some networks have packet overhead, which makes the default docker network MTU (1500) too high and causes packet fragmentation preventing access to external resources.
127+
128+
#### Solution
129+
130+
1. Check the MTU setting for your docker network.
131+
132+
`docker network inspect <network name>`
133+
134+
1. Check the MTU setting for the physical network adaptor on your device.
135+
136+
`ip addr show eth0`
137+
138+
>[!NOTE]
139+
>The MTU for the docker network cannot be higher than the MTU for your device. Contact your ISP for more information.
140+
141+
If you see a different MTU size for your docker network and the device, try the following workaround:
142+
143+
1. Create a new network. For example,
144+
145+
`docker network create --opt com.docker.network.driver.mtu=1430 test-mtu`
146+
147+
In the example, the MTU setting for the device is 1430. Hence, the MTU for the Docker network is set to 1430.
148+
149+
1. Stop and remove the Azure network.
150+
151+
`docker network rm azure-iot-edge`
152+
153+
1. Recreate the Azure network.
154+
155+
`docker network create --opt com.docker.network.driver.mtu=1430 azure-iot-edge`
156+
157+
1. Remove all containers and restart the *aziot-edged* service.
158+
159+
`sudo iotedge system stop && sudo docker rm -f $(docker ps -aq -f "label=net.azure-devices.edge.owner=Microsoft.Azure.Devices.Edge.Agent") && sudo iotedge config apply`
160+
118161
### IoT Edge agent can't access a module's image (403)
119162

120163
#### Symptoms

0 commit comments

Comments
 (0)