After rebooting I need to log in each time in Chrome

16,472

Solution 1

Had the same issue. My system is Ubuntu 16.04 and Google Chrome 53.0.2785.101 (64-bit).

Here is my workaround:

  1. Go to Ubuntu System Settings -> Online Accounts
  2. add your Google account there
  3. turned on the switcher (not sure if it is necessary though)
  4. go to Chrome browser and login there again
  5. close the browser window

Note: you must prevent chrome processes from running after closing the window. To do this go to Chrome settings > Advanced settings (at the bottom) > Uncheck 'Continue running background apps when Google Chrome is closed'

Once I did it Chrome stopped dropping authentication after logging out in Ubuntu and also after rebooting

Solution 2

You have to enable this feature in Privacy settings. You can get there by going into Chrome settings:

Enable saving passwords

  1. Click the Chrome menu icon (the three dots on the top right).
  2. Click Settings
  3. Click Show advance settings (new the bottom of the page)
  4. (Under Privacy - Passwords and forms)Place check marks under the following:
    • Enable Autofill to fill out web forms
    • Offer Save your web passwords

Passwords can be saved even with cookies disabled. You can still check your cookie settings with the steps below.

Enable or disable cookies

  1. Click the Chrome menu icon
  2. Click Settings
  3. Click Show advance settings
  4. In the Privacy section, select Content settings
  5. Select Allow local data to be set

If all settings are set for saving passwords and it still fails check the integrity of Chrome's setting by bring it to the defaults with the following steps.

First exit out of Chrome. Then run these commands to temporarily remove the current settings.

$ cd ~/.config
$ mv google-chrome google-chrome.bak

You can get the previous settings back by renaming google-chrome.bak to the it's original.


The issue was resolved as detailed in the chat comment section by renaming the home directory to a backup name, then creating a new home directory where Google Chrome worked. Then the backup directory was migrated to the new space.

Solution 3

Workaround

If above answer does not solve the issue, installing the beta version of Google Chrome can workaround the problem.

apt install google-chrome-beta  

This seems not to solve it (entry preserved for historical reasons):

I have the very same problem and did a few hours of debugging.

My problem is only related to google-chrome-stable Version 53.0.2785.101 (64-bit) on ubuntu 16.04.

When I login at a website, cookies are set correctly. When I close chrome, log out, log back in again, the cookies are still there and everything is fine. However, if I reboot, the cookies are gone and I need to login again.

I did some debugging (reinstalling chrome, reverting to default config, starting from a clean config, everything as suggested above, ...) and the bug persits.

I installed google-chrome-unstable Version 55.0.2853.0 dev (64-bit) and everything works fine (while stable still has the issue). So this is probably a chrome software bug.

My "solution": Use firefox/chrome-unstable for a few days/weeks, just wait for the update which fixes the issue to propagate to google-chrome-stable.

By the way, I'm using ubuntu 16.04 (systemd) with dm mapper/cryptsetup which was upgraded from 14.04 and I'm still not 100% sure that my crypt partition is unmounted every time 100% correctly (though the fs is always clean). @Novah, do you have a similar setup?

It is September 2016 when I write this advice. If it hasn't resolved within a month automatically, my answer is wrong ;-) I hope to spare you a lot of debugging and frustration.

Solution 4

Please note this is already reported to the Chromium Bug Tracker: https://bugs.chromium.org/p/chromium/issues/detail?id=631171

Share:
16,472

Related videos on Youtube

Novah
Author by

Novah

Updated on September 18, 2022

