84

I tried to start Google Chrome in terminal several times, and I keep receiving the following message:

... :ERROR:process_singleton_linux.cc(309)] The profile appears to be in use by another Google Chrome process (8629) on another computer ("previous name of the computer").  Chrome has locked the profile so that it doesn't get corrupted.  If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome.
... :ERROR:simple_message_box_views.cc(208)] Unable to show a dialog outside the UI thread message loop: Google Chrome - The profile appears to be in use by another Google Chrome process (8629) on another computer ("previous name of the computer").  Chrome has locked the profile so that it doesn't get corrupted.  If you are sure no other processes are using this profile, you can unlock the profile and relaunch Chrome.

Any suggestions?

Thanks in advance.

Zanna
  • 72,312

5 Answers5

146

This looks like Chrome bug #367048 - Cannot start chrome after changing hostname, try:

rm -rf ~/.config/google-chrome/Singleton*
bain
  • 12,200
7

If you are using newer Ubuntu like 20.04, then you must delete files in different path because you probably using snap packages:

rm -rf ~/snap/chromium/common/chromium/Singleton*
Rohlik
  • 180
  • 3
  • 7
2

Depending on how you've installed Chromium on Linux or if you've installed Google Chrome on Linux the lock file can be in one of three different places. This command will delete all of them:

rm -f ~/snap/chromium/common/chromium/Singleton* \
    ~/.config/chromium/Singleton* \
    ~/.config/google-chrome/Singleton*
Earl Ruby
  • 841
1

Had same issue on brave not launching after changing hostname on ubuntu 22.o4

Solution

Remove Profile Lock: Navigate to the directory where your Brave profile is stored. This location varies depending on your operating system:

On Windows: C:\Users\YourUsername\AppData\Local\BraveSoftware\Brave-Browser\User Data\
On macOS: ~/Library/Application Support/BraveSoftware/Brave-Browser/
On Linux: ~/.config/BraveSoftware/Brave-Browser/

Look for a file named LOCK or lockfile and delete it. This file is what Brave uses to lock the profile.

This worked for me rm -rf SingletonLock

Tu276
  • 11
  • 2
0

I tried rm and it didn't work, so I checked

ls into ~/.config/google 

and

ls ~/.config/google-chrome-beta/ 

and found no singleton files, but the following worked as it is a new system and ls found the file

rm -rf ~/snap/chromium/common/chromium/Singleton*
zx485
  • 2,865