Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8YLI-004ou6-A8 for pgadmin-support@arkaria.postgresql.org; Wed, 06 Nov 2024 05:12:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1t8YLF-003Tch-4n for pgadmin-support@arkaria.postgresql.org; Wed, 06 Nov 2024 05:12:29 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1t8YLE-003TcZ-T3 for pgadmin-support@lists.postgresql.org; Wed, 06 Nov 2024 05:12:29 +0000 Received: from mail-yw1-x1133.google.com ([2607:f8b0:4864:20::1133]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1t8YL6-000Rok-FR for pgadmin-support@lists.postgresql.org; Wed, 06 Nov 2024 05:12:28 +0000 Received: by mail-yw1-x1133.google.com with SMTP id 00721157ae682-6e5e5c43497so50650917b3.3 for ; Tue, 05 Nov 2024 21:12:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=enterprisedb.com; s=google; t=1730869939; x=1731474739; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=DzDIUNPgfg2n0gcweeb1/igacqOF44YGAyc0NDNzspA=; b=R3bhPgzvcGFAwYiBk/3Ua5gwUnZQOiEW5QRO14pWngPU2reT6Nuf4fbTNix9HwmmQ5 ZQzH28IOpgX4KExbh6ldQkQQ73hai/wfPh0PFUIorvjlqtw3+NWUJtn0b58mqwZEudEa dCxkSwqAGT304XwlnioBeSdASNsCpDOOqXzLb7KUXtboHN4T0ZoG54MG5NB3zzwiDZ5G b/TA3bAUblNMoqIkIOZ5wUAYtUs1zNI/UBnzLdTUOQbmTncMXuPMn2eILYN8qjLobL/X ll8En+uRjVvE+oXLqP1q8aPsnIpaPffgzcvWu//0q1xEJlfkmmVfE1+erkpOQwhKvNiR kqDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730869939; x=1731474739; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=DzDIUNPgfg2n0gcweeb1/igacqOF44YGAyc0NDNzspA=; b=Ut1NAeMv8s442l+8MuXMMPLLHIwRn1Icu2yzRnAJTMd8M4Tw4OBrqf3Gqr5Pi0LJdG IKoVUxcqnf4jM3Dof7faHLKx79PY8b4hkB3RvJuJQTFd82E7iZ1dFKJfkdSOy6wKk/Tu 8nigrMxCvt9TPsB2UGaX/sgoOyb1NEIGAEkr9xabmBclGj/ZedTEkKyL05oJv4ntC1jX nnuXRXbqeuBOcq5GvZbf/XPcuwv1gXsCEnbOZrTAvMO0bNdQrg3dgPfJvMK2ITFRsfgX DvDI6b0i/q0Ds9WwewcereSKN7J9pzrlxeWuU4dSHrmSw8M52jMaGSsgZmA2h89DTY7T D2kQ== X-Gm-Message-State: AOJu0Yz2raU9IwX78kK8iXrAucx3h7otAOesTyTfGFnFEcYV90nZrjmB ai0faJ1pJk9b0VznEV7lD7nTl1ShIObt7ePN/rOLbONUTI5edALNI8L4l9d3NoooIXLUojOZ74H +Sg4scx3mO56dQbLnl8vd2PRceMV4P52zslyCGOMONGsCwaxdWg== X-Google-Smtp-Source: AGHT+IE/0J3nALyWj3uOYW2X1xoYbOwZ8U7M30S7eB4VFS47ZgAj8pDfvDcpzC4UvM7SvFlUS9oGobSOa9TKTY2y2ak= X-Received: by 2002:a05:690c:62c8:b0:6db:d217:895e with SMTP id 00721157ae682-6ea525209f4mr196022477b3.36.1730869939496; Tue, 05 Nov 2024 21:12:19 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Khushboo Vashi Date: Wed, 6 Nov 2024 10:42:07 +0530 Message-ID: Subject: Re: pgAdmin web crashes on start with external DB To: Maurice Lajoie Cc: pgadmin-support Content-Type: multipart/alternative; boundary="000000000000e58a8b0626378f87" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --000000000000e58a8b0626378f87 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, On Tue, Nov 5, 2024 at 11:07=E2=80=AFPM Maurice Lajoie = wrote: > Hi, > I successfully deployed pgAdmin web on our SAP BTP Cloud Foundry and can > access pgAdmin and logon. > I can create users and servers but when the app restarts, all entries are > lost. I=E2=80=99m assuming it=E2=80=99s using SQLite which would not be p= ersistent in the > Cloud Foundry. > You can map the pgAdmin Data directory to the outside container, so it can persist the SQLite and other data. Ref: https://www.pgadmin.org/docs/pgadmin4/8.12/container_deployment.html > I did bind web-pgadmin to a PostgreSQL, Hyperscaler Option database. > > I added the user-provided variable to PGADMIN_CONFIG_CONFIG_DATABASE_URI > with: > postgres:// > xxxxxxxxxxxxx:ff855340a50467bb21ebd99@postgres-xxxxxxxxx-f2a1-45c2-9e9d-4= cef636bcf77.cmqeanecqlnd.ca-central-1.rds.amazonaws.com:1831/xxDB-Namexx Please refer to https://www.pgadmin.org/docs/pgadmin4/latest/external_database.html for the correct variable value. Thanks, Khushboo > > > I restarted the pgadmin-web app and it crashed. > > Please find attached the application start log. I changed some of the tex= t > with =E2=80=9Cxxx=E2=80=9D for security. > > For the deployment, I used a docker image: > applications: > - name: pgadmin-web > docker: > image: dpage/pgadmin4:2024-10-19-2 > instances: 1 > memory: 1G > disk_quota: 1G > health-check-type: process > env: > PGADMIN_DEFAULT_EMAIL: > PGADMIN_DEFAULT_PASSWORD: > PGADMIN_LISTEN_ADDRESS: 0.0.0.0 > > Thank you > Moelaj > --000000000000e58a8b0626378f87 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,

<= div dir=3D"ltr" class=3D"gmail_attr">On Tue, Nov 5, 2024 at 11:07=E2=80=AFP= M Maurice Lajoie <moelaj@runbox.com= > wrote:
= Hi,
I successfully deployed pgAdmin web on our SAP BTP Cloud Foundry and can ac= cess pgAdmin and logon.
I can create users and servers but when the app restarts, all entries are l= ost. I=E2=80=99m assuming it=E2=80=99s using SQLite which would not be pers= istent in the Cloud Foundry.
You can map the pgAdmin D= ata directory to the outside container, so it can persist the SQLite and ot= her data.=C2=A0
I did bind web-pgadmin to a PostgreSQL, Hyperscaler Option database.

I added the user-provided variable to PGADMIN_CONFIG_CONFIG_DATABASE_URI wi= th:
postgres://xxxxxxxxxxxx= x:ff855340a50467bb21ebd99@postgres-xxxxxxxxx-f2a1-45c2-9e9d-4cef636bcf77.cm= qeanecqlnd.ca-central-1.rds.amazonaws.com:1831/xxDB-Namexx
=
Please refer to=C2=A0https://www.pgadmin.org/docs/pgadmin4/latest= /external_database.html for the correct variable value.

<= /div>
Thanks,
Khushboo
=C2=A0


I restarted the pgadmin-web app and it crashed.

Please find attached the application start log. I changed some of the text = with =E2=80=9Cxxx=E2=80=9D for security.

For the deployment, I used a docker image:
applications:
=C2=A0 - name: pgadmin-web
=C2=A0 =C2=A0 docker:
=C2=A0 =C2=A0 =C2=A0 image: dpage/pgadmin4:2024-10-19-2
=C2=A0 =C2=A0 instances: 1
=C2=A0 =C2=A0 memory: 1G
=C2=A0 =C2=A0 disk_quota: 1G
=C2=A0 =C2=A0 health-check-type: process
=C2=A0 =C2=A0 env:
=C2=A0 =C2=A0 =C2=A0 PGADMIN_DEFAULT_EMAIL: <email address>
=C2=A0 =C2=A0 =C2=A0 PGADMIN_DEFAULT_PASSWORD: <new password>
=C2=A0 =C2=A0 =C2=A0 PGADMIN_LISTEN_ADDRESS: 0.0.0.0

Thank you
Moelaj
--000000000000e58a8b0626378f87--