how to get 3g modem back in managed state

View: New views
6 Messages — Rating Filter:   Alert me  

how to get 3g modem back in managed state

by Eduard Hasenleithner-3 :: Rate this Message:

| View Threaded | Show Only this Message

I'm using network-manager on ubuntu oneiric. Every time the modem gets
disconnected (either by the network, or due to bad reception) it
disappears from the network device list.

Dec 29 18:17:28 eeepc pppd[2070]: LCP terminated by peer
Dec 29 18:17:28 eeepc pppd[2070]: Connect time 1.4 minutes.
Dec 29 18:17:28 eeepc pppd[2070]: Sent 47182 bytes, received 339954 bytes.
Dec 29 18:17:28 eeepc charon: 08[KNL] interface ppp0 deactivated
Dec 29 18:17:28 eeepc charon: 08[KNL] 10.61.6.235 disappeared from ppp0
Dec 29 18:17:28 eeepc pppd[2070]: Modem hangup
Dec 29 18:17:28 eeepc pppd[2070]: Connection terminated.
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): device
state change: activated -> failed (reason 'ppp-disconnect') [100 120
13]
Dec 29 18:17:28 eeepc NetworkManager[666]: <warn> Activation (ttyUSB0) failed.
Dec 29 18:17:28 eeepc avahi-daemon[526]: Withdrawing workstation
service for ppp0.
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  (ttyUSB0) closing
serial port...
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  (ttyUSB0) serial port closed
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
/org/freedesktop/ModemManager/Modems/0: state changed (connected ->
disconnecting)
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
/org/freedesktop/ModemManager/Modems/0: state changed (disconnecting
-> connected)
Dec 29 18:17:28 eeepc NetworkManager[666]:    SCPlugin-Ifupdown:
devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): now unmanaged
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): device
state change: failed -> unmanaged (reason 'removed') [120 10 36]
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0):
deactivating device (reason 'removed') [36]
Dec 29 18:17:28 eeepc dbus[488]: [system] Activating service
name='org.freedesktop.nm_dispatcher' (using servicehelper)
Dec 29 18:17:28 eeepc NetworkManager[666]: <warn> could not read ppp
stats: No such device

Is there a way to get it back without a reboot?
_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: how to get 3g modem back in managed state

by José Queiroz :: Rate this Message:

| View Threaded | Show Only this Message

Try to SIGTERM modem-manager.

sudo killall -TERM modem-manager

2011/12/29 Eduard Hasenleithner <ehasenle@...>
I'm using network-manager on ubuntu oneiric. Every time the modem gets
disconnected (either by the network, or due to bad reception) it
disappears from the network device list.

Dec 29 18:17:28 eeepc pppd[2070]: LCP terminated by peer
Dec 29 18:17:28 eeepc pppd[2070]: Connect time 1.4 minutes.
Dec 29 18:17:28 eeepc pppd[2070]: Sent 47182 bytes, received 339954 bytes.
Dec 29 18:17:28 eeepc charon: 08[KNL] interface ppp0 deactivated
Dec 29 18:17:28 eeepc charon: 08[KNL] 10.61.6.235 disappeared from ppp0
Dec 29 18:17:28 eeepc pppd[2070]: Modem hangup
Dec 29 18:17:28 eeepc pppd[2070]: Connection terminated.
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): device
state change: activated -> failed (reason 'ppp-disconnect') [100 120
13]
Dec 29 18:17:28 eeepc NetworkManager[666]: <warn> Activation (ttyUSB0) failed.
Dec 29 18:17:28 eeepc avahi-daemon[526]: Withdrawing workstation
service for ppp0.
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  (ttyUSB0) closing
serial port...
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  (ttyUSB0) serial port closed
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
/org/freedesktop/ModemManager/Modems/0: state changed (connected ->
disconnecting)
Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
/org/freedesktop/ModemManager/Modems/0: state changed (disconnecting
-> connected)
Dec 29 18:17:28 eeepc NetworkManager[666]:    SCPlugin-Ifupdown:
devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0)
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): now unmanaged
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0): device
state change: failed -> unmanaged (reason 'removed') [120 10 36]
Dec 29 18:17:28 eeepc NetworkManager[666]: <info> (ttyUSB0):
deactivating device (reason 'removed') [36]
Dec 29 18:17:28 eeepc dbus[488]: [system] Activating service
name='org.freedesktop.nm_dispatcher' (using servicehelper)
Dec 29 18:17:28 eeepc NetworkManager[666]: <warn> could not read ppp
stats: No such device

Is there a way to get it back without a reboot?
_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list


_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: how to get 3g modem back in managed state

by Eduard Hasenleithner-3 :: Rate this Message:

| View Threaded | Show Only this Message

2011/12/30 José Queiroz <zekkerj@...>:
> Try to SIGTERM modem-manager.
>
> sudo killall -TERM modem-manager

This does not work for me. Is there no way to tell network-manager to
manage a particular device again while keeping nm (and mm) running?

btw, is there a utility which allows to show all devices managed by
network manager, and their state (over dbus)?

