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:
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
.config/google-chrome directories entirely.
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
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.
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.