Closed Bug 1117001 Opened 9 years ago Closed 8 years ago

Logged out of Firefox account

Categories

(Firefox :: Sync, defect, P2)

32 Branch
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: dustin, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

My laptop just informed me that it was unable to sync because it could not login.  The UI now says "Please sign in to reconnect fxsync1@v.igoro.us".

I haven't changed my account password or anything like that for months.  The only recent change was setting up a new browser on the same account on Monday.

Logs:

1420149537141	Sync.Service	INFO	Loading Weave 1.36.0
1420149537144	Sync.Engine.Clients	DEBUG	Engine initialized
1420149537146	Sync.Engine.Clients	DEBUG	Resetting clients last sync time
1420149537153	Sync.Engine.Bookmarks	DEBUG	Engine initialized
1420149537157	Sync.Engine.Forms	DEBUG	Engine initialized
1420149537162	Sync.Engine.History	DEBUG	Engine initialized
1420149537167	Sync.Engine.Passwords	DEBUG	Engine initialized
1420149537170	Sync.Engine.Prefs	DEBUG	Engine initialized
1420149537175	Sync.Engine.Tabs	DEBUG	Engine initialized
1420149537176	Sync.Engine.Tabs	DEBUG	Resetting tabs last sync time
1420149537181	Sync.Engine.Addons	DEBUG	Engine initialized
1420149537182	Sync.Service	INFO	Mozilla/5.0 (X11; Linux x86_64; rv:34.0) Gecko/20100101 Firefox/34.0
1420149537185	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
1420149537186	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420149537186	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420149537186	Sync.Service	DEBUG	Caching URLs under storage user base: https://sync-157-us-west-2.sync.services.mozilla.com/1.5/14213280/
1420149537186	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420149537186	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420149537186	Sync.AddonsReconciler	INFO	Registering as Add-on Manager listener.
1420149537186	Sync.AddonsReconciler	DEBUG	Adding change listener.
1420149537187	Sync.Tracker.History	INFO	Adding Places observer.
1420149537231	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420149537231	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420149537232	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420149537232	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420149537234	Sync.Engine.AdblockPlus	DEBUG	Engine initialized
1420149537235	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420149537235	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420149537244	FirefoxAccounts	INFO	Can't find the rest of the credentials in the login manager
1420149742035	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149811193	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149835682	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149841889	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149872409	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149880633	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149887793	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149889892	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149893868	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149917404	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149920428	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149924575	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149934090	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149962885	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149975540	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420149977067	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150083438	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150102489	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150120847	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150145328	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150155384	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150515430	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150558930	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150579477	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420150634532	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
1420151204873	Sync.SyncScheduler	DEBUG	Next sync in 600000 ms.
1420151236778	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151255728	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151359878	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151373083	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151386603	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151390759	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151494681	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151499982	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151521201	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151529135	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151537113	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151728028	Sync.Tracker.History	DEBUG	Saving changed IDs to history
1420151804875	Sync.Service	DEBUG	User-Agent: Firefox/34.0 FxSync/1.36.0.20141201111703.
1420151804875	Sync.Service	INFO	Starting sync at 2015-01-01 17:36:44
1420151804876	Sync.Service	DEBUG	In sync: should login.
1420151804878	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420151804878	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420151804878	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420151804878	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420151804882	Sync.Service	INFO	Logging in the user.
1420151804882	Sync.Service	DEBUG	Caching URLs under storage user base: https://sync-157-us-west-2.sync.services.mozilla.com/1.5/14213280/
1420151804906	FirefoxAccounts	INFO	Can't find the rest of the credentials in the login manager
1420151804907	Sync.Service	DEBUG	Fetching unlocked auth state returned error.login.reason.account
1420151804908	Sync.Status	DEBUG	Status.login: error.login.reason.account => error.login.reason.account
1420151804908	Sync.Status	DEBUG	Status.service: error.login.failed => error.login.failed
1420151804908	Sync.SyncScheduler	DEBUG	Clearing sync triggers and the global score.
> 1420151804906	FirefoxAccounts	INFO	Can't find the rest of the credentials in the login manager

This seems like a problem. :markh, ideas what may have caused this?
Flags: needinfo?(mhammond)
Sadly I've no idea why this happened, but "Can't find the rest of the credentials in the login manager" certainly explains why Sync was in a "needs reauth" state.

Dustin:

* Did you notice any other passwords missing from that profile?  If somehow the sqlite file was corrupt then I believe it will be clobbered (which would explain this).  Maybe looking at your saved passwords and ensure all you expect are there (although if sync has started working again after you did the reauth, it's possible Sync itself repopulated the database)

* After you re-authenticated, did it continue to work after the next restart?

* As a long-shot, do you have any password manager related addons
Flags: needinfo?(mhammond) → needinfo?(dustin)
I installed LastPass on the laptop *after* this occurred, and that imported my existing Firefox passwords, all of which seem to still be in place.  So I don't think the sqlite file was clobbered.  However, the chrome://FirefoxAccounts site passwords are *not* present.

After re-authenticating (just now), I see the chrome://FirefoxAccounts password saved.  As sync re-filled my account, it also populated a chrome://FirefoxAccounts password for an older (broken) sync account under a different email address.  Could that be related?  I've deleted that password (and all the rest, now that I'm using LastPass).
Flags: needinfo?(dustin)
I just went through the lastpass setup process, and one of the steps offers to import the existing data from the firefox password manager *and* offers to delete those items (with the defaults for both being true).  While that might not have happened in this specific case, it sounds like something lastpass is going to do in some cases.

So tl;dr is that I think we can *expect* users installing lastpass will leave them in a "needs reauth" state and there's not alot we can do about it.
That observation is correct, but to be clear in this case I installed LastPass *after* this failure (because I was so frustrated with password sync failures)
Another good candidate for trying to measure how often this happens.
Priority: -- → P1
Flags: firefox-backlog+
I have this problem too. It happens  all the time, shortly after the first synchronization (first run after install). It also happens in Linux, Windows 7, Windows 8.1 and Windows 10. If I delete my profile I am able to synchronize after the first start, then I get the same sync error every time I start Firefox again. I think this problem lasts from more than six month, after a firefox update (can't remember the version). I don't know why it takes so long to solve this problem, I think is very annoying.
(In reply to amihaita from comment #7)
> I have this problem too.

Do you have Firefox set to "Clear history when Nightly closes" (in the Privacy tab in settings)? If so, that will explain the problem and that should be fixed in Firefox 42.
(In reply to Mark Hammond [:markh] from comment #8)
> (In reply to amihaita from comment #7)
> > I have this problem too.
> 
> Do you have Firefox set to "Clear history when Nightly closes" (in the
> Privacy tab in settings)? If so, that will explain the problem and that
> should be fixed in Firefox 42.
I am using Firefox 40.0.3, and in Privacy tab is no "Clear history when Nightly closes" option, only "Tracking", "History" and "Location bar" with different options, but not what you mentioned.
Depends on: 1241598
It's been a while on this one, but next steps would be to add telemetry probe to see how often the following happens:

signedInUser.json suggests there is a logged in user, but we can't find any credentials in password manager.
Created bug 1241598 for the telemetry work.
Priority: P1 → P2
Closing, because telemetry work has been finished in bug 1236383. IIUC, there was no wider evidence of this bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.