Comment 2 for bug 1450790

Revision history for this message
Tony Espy (awe) wrote : Re: Phone not connecting to mobile data until rebooting

@Michael

Thanks for the logs...

If you can reproduce reliably, could you add the output of 'list-modems' ( found in /usr/share/ofono/scripts ) and 'list-contexts'?

The error logs you provided show a couple of weird things...

First, I saw a whole bunch of SIM PIN errors reported by ofono. It appears that you have two SIMs installed in the phone as well, are either of these SIMs PIN-locked? The indicator-network log shows an error unlocking a SIM too.

Also, from the syslog it appears that at some point you used the APN Editor, and there's a custom Internet APN with a blank AccessPointName defined. This APN looks to be the same APN that's returning errors when NM tries to activate it ( see errors for context3 in the syslog ).

Could you try the following and see if it resolves your problems?

As root:

# stop ofono
# cd /var/lib/ofono

There should be at least two directories that are a long string of numbers. The numbers are the SubscriberIdentity from your SIM cards. Ignore the dirs with trailing "-", and cd into the other directories and remove the files named 'gprs'. Or if you'd like, you can edit these files and just remove the offending __custom_internet_apn context.

# reboot

This will cause your phone to reprovision itself, and get rid of the offending APN.

We actually spent quite a bit of time this past week at our sprint working on the APN editor, and hopefully can roll out some improvements ( including the ability to force re-provisioning from the UI ) soon.