Bug #7653
closed3gstats.php holding open the cuaU0.3 device
0%
Description
if the usb 3g/4g modem is unplugged then reconnected or itself rebooted (via AT commands) it comes up as ttyU1 (aka cuaU1) then ttyU2 (aka cuaU1) etc after which the pfsense config cant reconnect
ttyU0.{0,1,2} (aka cuaU0.X) all disappear but ttyU0.3 (aka cuaU0.3) remains. i think this is why the kernel gives it the next ttyU (aka cuaU) spot
the result of the above is that pfsense is configured for cuaU0 (aka ttyU0) it cannot reconnect and must be reconfigured (which breaks again on reboot) or rebooted.
i found that this is due to /usr/local/bin/3gstats.php holding open the cuaU0.3 device which stops it from clearing and being available when the usb is plugged in again. ssh'ing into pfsense, killing the running 3gstats.php, then replugging the device then works perfectly.
it seems that /usr/local/bin/3gstats.php should be listening for the HANGUP signal and then exiting gracefully when received, observe how the 'cu' command exits gracefully if youre connected to the cuauU0.X and you pull out the USB.
cu -l cuaU0.3
Updated by Jim Pingle over 5 years ago
- Category set to Interfaces
- Status changed from New to Closed
Old report and no recent recurrences. Lots of things in this area have changed, so most likely it's either fixed no longer relevant.
Above that, unplugging or rebooting devices in place isn't something we claim to support, so it's not clear what (if anything) pfSense needs to do here.
Updated by Jim Thompson over 5 years ago
saving this for posterity
https://twitter.com/PerlDean/status/1161417191809376257
"We don't support unplugging USB devices, closing bug" yet another reason to switch from pfSense to OPNsense
6:20 PM ยท Aug 13, 2019