Saturday, July 22, 2023

Brave browser failed to load in Linux Mint due to a locked profile

The issue is, whenever we click on the brave browser logo, it will show a loading animation, and it won't start after a few seconds.


To troubleshoot this, I launch brave using terminal by running below command:
$ brave-browser

And I can see an error, which is
"[3056:3056:1217/082602.062706:ERROR:process_singleton_posix.cc(353)] The profile appears to be in use by another Brave process (2300) on another computer (hisham-workmachine). Brave 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 Brave."
I just found out that the error happened when I changed my hostname.

To recover brave, we just need to unlock the profile, by removing in ~/.config/BraveSoftware/Brave-Browser/SingletonLock. I usually will just rename it, and not deleting it, just in case.
$ cd ~/.config/BraveSoftware/Brave-Browser/
$ mv SingletonLock SingletonLock.0

We should be able to launch brave now 😁


No comments: