After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 734566 - USB Modem permanently disconnects if there isn't constant network traffic
USB Modem permanently disconnects if there isn't constant network traffic
Status: RESOLVED INVALID
Product: NetworkManager
Classification: Platform
Component: ModemManager
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-08-09 18:34 UTC by Alberto Salvia Novella
Modified: 2014-10-17 11:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
modem.log.txt (73.60 KB, text/plain)
2014-08-11 00:14 UTC, Alberto Salvia Novella
Details
nm.log.txt (7.04 KB, text/plain)
2014-08-11 00:15 UTC, Alberto Salvia Novella
Details
network-debug-toolkit.tar.gz (979 bytes, application/gzip)
2014-08-11 16:34 UTC, Alberto Salvia Novella
Details
mmcli.log.txt (2.72 KB, text/plain)
2014-08-11 16:35 UTC, Alberto Salvia Novella
Details
modem-manager.log.txt (73.88 KB, text/plain)
2014-08-11 16:35 UTC, Alberto Salvia Novella
Details
network-manager.log.txt (7.03 KB, text/plain)
2014-08-11 16:35 UTC, Alberto Salvia Novella
Details
syslog.txt (7.14 KB, text/plain)
2014-08-11 23:47 UTC, Alberto Salvia Novella
Details

Comment 1 Marius Kotsbak 2014-08-10 05:32:01 UTC
Might be a duplicate of bug #728044. Or is reconnect behaviour expected without autoconnect enabled?
Comment 2 Alberto Salvia Novella 2014-08-10 19:55:09 UTC
What happens is not that the modem doesn't automatically connect, but also that the network connection disappears in the first place.

The modem's LED stays in red suggesting there isn't any available mobile network in range, till I remove the device from the USB port and reconnect it.

But the most interesting aspect of it is that the device works fine for many hours if I open a terminal and ping a network address every 5 seconds. Perhaps the connection is finished elsewhere if it stays idle, and the modem simply cannot recover from it till reset.
Comment 3 Marius Kotsbak 2014-08-10 20:50:38 UTC
If the modem disappears from NM/MM, automatic reconnect probably won't help. What would be useful here is a debug log from ModemManager (not "modem-manager"):

https://wiki.ubuntu.com/DebuggingModemmanager

and also the output of these steps when it has happened: http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/debugging-3g/modem-debugging-with-mmcli
Comment 4 Alberto Salvia Novella 2014-08-11 00:08:44 UTC
mm-test.py link at <http://cgit.freedesktop.org/ModemManager/ModemManager/plain/test/mm-test.py> is broken.

From where can I download it?
Comment 5 Alberto Salvia Novella 2014-08-11 00:14:53 UTC
Created attachment 283052 [details]
modem.log.txt
Comment 6 Alberto Salvia Novella 2014-08-11 00:15:24 UTC
Created attachment 283053 [details]
nm.log.txt
Comment 7 Alberto Salvia Novella 2014-08-11 00:23:41 UTC
- "sudo restart network-manager" keeps the modem running correctly.
- "sudo stop network-manager && sudo start network-manager" doesn't.
Comment 8 Marius Kotsbak 2014-08-11 01:18:10 UTC
The modem seems to be:

'Longcheer', VID 0x1C9E PID 0x9605 (usb)

But the log seems to be just statup of Modemmanager. Please reproduce the problem and then upload the logs.
Comment 9 Aleksander Morgado 2014-08-11 08:22:13 UTC
May be due to this already fixed issue:

http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=2b82fd0e1d5a5441b063090d5d07103e93d92e47

To confirm that we would need to see NM and MM logs during a connection attempt.
Comment 10 Alberto Salvia Novella 2014-08-11 16:34:31 UTC
Created attachment 283124 [details]
network-debug-toolkit.tar.gz
Comment 11 Alberto Salvia Novella 2014-08-11 16:35:04 UTC
Created attachment 283125 [details]
mmcli.log.txt
Comment 12 Alberto Salvia Novella 2014-08-11 16:35:27 UTC
Created attachment 283126 [details]
modem-manager.log.txt
Comment 13 Alberto Salvia Novella 2014-08-11 16:35:42 UTC
Created attachment 283127 [details]
network-manager.log.txt
Comment 14 Alberto Salvia Novella 2014-08-11 16:38:33 UTC
Trying to capture "modem-manager.log.txt" or "network-manager.log.txt" using the provided scripts makes:

 - The modem to go down, triggering the bug.
 - The network indicator to disappear.
 - Unable to reconnect by software.
Comment 15 Alberto Salvia Novella 2014-08-11 16:40:09 UTC
The patch provided in <http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=2b82fd0e1d5a5441b063090d5d07103e93d92e47> could fix this issue.

How can I test it?
Comment 16 Marius Kotsbak 2014-08-11 18:01:29 UTC
I'm afraid the modem manager log still does not contain the connection attempt.
Comment 17 Marius Kotsbak 2014-08-11 18:04:08 UTC
You could also try to look in /var/log/syslog for this error message:

"pppd[30575]: Terminating connection due to lack of activity."
Comment 18 Alberto Salvia Novella 2014-08-11 23:47:04 UTC
Created attachment 283147 [details]
syslog.txt
Comment 19 Alberto Salvia Novella 2014-08-11 23:48:55 UTC
Since there isn't any "pppd[30575]: Terminating connection due to lack of activity." message, the cause of this bug is different from the one in <http://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=2b82fd0e1d5a5441b063090d5d07103e93d92e47>.
Comment 20 Aleksander Morgado 2014-10-15 09:30:37 UTC
Ouch!

Aug 12 01:28:28 Pandita kernel: [ 5156.185769] option1 ttyUSB3: option_instat_callback: error -71
Aug 12 01:28:28 Pandita kernel: [ 5156.208998] usb 2-1.2: USB disconnect, device number 4
Aug 12 01:28:28 Pandita kernel: [ 5156.209369] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Aug 12 01:28:28 Pandita kernel: [ 5156.209413] option 2-1.2:1.0: device disconnected
Aug 12 01:28:28 Pandita kernel: [ 5156.209743] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Aug 12 01:28:28 Pandita kernel: [ 5156.209753] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Aug 12 01:28:28 Pandita kernel: [ 5156.209760] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Aug 12 01:28:28 Pandita kernel: [ 5156.209767] option1 ttyUSB1: usb_wwan_indat_callback: resubmit read urb failed. (-19)
Aug 12 01:28:28 Pandita kernel: [ 5156.210010] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Aug 12 01:28:28 Pandita kernel: [ 5156.210038] option 2-1.2:1.1: device disconnected
Aug 12 01:28:28 Pandita kernel: [ 5156.210346] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Aug 12 01:28:28 Pandita kernel: [ 5156.210383] option 2-1.2:1.2: device disconnected
Aug 12 01:28:28 Pandita kernel: [ 5156.211368] option1 ttyUSB3: usb_wwan_indat_callback: resubmit read urb failed. (-19)

The modem firmware is actually crashing, and the device disappears from the USB layer all together. I'm afraid we cannot do anything to handle that :/ We could try to avoid commands we send if they are known to crash the device, but it's hard to say what to do here during a connection attempt.

I'd suggest to try to update the firmware of the device to the latest one given by the vendor/operator :/
Comment 21 Alberto Salvia Novella 2014-10-17 11:48:21 UTC
Thank you ;)