Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system.

From: Akshay Joshi <akshay(dot)joshi(at)enterprisedb(dot)com>
To: Daulat <daulat(dot)dba(at)gmail(dot)com>
Cc: Usman Khan <umk555(at)gmail(dot)com>, Khushboo Vashi <khushboo(dot)vashi(at)enterprisedb(dot)com>, pgadmin-hackers <pgadmin-hackers(at)postgresql(dot)org>
Subject: Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system.
Date: 2025-05-15 10:18:35
Message-ID: CANxoLDcMd25wV7e8PMXq8bQqCj6=GL_2XWyybKx2uoibVUtgpA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgadmin-hackers pgsql-admin

FYI, pgAdmin 4 v9.2 is the last version to offer official support for
Ubuntu 20.04

On Thu, May 15, 2025 at 3:28 PM Daulat <daulat(dot)dba(at)gmail(dot)com> wrote:

> Yes Ushman, this is not working.
>
> sudo /usr/pgadmin4/bin/setup-web.sh
>
> Setting up pgAdmin 4 in web mode on a Debian based platform...
> Creating configuration database...
> */usr/pgadmin4/bin/setup-web.sh: line 75: /usr/pgadmin4/venv/bin/python3:
> No such file or directory*
> Error setting up server mode. Please examine the output above.
>
> On Thu, May 15, 2025 at 3:16 PM Usman Khan <umk555(at)gmail(dot)com> wrote:
>
>> Hi Daulat,
>> If you have installed it through apt package, why do you need to activate
>> the virtual environment? should not triggering the command alone
>>
>> */usr/pgadmin4/bin/setup-web.sh*
>>
>> work for you?
>>
>> On Thu, May 15, 2025 at 2:35 PM Khushboo Vashi <
>> khushboo(dot)vashi(at)enterprisedb(dot)com> wrote:
>>
>>>
>>>
>>> On Thu, May 15, 2025 at 2:59 PM Usman Khan <umk555(at)gmail(dot)com> wrote:
>>>
>>>> adding pgadmin-hackers and removing pgsql-admin(at)lists(dot)postgresql(dot)org
>>>> for better guidance.
>>>> Please forward all queries related to pgadmin to
>>>> pgadmin-hackers(at)postgresql(dot)org
>>>>
>>>> On Thu, May 15, 2025 at 2:19 PM Daulat <daulat(dot)dba(at)gmail(dot)com> wrote:
>>>>
>>>>> Hello Team,
>>>>>
>>>>> I am currently facing an issue while installing pgAdmin 4 in web mode
>>>>> on an Ubuntu 20.04 (Focal) system.
>>>>>
>>>>> Error:
>>>>>
>>>>> /usr/pgadmin4/venv/bin/python3: can't open file
>>>>> '/usr/pgadmin4/web/setup.py': [Errno 2] No such file or directory
>>>>>
>>>>> ls -l /usr/pgadmin4
>>>>> total 24
>>>>> drwxr-xr-x 4 root root 4096 May 15 09:01 bin
>>>>> -rw-r--r-- 1 root root 11206 Apr 2 10:26 sbom-desktop.json
>>>>> -rw-r--r-- 1 root root 474 Apr 2 10:26 sbom-web.json
>>>>> drwxr-xr-x 6 root root 4096 May 15 08:58 venv
>>>>>
>>>>> Since the pgAdmin installation did not automatically create the
>>>>> required virtual environment, I manually set it up using python3.8 -m venv
>>>>> /usr/pgadmin4/venv, but the setup still fails due to a missing setup.py
>>>>> file in /usr/pgadmin4/web/
>>>>>
>>>>>
>>> The setup-web.sh file location is */usr/pgadmin4/bin, *you have
>>> mentioned /usr/pgadmin4/web/.
>>>
>>>
>>>
>>>> sudo python3.8 -m venv /usr/pgadmin4/venv
>>>>> source /usr/pgadmin4/venv/bin/activate
>>>>>
>>>>> I followed the following steps from
>>>>> https://www.pgadmin.org/download/pgadmin-4-apt/
>>>>>
>>>>> Please advise.
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>>

In response to

Browse pgadmin-hackers by date

  From Date Subject
Next Message Aditya Toshniwal 2025-05-19 07:25:07 Re: Open Source Contribution
Previous Message Daulat 2025-05-15 09:57:44 Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system.

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2025-05-15 12:27:57 Re: Postgre's replica holding huge amount of WAL
Previous Message Daulat 2025-05-15 09:57:44 Re: pgAdmin 4 in web mode on an Ubuntu 20.04 (Focal) system.