Linux – Chrome doesn’t remember browser sessions after restart

cinnamongoogle-chromekubuntulinuxUbuntu

When I restart my computer and open Chrome again, my tabs from my previous session are reopened. However, most websites (Gmail, GitHub, Twitter/Tweetdeck, StackExchange) ask me to login again.

I'm using different user profiles and I've the same problem with all of them.

I think the problem started after updating to Chrome 53, but I'm not 100% sure that's the case and even if so, if that's a coincidence or not.

When I look at the developer console, the cookies are still there. On some websites, I'm still logged in.

How can I find out what's going wrong?

Update:
I've reinstalled Chrome (apt purge, rm -rf ~/.config/google-chrome and apt install) and now it's asking me to login again (enter my password and two-factor auth) on my Chrome profile every time I reboot restart Chrome. There is a small warning sign on my profile name (right top).

enter image description here

The settings page says 'Account sign-in details are out of date.'
enter image description here

Update 2: I even have this problem after closing Chrome and restarting it.

Best Answer

Solution

To fix this issue you need to unlock your keyring before launching chrome.

  1. Disconnect your Google account; go to chrome://settings click Disconnect your Google Account... check the box to clear local Chrome data, sign out and then close Chrome.
  2. Launch seahorse by typing seahorse into the terminal or open it from Menu>Passwords and Keys.
  3. In Default keyring delete Chrome Safe Storage and any accounts.google.com enteries.
  4. Unlock the Default Keyring and Login by right clicking and clicking Unlock
  5. Launch Chrome, go to chrome://settings and click Sign in to Chrome

Hopefully this fixes your problem, I recently installed Linux Mint and this worked for me, I don't fully understand why but it seems Chrome does not wait for the keyring to unlock and this results in chrome not being signed in.

Reproduce This Issue

Steps to reproduce this issue:

  1. Install Linux (mint or otherwise) with cinnamon (on a VM or otherwise)
  2. Install Chrome and sign in
  3. Reboot
  4. Ensure Keyrings are locked - go to Passwords and Keys and lock all Keyrings
  5. Open chrome - you will be prompted to unlock the Keyring and sign in will fail
Related Question