pgAdmin4 error after clean install in Kubernetes cluster

8/23/2021

After deploying a fresh instance of pgAdmin4 in a Kubernetes cluster everything seems to work and I can login. However, right after login I can see an error in the log:

[ERROR] Error handling request
Traceback (most recent call last):
  File "/venv/lib/python3.8/site-packages/gunicorn/workers/gthread.py", line 326, in handle_request
    resp.write_file(respiter)
  File "/venv/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 385, in write_file
    if not self.sendfile(respiter):
  File "/venv/lib/python3.8/site-packages/gunicorn/http/wsgi.py", line 375, in sendfile
    self.sock.sendfile(respiter.filelike, count=nbytes)
  File "/usr/lib/python3.8/socket.py", line 482, in sendfile
    return self._sendfile_use_sendfile(file, offset, count)
  File "/usr/lib/python3.8/socket.py", line 346, in _sendfile_use_sendfile
    self._check_sendfile_params(file, offset, count)
  File "/usr/lib/python3.8/socket.py", line 460, in _check_sendfile_params
    raise ValueError(
ValueError: count must be a positive integer (got 0)

It seems like the configuration also did not get picked up correctly since I can not see my predefined DB servers in the left column. I followed this written tutorial for the deployment: https://www.enterprisedb.com/blog/how-deploy-pgadmin-kubernetes

-- Heikkisorsa
kubernetes
pgadmin-4
python

0 Answers