EnterpriseDB / edb-installers

PostgreSQL installers packaged by EDB
33 stars 8 forks source link

pgAdmin Runtime Environment #166

Open NoahVaknin641 opened 1 month ago

NoahVaknin641 commented 1 month ago

I just installed postgresql-17.0-rc1-windows-x64 on windows 11, everything seems to be ok during the installation, but when I execute the application pgAdmin 4 is sends me next error:


Python Path: "C:\Program Files\PostgreSQL\17\pgAdmin 4\python\python.exe" Runtime Config File: "C:\Users\nvak6\AppData\Roaming\pgadmin4\config.json" Webapp Path: "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgAdmin4.py" pgAdmin Command: "C:\Program Files\PostgreSQL\17\pgAdmin 4\python\python.exe -s C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgAdmin4.py" Environment:

Total spawn time to start the pgAdmin4 server: 0.008 Sec 2024-09-24 13:03:55,701: ERROR pgadmin: Table(s) ['query_history', 'database', 'sharedserver', 'macros', 'user_macros', 'user_mfa'] are missing in the database Traceback (most recent call last): File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgAdmin4.py", line 103, in

app = create_app()
      ^^^^^^^^^^^^

File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin__init.py", line 473, in create_app run_migration_for_sqlite() File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin__init__.py", line 440, in run_migration_for_sqlite backup_db_file() File "C:\Program Files\PostgreSQL\17\pgAdmin 4\web\pgadmin\init__.py", line 368, in backup_db_file os.rename(SQLITE_PATH, backup_file_name) PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\Users\nvak6\AppData\Roaming\pgAdmin\pgadmin4.db' -> 'C:\Users\nvak6\AppData\Roaming\pgAdmin\pgadmin4.db.20240924130355'

NoahVaknin641 commented 1 month ago

Ive already tried the following: Close All pgAdmin Instances: Ensure that no other instances of pgAdmin are running. You can check this in the Task Manager and end any pgAdmin processes. Restart Your Computer: Sometimes, a simple restart can free up the file that is being used by another process. Check for Background Processes: Make sure no background processes are using the pgadmin4.db file. You can use tools like Process Explorer to identify which process is locking the file. Rename the File Manually: o Navigate to C:\Users\nvak6\AppData\Roaming\pgAdmin. o Try renaming the pgadmin4.db file manually to something like pgadmin4.db.old. Run pgAdmin as Administrator: Right-click on the pgAdmin shortcut and select “Run as administrator” to ensure it has the necessary permissions. Check File Permissions: Ensure that your user account has full control over the pgadmin4.db file. Right-click the file, go to Properties > Security, and adjust the permissions if necessary.

sandeep-edb commented 1 month ago

Hi, The issue should be fixed in the PostgreSQL 17.0 that is released yesterday. Could you please try that?

NoahVaknin641 commented 1 month ago

Is it the 17.01 version?

On Fri, Sep 27, 2024 at 8:20 AM Sandeep Thakkar @.***> wrote:

Hi, The issue should be fixed in the PostgreSQL 17.0 that is released yesterday. Could you please try that?

— Reply to this email directly, view it on GitHub https://github.com/EnterpriseDB/edb-installers/issues/166#issuecomment-2379144524, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLRWXBXOL3RN7BRGZURS3F3ZYVEPNAVCNFSM6AAAAABOYYI7WCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGE2DINJSGQ . You are receiving this because you authored the thread.Message ID: @.***>

NoahVaknin641 commented 1 month ago

I’m still getting the same error message I just downloaded it

On Fri, Sep 27, 2024 at 9:27 AM Noah Vak @.***> wrote:

Is it the 17.01 version?

On Fri, Sep 27, 2024 at 8:20 AM Sandeep Thakkar @.***> wrote:

Hi, The issue should be fixed in the PostgreSQL 17.0 that is released yesterday. Could you please try that?

— Reply to this email directly, view it on GitHub https://github.com/EnterpriseDB/edb-installers/issues/166#issuecomment-2379144524, or unsubscribe https://github.com/notifications/unsubscribe-auth/BLRWXBXOL3RN7BRGZURS3F3ZYVEPNAVCNFSM6AAAAABOYYI7WCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZZGE2DINJSGQ . You are receiving this because you authored the thread.Message ID: @.***>

akshay-joshi commented 1 month ago

@NoahVaknin641

I have installed the latest PostgreSQL 17 on Windows 11, and pgAdmin 4 is working smoothly. If the "pgadmin4.db" file already exists, please delete it before launching pgAdmin 4.

Screenshot 2024-10-01 at 4 29 22 PM