-
Notifications
You must be signed in to change notification settings - Fork 637
Closed
Description
I have deployed the cluster with pgAdmin UI:
users:
- name: postgres
- name: admin
options: "SUPERUSER"
userInterface:
pgAdmin:
image: registry.developers.crunchydata.com/crunchydata/crunchy-pgadmin4:ubi8-4.30-0
dataVolumeClaimSpec:
storageClassName: "longhorn"
accessModes:
- "ReadWriteOnce"
resources:
requests:
storage: 1Gi
I was able to connect to Postgres service (NodePort) from an external tool with postgres and admin users successfully...
However, when I tried to connect from pgAdmin UI - I am getting error.
In the /var/lib/pgadmin/error_log file on the running pod I can see there is an issue with ACL:
[Thu May 05 15:39:02.530463 2022] [core:notice] [pid 24:tid 139635001445824] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Thu May 05 17:38:16.732745 2022] [wsgi:error] [pid 26:tid 139634699790080] WARNING: Failed to set ACL on the directory containing the configuration database:
[Thu May 05 17:38:16.732784 2022] [wsgi:error] [pid 26:tid 139634699790080] [Errno 1] Operation not permitted: '/var/lib/pgadmin'
[Thu May 05 17:38:16.732790 2022] [wsgi:error] [pid 26:tid 139634699790080]
[Thu May 05 17:38:16.732825 2022] [wsgi:error] [pid 26:tid 139634699790080] HINT : You may need to manually set the permissions on
[Thu May 05 17:38:16.732829 2022] [wsgi:error] [pid 26:tid 139634699790080] /var/lib/pgadmin to allow daemon to write to it.
[Thu May 05 17:38:16.732832 2022] [wsgi:error] [pid 26:tid 139634699790080]
[Thu May 05 17:38:25.840229 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] 2022-05-05 17:38:25,826: ERROR\tflask.app:\t404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
[Thu May 05 17:38:25.840631 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] Traceback (most recent call last):
[Thu May 05 17:38:25.840668 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] File "/usr/lib/python3.6/site-packages/pgadmin4-web/flask/app.py", line 1813, in full_dispatch_request
[Thu May 05 17:38:25.842789 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] rv = self.dispatch_request()
[Thu May 05 17:38:25.842817 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] File "/usr/lib/python3.6/site-packages/pgadmin4-web/flask/app.py", line 1791, in dispatch_request
[Thu May 05 17:38:25.842827 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] self.raise_routing_exception(req)
[Thu May 05 17:38:25.842834 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] File "/usr/lib/python3.6/site-packages/pgadmin4-web/flask/app.py", line 1774, in raise_routing_exception
[Thu May 05 17:38:25.842842 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] raise request.routing_exception
[Thu May 05 17:38:25.842850 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] File "/usr/lib/python3.6/site-packages/pgadmin4-web/flask/ctx.py", line 336, in match_request
[Thu May 05 17:38:25.842858 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] self.url_adapter.match(return_rule=True)
[Thu May 05 17:38:25.842866 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] File "/usr/lib/python3.6/site-packages/pgadmin4-web/werkzeug/routing.py", line 1799, in match
[Thu May 05 17:38:25.842874 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] raise NotFound()
[Thu May 05 17:38:25.842888 2022] [wsgi:error] [pid 26:tid 139634428282624] [remote 10.42.2.62:42870] werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
Environment
- Platform:
Kubernetes - Platform Version:
1.21.8 - PGO Image Tag:
ubi8-5.1.0-0 - Postgres Version
14 - Storage:
longhorn
Metadata
Metadata
Assignees
Labels
No labels