dvgamerr-app/go-hoyolab

The process cannot access the file because it is being used by another process.

dvgamerr opened this issue · 3 comments

Why The process cannot access the file because it is being used by another process.

Describe the logging

2023/08/23 18:56:56 Default configuration created.
2023/08/23 18:56:56 Browser total 2 sessions
2023/08/23 18:56:56 Profile chrome::"คนที่ 1"
2023/08/23 18:56:56 open C:\Users\Rhythm\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies: The process cannot access the file because it is being used by another process.
2023/08/23 18:58:17 Readed configuration .
2023/08/23 18:58:17 Browser total 2 sessions
2023/08/23 18:58:17 Profile chrome::"คนที่ 1"
2023/08/23 18:58:17 open C:\Users\Rhythm\AppData\Local\Google\Chrome\User Data\Default\Network\Cookies: The process cannot access the file because it is being used by another process.

Check Using Resource Monitor

When the error message pops up, it might also give you the name of the file that is in use by another process. If it does, you can use a Windows built-in utility named Resource Monitor to check the process that is using the file.

To check the process using a resource monitor,

  1. Press Windows + R, type resmon.exe, and press Enter.
    image

  2. Make sure that you are in the CPU tab.

  3. Expand Associated Handles.

  4. Type the filename in Search Handles. You should be able to see the file in the search result.

  5. Right-click on the file, and select End process.
    image

  6. The new process should now be able to access the file.

OK, becouse Chorme update new version and lock Cookies
I will update later.

Create a new profile in your Chrome hoyoverse login account and specify the profile name in the yaml.

image