Comments

  • Novah
    Novah almost 2 years

    If I reboot Ubuntu, then I need to log on each site and into Google Chrome account. What is the reason? My system is Ubuntu 16.04 and Google Chrome 53.0.2785.101 (64-bit).

    • edwinksl
      edwinksl almost 8 years
      That means your cookies are getting deleted every time you close Chrome.
    • Novah
      Novah almost 8 years
      How I can fix this?
    • David Foerster
      David Foerster almost 8 years
      Did you install Ubuntu on your computer or are you on a live system without persistence? Except for the latter case this is a Chrome issue that has nothing to do with Ubuntu.
    • Novah
      Novah almost 8 years
      @DavidFoerster I installed Ubuntu on my computer
    • Paritosh
      Paritosh almost 8 years
      Asked yesterday! I am having same issue. :-)
    • corny
      corny almost 8 years
      Do you have several entries in "~/.local/share/applications" for chrome?
    • Novah
      Novah almost 8 years
      @corny Yes. chrome-aohghmighlieiainnegkcijnfilokake-Default.desktop chrome-apdfllckaahabafndbhieahigkjlhalf-Default.desktop chrome-blpcfgokakmgnkcojhhkbfbldkacnbeo-Default.desktop chrome-pjkljhegncpnkpknbcohdijeoejaedia-Default.desktop
    • corny
      corny almost 8 years
      Does deleting those (make a backup first) solve your problem?
    • Novah
      Novah almost 8 years
      @corny It did not help.
    • Novah
      Novah almost 8 years
      @corny No, well, let it be so works.
  • Novah
    Novah almost 8 years
    At me it is all configured had already been. If click All cockies and site data cookies there, so it does not delete cookies when closing Google Chrome
  • Apologician
    Apologician almost 8 years
    @Novah The cookies isn't your issue. I put the steps referring to cookies because of your reference to it in the comments. You issue should be resolved by following the steps for passwords in the answer. Did those steps work?
  • Novah
    Novah almost 8 years
    no, it does not work.
  • Apologician
    Apologician almost 8 years
    @Novah In the password section, click Manage Passwords then checkmark Auto Sign-in. Also in the manage password section, scroll to the bottom and make sure Never Saved isn't set for the site you're having problems with.
  • Novah
    Novah almost 8 years
    Checkbox Auto Sign-in, and so checked
  • Apologician
    Apologician almost 8 years
    @Novah I appended a section to the answer for bringing Chrome back to it's default settings. Can you tell me if that resolves the password saving issue? Also, can you mention if this happens on all sites or certain sites.
  • Apologician
    Apologician almost 8 years
    @Novah When you started Chrome after moving the original directory, did it create a new one by the original name google-chrome?
  • Novah
    Novah almost 8 years
  • Igor Bukin
    Igor Bukin almost 8 years
    Hey! Unfortunately didn't work for me :( . Still struggling with this issue. My steps were the following: removed the stable version, removed google-chrome from ~/.config, installed latest dev version which is 55.0.2853.0 dev (64-bit). Authentication is dropped even when I just close the browser window. And every time I open it back I get a message "your profile could not be opened correctly...". (Ubuntu 16.04)
  • Novah
    Novah almost 8 years
    @corny I have installed google-chrome-beta and the problem persists
  • Novah
    Novah almost 8 years
    @IgorBukin It helped me.
  • Apologician
    Apologician almost 8 years
    @Novah That was one of the suggestions in chat. I suggested it as a resolution. You said you didn't want it to be associated with your Google account (chat.stackexchange.com/transcript/message/32209536#32209536‌​).
  • corny
    corny almost 8 years
    Do you have any idea why this might work?
  • corny
    corny almost 8 years
    Thanks, I only cleared the password of my gnome keyring (not giving ubuntu my google password) and now it also works.
  • Aren Cambre
    Aren Cambre over 7 years
    Per some comments on the bug report (bugs.chromium.org/p/chromium/issues/detail?id=631171), this probably works because it forces opening of the keyring before Chromium is started. It appears this has a shot of being fixed with Chromium 55. Now the real question is whether we can get Ubuntu to push out Chromium 55 on a more timely basis than its typical Chromium builds.
  • George Udosen
    George Udosen over 7 years
    Doing sudo apt-get package_name should also work. One should stay away from running commands from the root account directly as a miss-typed command can lead to very unpleasant results.
  • Vikas Avnish
    Vikas Avnish over 7 years
    thanks karel. Running any program as root require special attention otherwise system could be broken
  • George Udosen
    George Udosen over 7 years
    Its george not karel look at the end of the comment to see who made it ;).
  • Vikas Avnish
    Vikas Avnish over 7 years
    I want to thank both of You . George and Karel
  • JREAM
    JREAM over 7 years
    after so long this was the soluton!!!
  • Yalok Iy
    Yalok Iy about 6 years
    Actually, just deleting the Cookies directory is enough: askubuntu.com/a/401996/432944 I just had the same issue on ubuntu 18.04 and this was the solution for me.
  • Apologician
    Apologician about 6 years
    That was one of the first things the OP did, which didn't work in his case. He also removed the entire Chrome folder, which included all the cookies, history, configuration, and settings, and the problem remained. He indicated that he eventually resolved it by logging into Chrome via his Google account and changing settings there.
  • Foliovision
    Foliovision about 5 years
    This Content Settings guidance works on Apple OS X High Sierra and latest Chromium 72 as well. Thank you very much for the clear explanation. The exact setting is first in a long list after clicking "Content Settings": Cookies. Allow Sites to Read and Save Data". I had restricted Chromium to delete all data on quite. Became pretty tedious logging into a dozen websites on every reboot, particularly when troubleshooting and rebooting frequently.