<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-2022-jp">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="DE" link="blue" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi there,</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am testing a device Management Framework named balenaOS on a couple of Edge devices. Networking is managed by ModemManager/NetworkManager. After a couple of hours my device (Raspberry CM3 based) goes offline, having no Internet Connection
via LTE any more. When I connect to the device via LAN, I can see that the modem has disappeared:</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@9d52738:~# mmcli -L</p>
<p class="MsoNormal">No modems were found</p>
<p class="MsoNormal">root@9d52738:~# nmcli d</p>
<p class="MsoNormal">DEVICE TYPE STATE CONNECTION </p>
<p class="MsoNormal">eth0 ethernet connected Wired connection 1 </p>
<p class="MsoNormal">supervisor0 bridge connected supervisor0 </p>
<p class="MsoNormal">balena0 bridge unmanaged -- </p>
<p class="MsoNormal">br-4a4858757201 bridge unmanaged -- </p>
<p class="MsoNormal">resin-dns bridge unmanaged -- </p>
<p class="MsoNormal">veth607d783 ethernet unmanaged -- </p>
<p class="MsoNormal">veth91c10ab ethernet unmanaged -- </p>
<p class="MsoNormal">vethd462048 ethernet unmanaged -- </p>
<p class="MsoNormal">vethe6faf8c ethernet unmanaged -- </p>
<p class="MsoNormal">vethf0bd237 ethernet unmanaged -- </p>
<p class="MsoNormal">lo loopback unmanaged -- </p>
<p class="MsoNormal">resin-vpn tun unmanaged --</p>
<p class="MsoNormal">root@9d52738:~# nmcli c</p>
<p class="MsoNormal">NAME UUID TYPE DEVICE
</p>
<p class="MsoNormal">Wired connection 1 b7cd7ae6-6bbe-3c64-b4a7-d687b5550671 ethernet eth0
</p>
<p class="MsoNormal">supervisor0 a0dd8e69-49ab-4946-ba7a-b2036e96f530 bridge supervisor0
</p>
<p class="MsoNormal">gsm d8f002d1-dfc3-3cad-ac58-c7d3cc563b75 gsm --</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">This is my NetworkManager config:</p>
<p class="MsoNormal">root@9d52738:~# cat /etc/NetworkManager/system-connections/gsm.nmconnection
</p>
<p class="MsoNormal">[connection]</p>
<p class="MsoNormal">id=gsm</p>
<p class="MsoNormal">type=gsm</p>
<p class="MsoNormal">autoconnect=true</p>
<p class="MsoNormal">autoconnect-retries=0</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[gsm]</p>
<p class="MsoNormal">apn=web.vodafone.de</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[ppp]</p>
<p class="MsoNormal">no-vj-comp=true</p>
<p class="MsoNormal">nobsdcomp=true</p>
<p class="MsoNormal">nodeflate=true</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[ipv4]</p>
<p class="MsoNormal">method=auto</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">[ipv6]</p>
<p class="MsoNormal">method=ignore</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Interestingly, the modem’s devices are visible:</p>
<p class="MsoNormal">root@9d52738:~# ls -l /dev/ttyUSB*</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 0 Dec 3 11:30 /dev/ttyUSB0</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 1 Dec 6 10:39 /dev/ttyUSB1</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 2 Dec 6 10:39 /dev/ttyUSB2</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 3 Dec 6 21:42 /dev/ttyUSB3</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 4 Dec 6 10:39 /dev/ttyUSB4</p>
<p class="MsoNormal">crw-rw---- 1 root dialout 188, 5 Dec 6 10:39 /dev/ttyUSB5</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">These are the nm/mm versions I use:</p>
<p class="MsoNormal">mmcli 1.10.6</p>
<p class="MsoNormal">nmcli tool, version 1.20.2</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The Journal does only Show Events About 1h ago, the modem went offline earlier:</p>
<p class="MsoNormal">root@9d52738:~# date</p>
<p class="MsoNormal">Fri Dec 6 23:16:39 UTC 2019</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@9d52738:~# journalctl -u ModemManager</p>
<p class="MsoNormal">-- Logs begin at Fri 2019-12-06 22:15:49 UTC, end at Fri 2019-12-06 23:16:40 UTC. --</p>
<p class="MsoNormal">-- No entries --</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@9d52738:~# journalctl -u NetworkManager</p>
<p class="MsoNormal">-- Logs begin at Fri 2019-12-06 22:15:49 UTC, end at Fri 2019-12-06 23:17:14 UTC. --</p>
<p class="MsoNormal">Dec 06 22:35:09 9d52738 NetworkManager[805]: <info> [1575671709.1903] dhcp4 (eth0): state changed bound -> expire</p>
<p class="MsoNormal">Dec 06 22:35:09 9d52738 NetworkManager[805]: <info> [1575671709.1906] device (eth0): DHCPv4: 480 seconds grace period started</p>
<p class="MsoNormal">Dec 06 22:35:12 9d52738 NetworkManager[805]: <info> [1575671712.2717] dhcp4 (eth0): state changed expire -> bound</p>
<p class="MsoNormal">Dec 06 22:36:26 9d52738 NetworkManager[805]: <info> [1575671786.1989] manager: (resin-vpn): new Tun device (/org/freedesktop/NetworkManager/Devices/655)</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I cannot see anything unusual in the Service Status:</p>
<p class="MsoNormal">root@9d52738:~# systemctl status ModemManager.service</p>
<p class="MsoNormal">● ModemManager.service - Modem Manager</p>
<p class="MsoNormal"> Loaded: loaded (/lib/systemd/system/ModemManager.service; enabled; vendor preset: enabled)</p>
<p class="MsoNormal"> Active: active (running) since Fri 2019-12-06 10:38:55 UTC; 12h ago</p>
<p class="MsoNormal">Main PID: 3180 (ModemManager)</p>
<p class="MsoNormal"> Tasks: 3 (limit: 2305)</p>
<p class="MsoNormal"> Memory: 1.8M</p>
<p class="MsoNormal"> CGroup: /system.slice/ModemManager.service</p>
<p class="MsoNormal"> └瘢雹─3180 /usr/sbin/ModemManager --log-journal</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I am able to recover the modem manually by restarting the Service and waiting a Minute:</p>
<p class="MsoNormal">root@9d52738:~# systemctl restart ModemManager.service</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@9d52738:~# mmcli -L</p>
<p class="MsoNormal"> /org/freedesktop/ModemManager1/Modem/0 [Huawei Technologies Co., Ltd.] ME909s-120</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">root@9d52738:~# nmcli c</p>
<p class="MsoNormal">NAME UUID TYPE DEVICE
</p>
<p class="MsoNormal">Wired connection 1 b7cd7ae6-6bbe-3c64-b4a7-d687b5550671 ethernet eth0
</p>
<p class="MsoNormal">gsm d8f002d1-dfc3-3cad-ac58-c7d3cc563b75 gsm ttyUSB1
</p>
<p class="MsoNormal">supervisor0 a0dd8e69-49ab-4946-ba7a-b2036e96f530 bridge supervisor0</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">root@9d52738:~# nmcli d</p>
<p class="MsoNormal">DEVICE TYPE STATE CONNECTION </p>
<p class="MsoNormal">eth0 ethernet connected Wired connection 1 </p>
<p class="MsoNormal">supervisor0 bridge connected supervisor0 </p>
<p class="MsoNormal">ttyUSB1 gsm connected gsm </p>
<p class="MsoNormal">ppp0 ppp disconnected -- </p>
<p class="MsoNormal">balena0 bridge unmanaged -- </p>
<p class="MsoNormal">br-4a4858757201 bridge unmanaged -- </p>
<p class="MsoNormal">resin-dns bridge unmanaged -- </p>
<p class="MsoNormal">veth607d783 ethernet unmanaged -- </p>
<p class="MsoNormal">veth91c10ab ethernet unmanaged -- </p>
<p class="MsoNormal">vethd462048 ethernet unmanaged -- </p>
<p class="MsoNormal">vethe6faf8c ethernet unmanaged -- </p>
<p class="MsoNormal">vethf0bd237 ethernet unmanaged -- </p>
<p class="MsoNormal">lo loopback unmanaged -- </p>
<p class="MsoNormal">resin-vpn tun unmanaged --</p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">It is important that the modem Connection stays online without manual Intervention. Any help with the issue much appreciated.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards<o:p></o:p></p>
<p class="MsoNormal">Bruno<o:p></o:p></p>
</div>
</body>
</html>