So I've got a really annoying problem and Google Chrome isn't providing me any information on what's causing it.
Every time I log into my account I have to again, and again, and again log into every webpage I'm using, because Google Chrome logs me out of everything I am logged in to. However, some cookies do persist, as Google remembers which account I have logged in to, and I still have access to my company's gitlab as well - it's the only service I'm not logged out of.
In case this is relevant, after I open Google Chrome there's an alert box next to my Google Chrome profile which says that Change made on my account requires logging in again
(yes, it also logs me out from Google Chrome profile).
The problem does not appear when I do not log out from my system account (e.g. when I only close Chrome and open it again).
It does not happen on other browsers, only on Google Chrome.
Thanks in advance to everyone!
Update 1: Some specs/data:
OS: Ubuntu 16.04
Chrome: 53.0.2785.143 (64-bit)
Addons: Reddit Enhancement Suite, Adblock Plus, Ghostery, ColorZilla, Json View
Startup programs: Screencloud + ubuntu default ones
It did log me out even if I wasn't logged into any profile (so there weren't any addons installed as well, so I doubt it's an addon fault)
I also uninstalled Chrome and deleted .cache/google-chrome
and .config/google-chrome
directories entirely.
Update 2:
I ran Chrome from the terminal using google-chrome --enable-logging -v=1
Following errors did appear in terminal on browser startup:
[13645:13712:1007/142537:ERROR:gcm_store_impl.cc(306)] Failed to open database /home/user/.config/google-chrome/Profile 4/GCM Store: Invalid argument: /home/user/.config/google-chrome/Profile 4/GCM Store: does not exist (create_if_missing is false)
[13645:13712:1007/142537:ERROR:gcm_store_impl.cc(306)] Failed to open database /home/user/.config/google-chrome/Profile 4/GCM Store: Invalid argument: /home/user/.config/google-chrome/Profile 4/GCM Store: does not exist (create_if_missing is false)
However, the folder /home/user/.config/google-chrome/Profile 4/GCM Store
does exist.
This error does not appear when starting chrome as root with:
sudo google-chrome --user-data-dir=/root/chrome-data --enable-logging -v=1
Update 3
So I closed Chrome, deleted /home/user/.config/google-chrome/Profile 4
directory and once again configured my account. I logged out, and then the following errors appeared:
[21285:21353:1007/145425:ERROR:gcm_store_impl.cc(922)] Failed to restore security token.
[21285:21285:1007/145425:ERROR:account_tracker.cc(357)] OnGetTokenFailure: Not authorized.
Update 4:
I managed to fix (or at least I think so) the problems with Google Chrome errors and it does not log me out from Chrome Profile. I did this by moving the whole /root/chrome-data
(created earlier) directory to ~/.config/google-chrome
and changing it's owner. However, the browser still does not keep cookies after user logout.
changes has been made on this profile
and I need to log-in once again - and all logged-in sessions gone. Maybe, indeed, it's something with profiles and permissions/disk issue(got SSD)?