NM does not activate ofono Inet contexts w/Username but no Password ( eg. giffgaff )
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
High
|
Canonical Phone Foundations | ||
| | network-manager (Ubuntu) |
High
|
Tony Espy | ||
| | network-manager (Ubuntu RTM) |
High
|
Tony Espy | ||
Bug Description
Device: Krillin
Software: Vivid r157
NM does not activate a valid ofono context which is present in the gprs file (context_1 in this case)
I was able to activate the context manually using ./activate-context /ril_0 1
You can find syslog, list-modems and list-contexts attached
Related branches
- Alfonso Sanchez-Beato: Approve on 2015-05-11
-
Diff: 69 lines (+49/-0)3 files modifieddebian/changelog (+9/-0)
debian/patches/lp1435776_rm_ofono_secret_settings.patch (+39/-0)
debian/patches/series (+1/-0)
| Andrea Bernabei (faenil) wrote : | #1 |
| Andrea Bernabei (faenil) wrote : | #2 |
| Andrea Bernabei (faenil) wrote : | #3 |
| tags: | added: connectivity |
| Changed in network-manager (Ubuntu): | |
| assignee: | nobody → Tony Espy (awe) |
| Changed in network-manager (Ubuntu): | |
| assignee: | Tony Espy (awe) → Alfonso Sanchez-Beato (alfonsosanchezbeato) |
| Jonathan Cave (jocave) wrote : | #4 |
| Jonathan Cave (jocave) wrote : | #5 |
Maybe this trace is the key here:
Mar 24 10:27:01 ubuntu-phablet NetworkManager[
I have seen this error in some cases where I was unable to start a cellular data connection. Rebooting solved the issue, and when the connection started you could not see that trace in syslog.
| Changed in network-manager (Ubuntu): | |
| assignee: | Alfonso Sanchez-Beato (alfonsosanchezbeato) → Tony Espy (awe) |
| Jonathan Cave (jocave) wrote : | #7 |
Syslog using the same setup as per my previous comment
| Tony Espy (awe) wrote : | #8 |
OK, after a quick look... my gut tells me that this error is caused by the fact that the 'giffgaff' APNs define a 'Username' but not a 'Password'. Working on confirming this theory now.
| Tony Espy (awe) wrote : | #9 |
Just confirmed this theory on mako running vivid-devel image #155 by modifying my ATT Phone APN and adding a 'Username'. No more mobile data connection, and I get the same error pointed out by Alfosno in comment #6.
| Changed in network-manager (Ubuntu): | |
| importance: | Undecided → High |
| status: | New → Confirmed |
| Tony Espy (awe) wrote : | #10 |
This is another 0.9.10 related regression. This works just fine on mako with RTM image #17.
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Canonical Phone Foundations (canonical-phonedations-team) |
| Changed in canonical-devices-system-image: | |
| status: | New → Confirmed |
| Andrea Bernabei (faenil) wrote : | #11 |
I can confirm adding password=password fixed it for me, I now have mobile data connection with giffgaff apn
| summary: |
- NM does not activate a valid ofono context + NM does not activate ofono Inet contexts w/Username but no Password ( + eg. giffgaff ) |
| Dave Morley (davmor2) wrote : | #12 |
I added a custom apn config
Internet APN: giffgaff.com
Username: giffgaff
Password: <empty>
I now get a tick on this network and a reliable 3g connection.
| Dave Morley (davmor2) wrote : | #13 |
Previously the giffgaff Internet refused to stay checked.
| John McAleely (john.mcaleely) wrote : | #14 |
@pmcgowan - for canonical-
| Changed in canonical-devices-system-image: | |
| importance: | Undecided → High |
| milestone: | none → ww21-2015 |
| Tony Espy (awe) wrote : | #15 |
@John
Critical should be reserved for crashes, and/or serious bugs that have no workaround.
That said, this is one of the last 0.9.10 regressions ( I hope ). We'll definitely fix for the next OTA, if not before. This may be related to bug #1450790 as well.
| Changed in network-manager (Ubuntu): | |
| status: | Confirmed → In Progress |
| Tony Espy (awe) wrote : | #16 |
This bug is caused by the fact the NM's ofono plugin checks for the existence of Username and Password properties in the APN, and if found, adds them as settings to the NM_SETTING_GSM instance ( which is added to the associated NM_CONNECTION instance ).
For some reason, the fact that only 'Username' is set doesn't seem to effect the first connection attempt, but them for some reason, the NM settings code resets its secrets logic and thinks that a 'Password' is required the next time a connection attempt occurs.
Rather than debug the settings secrets logic, I opted to remove the code in the ofono plugin which adds these settings, as in reality, NM does nothing with them, they're actually used by ofono directly.
Likewise the same code ( in src/settings/
I will add a branch to the bug later this afternoon.
In the meanwhile, anyone who'd like to test can use the version ( 0.9.10.
https:/
| Tony Espy (awe) wrote : | #17 |
Note, as I've been using the phablet-team telephony PPA for other testing, so although the version in the PPA has the fix, it has some other experimental changes, so it might cause other problems when testing. Use at your own risk...
If all goes well, we should have this in a silo in the next day or so.
| Changed in canonical-devices-system-image: | |
| milestone: | ww21-2015 → ww22-2015 |
| Changed in network-manager (Ubuntu RTM): | |
| status: | New → Fix Committed |
| Changed in network-manager (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Changed in network-manager (Ubuntu RTM): | |
| importance: | Undecided → High |
| assignee: | nobody → Tony Espy (awe) |
| Changed in canonical-devices-system-image: | |
| status: | Confirmed → Fix Committed |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |
| Tony Espy (awe) wrote : | #18 |
Changed the status of the Ubuntu task as the fix has not yet been merged for wily.
| Changed in network-manager (Ubuntu): | |
| status: | Fix Committed → In Progress |
| Changed in network-manager (Ubuntu RTM): | |
| status: | Fix Committed → Fix Released |
| Tony Espy (awe) wrote : | #19 |
Changing the Status to FixReleased for Ubuntu ( ie. Wily ) task as this wasn't recorded properly in the changelog. This was fixed in version: 0.9.10.0-4ubuntu19.
| Changed in network-manager (Ubuntu): | |
| status: | In Progress → Fix Released |


ubuntu- touch/devel- proposed/ krillin. en r29 krillin
Also happening to me on the above with a giffgaff SIM