thanks,
Eduard

PS: when will this severe defect be fixed? Or is this bug ubuntu specific?
_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: how to get 3g modem back in managed state

by Felipe-23 :: Rate this Message:

| View Threaded | Show Only this Message

On 12/29/2011 08:09 PM, Eduard Hasenleithner wrote:
> Dec 29 18:17:28 eeepc pppd[2070]: LCP terminated by peer
> state change: failed ->  unmanaged (reason 'removed') [120 10 36]
> Dec 29 18:17:28 eeepc NetworkManager[666]:<info>  (ttyUSB0):
> deactivating device (reason 'removed') [36]
I'm having exactly the same problem with a Huawei E1752 but don't know how to
reproduce it. In the worst case, the modem disappeared after only four connection minutes

> Is there a way to get it back without a reboot?
I would prefer to know how to avoid that the device disappears from the NM device
list. Can somebody please help us with this? Thanks in advance.


Regards,


Luis



_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: how to get 3g modem back in managed state

by Dan Williams :: Rate this Message:

| View Threaded | Show Only this Message

On Fri, 2011-12-30 at 11:46 +0100, Eduard Hasenleithner wrote:
> 2011/12/30 José Queiroz <zekkerj@...>:
> > Try to SIGTERM modem-manager.
> >
> > sudo killall -TERM modem-manager
>
> This does not work for me. Is there no way to tell network-manager to
> manage a particular device again while keeping nm (and mm) running?

We need a bit more information here.  Does the device actually disappear
from the USB bus (ie, it crashes)?  When this happens check with lsusb
to see if it's still there or not.

If it is still there, we'll need some more detailed logs from
ModemManager.  I did notice that disconnecting the device failed, so it
would be good to figure out why that happened.  ie this line
specifically from the logs:

Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
/org/freedesktop/ModemManager/Modems/0: state changed (disconnecting
-> connected)

indicates that MM was not able to tell the modem to terminate the packet
connection successfully, and thus it has no choice but to assume you're
still connected.  A detailed MM debug  log would indicate which command
is failing there.  See:

http://live.gnome.org/NetworkManager/Debugging

for how to get that log.

> btw, is there a utility which allows to show all devices managed by
> network manager, and their state (over dbus)?

nm-tool or "nmcli dev"

Dan


_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list

Re: how to get 3g modem back in managed state

by Felipe-23 :: Rate this Message:

| View Threaded | Show Only this Message

Hi,

sorry for interfering in this discussion, but as I'm having the same problem than Eduard, I would like to provide some info about the issue. But before this, a probably important point: I have here a proprietary ModemManager (see [1]) but this doesn't matter as the failure seems to be the same: after an unexpected PPP-disconnection, the modem disappears from the NM devices list even the ModemManager didn't emitted the 'DeviceRemoved' signal.

For reproducing the issue you can try killing the ppp-daemon when a PDP-context is up. Here this leads to the described issue: The modem is gone from the NM devices list even 'lsusb' shows that the modem is still there and the ModemManager too.

Regards, Luis

[1] ModemManager from this site: http://movilforum.com/escritoriomovistar/


-------- Original-Nachricht --------
> Datum: Wed, 25 Jan 2012 16:08:59 -0600
> Von: Dan Williams <dcbw@...>
> An: Eduard Hasenleithner <ehasenle@...>
> CC: networkmanager-list@...
> Betreff: Re: how to get 3g modem back in managed state

> On Fri, 2011-12-30 at 11:46 +0100, Eduard Hasenleithner wrote:
> > 2011/12/30 José Queiroz <zekkerj@...>:
> > > Try to SIGTERM modem-manager.
> > >
> > > sudo killall -TERM modem-manager
> >
> > This does not work for me. Is there no way to tell network-manager to
> > manage a particular device again while keeping nm (and mm) running?
>
> We need a bit more information here.  Does the device actually disappear
> from the USB bus (ie, it crashes)?  When this happens check with lsusb
> to see if it's still there or not.
>
> If it is still there, we'll need some more detailed logs from
> ModemManager.  I did notice that disconnecting the device failed, so it
> would be good to figure out why that happened.  ie this line
> specifically from the logs:
>
> Dec 29 18:17:28 eeepc modem-manager[519]: <info>  Modem
> /org/freedesktop/ModemManager/Modems/0: state changed (disconnecting
> -> connected)
>
> indicates that MM was not able to tell the modem to terminate the packet
> connection successfully, and thus it has no choice but to assume you're
> still connected.  A detailed MM debug  log would indicate which command
> is failing there.  See:
>
> http://live.gnome.org/NetworkManager/Debugging
>
> for how to get that log.
>
> > btw, is there a utility which allows to show all devices managed by
> > network manager, and their state (over dbus)?
>
> nm-tool or "nmcli dev"
>
> Dan
>
>
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list@...
> http://mail.gnome.org/mailman/listinfo/networkmanager-list

--
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
networkmanager-list mailing list
networkmanager-list@...
http://mail.gnome.org/mailman/listinfo/networkmanager-list