This thread was archived. Please ask a new question if you need help.
Password disappeared and unable to re-import from Firefox-created CSV
Today I noticed all my saved usernames/passwords had disappeared. The password/Lockwise page said "No synced logins found." Bookmarks etc are still OK. The "logins.json" file appears to be intact (was able to read using Python code). The "key4.db" file also seems to be intact as I was able to create a new, clean profile, copied both of these files over and then was able to see all my passwords, which I then exported into a CSV file. Then I enabled the password import feature (as described [https://support.mozilla.org/en-US/kb/import-login-data-file|here]). However, the password import fails to import any passwords. The result shows "Import Complete", but zero "New logins added" and "Errors: 165 (not imported)". See screenshot. Nothing happens when I click on "View detailed Import Summary" or "Done". At the top of the page it asks to "Please enter your Primary Password to view saved logins & passwords". As I click on "Login" it just takes me right back to the empty saved passwords page. Something seems to be seriously broken here. Any ideas how to fix? This is Firefox/92.0 (Linux x86_64) FxSync/184.108.40.20610903235534.desktop . As an aside, the very handy firefox_decrypt tool was able to spit out a list of my passwords as well. This was very comforting since recovering ~165 passwords would obviously be a major hassle. The sync logs at "about:sync-log" look something like this: 1632516770753 Sync.LogManager DEBUG Flushing file log 1632516770765 Sync.LogManager DEBUG Log cleanup threshold time: 1631652770765 1632516770997 Sync.LogManager DEBUG Done deleting files. 1632516917976 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:fxa_status 1632516917977 FirefoxAccounts DEBUG fxa_status received 1632516917977 FirefoxAccounts DEBUG service: 30b11ae57025e70b 1632516917977 FirefoxAccounts DEBUG is private browsing: false 1632517314032 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1632517314032 FirefoxAccounts DEBUG getOAuthToken enter 1632517314032 FirefoxAccounts TRACE getCachedToken returning cached token 1632517314032 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1632517314033 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1632517314261 Services.Common.RESTRequest DEBUG GET https://profile.accounts.firefox.com/v1/profile 304 1632517435529 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1632517435529 FirefoxAccounts DEBUG getOAuthToken enter 1632517435529 FirefoxAccounts TRACE getCachedToken returning cached token 1632517435530 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1632517435530 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1632517435791 Services.Common.RESTRequest DEBUG GET https://profile.accounts.firefox.com/v1/profile 304 1632517442691 FirefoxAccounts DEBUG FxAccountsWebChannel message received: fxaccounts:fxa_status 1632517442692 FirefoxAccounts DEBUG fxa_status received 1632517442692 FirefoxAccounts DEBUG service 1632517442692 FirefoxAccounts DEBUG is private browsing: false 1632517670751 Sync.Service DEBUG User-Agent: Firefox/92.0 (Linux x86_64) FxSync/220.127.116.1110903235534.desktop 1632517670752 Sync.Service INFO Starting sync at 2021-09-24 16:07:50 in browser session Gq21vMX9yJrw 1632517670752 Sync.Service DEBUG In sync: should login. 1632517670752 Sync.Service INFO User logged in successfully - verifying login. 1632517670754 FirefoxAccounts DEBUG FxAccountsProfileClient: Requested profile 1632517670754 FirefoxAccounts DEBUG getOAuthToken enter 1632517670755 FirefoxAccounts TRACE getCachedToken returning cached token 1632517670755 FirefoxAccounts DEBUG getOAuthToken returning a cached token 1632517670755 FirefoxAccounts INFO Can't get keys; no key material or tokens available 1632517670757 Sync.SyncAuthManager DEBUG unlockAndVerifyAuthState: user declined to unlock master-password 1632517670758 Services.Common.RESTRequest DEBUG GET request to https://profile.accounts.firefox.com/v1/profile 1632517670760 Sync.Status DEBUG Status.login: service.master_password_locked => service.master_password_locked 1632517670760 Sync.Status DEBUG Status.service: error.login.failed => error.login.failed 1632517670760 Sync.Service DEBUG Fetching unlocked auth state returned service.master_password_locked 1632517670761 Sync.ErrorHandler ERROR Sync encountered a login error 1632517670761 Sync.SyncScheduler DEBUG Clearing sync triggers and the global score. 1632517670762 Sync.SyncScheduler DEBUG Couldn't log in: master password is locked. 1632517670762 Sync.SyncScheduler DEBUG Starting client-initiated backoff. Next sync in 900000 ms. 1632517670762 Sync.SyncScheduler DEBUG Next sync in 900000 ms. (why=client-backoff-schedule) 1632517670765 Sync.Service DEBUG Exception calling WrappedLock: Error: Login failed: service.master_password_locked(resource://services-sync/service.js:1038:15) JS Stack trace: onNotify@service.js:1038:15 1632517670765 Sync.Service DEBUG Not syncing: login returned false.
Modified by Felix Jaeckel
All Replies (1)
Did you try to remove both logins.json and key4.db files and possibly set a new Primary Password and then import the CSV file ?
You can also set signon.debug = true and check the Browser Console for login related messages. Do not forget to reset this pref once you are done testing.