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 1vA8kR-00Ea5e-Uy for pgadmin-support@arkaria.postgresql.org; Sat, 18 Oct 2025 15:21:35 +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 1vA8kQ-0086Qi-PL for pgadmin-support@arkaria.postgresql.org; Sat, 18 Oct 2025 15:21:33 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1vA8kQ-0086Qa-GO for pgadmin-support@lists.postgresql.org; Sat, 18 Oct 2025 15:21:33 +0000 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1vA8kN-002TWk-2f for pgadmin-support@lists.postgresql.org; Sat, 18 Oct 2025 15:21:32 +0000 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-47117e75258so11886805e9.2 for ; Sat, 18 Oct 2025 08:21:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1760800890; x=1761405690; darn=lists.postgresql.org; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:from:to:cc:subject:date:message-id :reply-to; bh=iwxHbuK5XbD5pnLEdFb5Ox5YPsLGJ+5LOSM1WRUmlUo=; b=a0dcOe0xz3cXt2W8bH2TLyrLmzX9ByZtlqYd92C+ZH0ToU6Gw3SOCpEMeZENnn8PO0 obl3xRRIWpo0UHZBoGKVscrO7AEJAJ7AINEpUaRE5KvLR139fiv0LZ6eNCwhkIGHA0VT y7jBHP3QTfanMfvu0fhgnysL+9ODra78uqipcFPS7IEssqLnutQNDV4f7pLwvjhWWr0+ 2YdHXERZpxas/Kvf4zIY59aAhkNydCCyF+zbI/DhqjrlCXHChC33AymUUAa4hzbw+2cA Z+hIXqjG1J9JUTcGg6I5Q4DXVMxyOjBL7g13f5IgQL2mxBlKOp6hOGLRc3LBb6IQ1lDD BTSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760800890; x=1761405690; h=message-id:in-reply-to:to:references:date:subject:mime-version :content-transfer-encoding:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=iwxHbuK5XbD5pnLEdFb5Ox5YPsLGJ+5LOSM1WRUmlUo=; b=YrTaAH68DuykHSdVI52i/xe9rri4G93zWqsW8DtcnPLIBMdcV1fFAl/mdrXYmNcWvD d8xSwoLEeAHEBhNrvN0QjlVoqLVjtJ4YK8+z1WtRF2ibtImXmFcSsk89NvE+3lkJ/EJK RT3X82uSXExgByIMV+Nyj+RWfzoBuIWXXmkwPbEP+38XbCZkAAbvcA6VYfcZg8nGS0ww fy8PaKpK5B1/PaseaId4udizlPwKdk/2Bw7zCp3PY1BpkR9m6p9hOslWWreMncmHbDJU BiFqLG5eECjpnQZNDJEAIqWmohwAYdIiSB5H72ydgfbWuTtjUn+t0ee9jptUfEsr0DOu gT8w== X-Gm-Message-State: AOJu0Yx56t/i9gIuOdjhHeOk+TFpNwdHsovjGye4+09PxIgAAw0PctFz HusRtKwHoM6oOfff/DgNzu9isjx2djFkGvQ44Ub6cN00IwfYFQ0+X5Uv7wrdKUow X-Gm-Gg: ASbGnctdJc5G+H0ngBgViX0eLN3ta4OZcVuA+JQEzyTL1fAI5IVX8LhT+bvAYHmnAAj Q2wWryLhuIVpUHdvH+8rQidreD8B3njqlHo9dsxBtNwgyz2ez2ZrGg6FzD6kIYPgAwumuz7i84X zyHjksF2Mlk2FEYHvBjhDT8wqZIj5u1wG64ZG/nrK5Y/dmtJ3s9cwYOGTSn13L6Morwz+y9d+25 IVpiLeYIvWDMgCEn/7/KNqss8wrvQbIgBPig7aSgAF94/SAE2WrkESY0gFekdlXbGy9EBLEkfkn 2fgE8WQsDJ2sUNuEmUbX97f8MhfI1tjFJvQx3RzNiT7vVOFdzMlWxIOkjPG0XHbMmJOkMqLmbWn J/girGxVNeoctvX9DXHCwC7hWTpQKo60C5tDMH878BFVogtID6+PIdRomx1iW8qubE+99JQgw4q 7Q+tAfVDOVP6eHfZctrgUhw+IHcHr09Ue/ax4zxctN2nIR7ioc8Qtsf613SsV9ngGveODtJjKN X-Google-Smtp-Source: AGHT+IGb0210uSn5xme1jn1RPmgUVpFD2OIVINxCH/k7765++/OaxaboYC882Xz8R9B6IxpulGfnvw== X-Received: by 2002:a05:600c:3553:b0:46e:1cc6:25f7 with SMTP id 5b1f17b1804b1-4711789daf3mr52577345e9.9.1760800890243; Sat, 18 Oct 2025 08:21:30 -0700 (PDT) Received: from smtpclient.apple (host-109-89-202-252.dynamic.voo.be. [109.89.202.252]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4715e2ee446sm22261515e9.6.2025.10.18.08.21.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 18 Oct 2025 08:21:29 -0700 (PDT) From: Bastiaan Wakkie Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81\)) Subject: Re: Opening and saving files (crtl-o) (in 9.6 and 9.8) results in 500 error/Access denied Date: Sat, 18 Oct 2025 17:20:59 +0200 References: To: "pgadmin-support@lists.postgresql.org" In-Reply-To: Message-Id: <72B3573D-7E61-4D20-AE8B-8EB6DA2672F8@gmail.com> X-Mailer: Apple Mail (2.3826.700.81) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk UPDATE: After upgrading to 9.9 still the same problem.=20 Im getting... When saving: ... and [! Request failed with status code 500] error popup = and =E2=80=9CAccess denied (=E2=80=A6)=E2=80=9D in the Message pane.=20 When opening an already stored file: ... an [! Request failed with = status code 500] error popup. If Im logged in as pgadmin on the server (the user running the app) and = I could create a file in the storage directory. I even tried to make one = file world readable (chmod 777) but still I am getting the above errors. = I do see any file created directly in the storage.=20 I also started Firefox 144.0 without extensions to see if this was = causing the problem. But not as I expected as an 500 error indicates = something server side. But I am ticking off any possible way to trace = why this problem is happening. Still nowhere I am able to detect any indication in the log files. The only thing that works is creating a new folder via the storage = manager and rename files =E2=80=A6 weirdly enough. Could it be that I open the query tool always tool in a new tab? I=E2=80=99= m have trouble finding the setting to disable this btw to test this = hypothesis. I also note that options/storage/last storage is set to None. While the = last directory changes when I move around. Ps running pgadmin4 in a venv with python 3.13.7 Thx, Bastiaan > On 11 Oct 2025, at 12:10, Bastiaan Wakkie wrote: >=20 >=20 >=20 > Hi all, >=20 >=20 > Opening and saving files (crtl-o) (in 9.6 and 9.8) results in 500 = error/Access denied >=20 > The rest of the pgadmin4 application is working like normal.. >=20 > I can run any sql queries without problems, just cannot load or save = any files! >=20 >=20 > What did I do/remember: >=20 > 1) recently updated postgresql to 17.5 on manjaro rolling release. >=20 > 2) I remember that I went to the root of the storage when it started = to act weird. Not sure this is connected though >=20 > 3) When I try opening any file stored in the storage, I'm getting ...=20= > "Request failed with status code 500"=20 > ... error in the application but I cannot find *anywhere* in the logs = an indication of what is happening (Also not in my postgresql, = supervisor, nginx or journalctl logs). >=20 > 4) I updated pgadmin4 from 9.6 to 9.8 like I always do (pip install -U = pgadmin4) to see if this would fix it but the problem persists. >=20 > 5) ...I changed CONSOLE_LOG_LEVEL =3D 10 in the hope to see more but = alas...=20 >=20 > 6) ...I enabled postgresql log to see something comes up there, but no = postgresql seems quietly doing it's thing.. >=20 > 7) I checked the ... > STORAGE_DIR =3D "/data/databases/pgadmin4/storage" > ... and all is owned by the pgadmin user. >=20 > 8) Via the command line I can add/delete/remove files/directories in = the storage folder and I will see them in the storage (manager) but = still unable to open or save any file. >=20 > 9) BUT when I create a new sql script and try to save it or "save as" = I am getting an "Access denied" message : > "Successfully run. Total query runtime: 311 msec. 14603 rows affected. = Access denied (/new script.sql)Access denied (/new_file.sql)Access = denied (/two.new.sql)" > (The message keeps appending my last attempts, btw) >=20 >=20 > Did anybody else had this problem before? >=20 > ... and know how to fix it?=20 >=20 > ... or knows a way to track down the 500 error of the app. >=20 >=20 > or is this git issue material? >=20 > Cheers, >=20 > Bastiaan >=20 >=20 >=20