Have you installed pgAdmin 4 in upgrade mode or as a fresh installation? Please check if any other instance of pgAdmin is running and accessing the file "C:\Users\rupik\AppData\Roaming\pgAdmin\pgadmin4.db".
Try to remove the "C:\Users\rupik\AppData\Roaming\pgAdmin\pgadmin4.db" file and relaunch pgAdmin 4.
I am getting the error while opening pg admin 4 and unable to understand below error , and i saw many videos about these
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\rupik\\AppData\\Roaming\\pgAdmin\\pgadmin4.db' -> 'C:\\Users\\rupik\\AppData\\Roaming\\pgAdmin\\pgadmin4.db.20240722153053' Please assist me to solve this error.