@ArandomUserName ,
This is not something that comes up particularly often. As such, the team is not likely willing to sink the time into auto-detecting/auto-fixing this issue when it occurs at this time.
That said, I have opened this issue to at least improve the error messaging to inform the user performing the action as to what is causing the error and the relevant command needed to fix it:
opened 11:59PM - 19 Nov 24 UTC
suggestion
OS/Linux
OS/Desktop
### Description
Linux will throw an error message when a profile or other proce… ss attempting to be used is already in use. For example, one such user sees the following error message when attempting to change the network hostname:
```
[71346:71346:1117/150207.094641:ERROR:process_singleton_posix.cc(358)] The profile appears to be in use by another Brave process (2200756) on another computer (<old_hostname>). 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.
[71346:71346:1117/150207.094778:ERROR:message_box_dialog.cc(190)] Unable to show message box: Brave - The profile appears to be in use by another Brave process (2200756) on another computer (<old_hostname). 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.
❯ hostname
<a_different_hostname>
```
The solution to this issue/message is to remove `SingletonLock` from `.config`:
```
rm ~/.config/BraveSoftware/Brave-Browser/SingletonLock/SingletonLock
```
As it may take more time than it is worth to auto-detect this situation when it occurs (cc @fmarier on this), it may be helpful to improve the error messaging to include the cause of the error and the command to fix it.
### Steps to reproduce
1. See description
### Actual result
Error message is shown without denoting the cause of the error
### Expected result
Error message should be updated to include the cause and (potentially) the command to run to remove `SingletonLock` so that users know where to look.
### Reproduces how often
Easily reproduced
### Brave version (brave://version info)
All
### Channel information
- [x] release (stable)
- [x] beta
- [x] nightly
### Reproducibility
- [ ] with Brave Shields disabled
- [ ] with Brave Rewards disabled
- [ ] in the latest version of Chrome
### Miscellaneous information
Original user post: https://community.brave.app/t/brave-profile-locked-after-changing-network-hostname-on-linux/581533
Hope this helps.
1 Like