Closed kmarimuthu90 closed 2 months ago
Hi @kmarimuthu90, I couldn't reproduce this issue. Did you face this issue with all the queries or a particular one? Have you tried using any other Postgres server?
It's happening randomly in Postgresql queries. We are facing this issue on all env from dev to prod PostgreSQL flexible server db
I am using this helm chart, helm repo add runix https://helm.runix.net helm pull runix/pgadmin4 --untar --version 1.26.0
@kmarimuthu90, whenever you encounter this error, please check the connection status through Dashboard. This error will occur only if the query tool loses its connection cursor; in that case, pgAdmin should show the connection lost popup.
I don't see any connection loss here
Sometimes we get results like this,
Select query from the same query tool,
Is there any doc available to install pgadmin with nginx ingress by using helm?
Is there any update? I'm having the same issue (Not using K8S, just in Docker).
2024-07-19 08:35:38,078: ERROR pgadmin: 'NoneType' object has no attribute '_query' Traceback (most recent call last): File "/venv/lib/python3.12/site-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib/python3.12/site-packages/flask/app.py", line 865, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/venv/lib/python3.12/site-packages/flask_login/utils.py", line 290, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/authenticate/mfa/utils.py", line 304, in inner return mfa_enabled( ^^^^^^^^^^^^ File "/pgadmin4/pgadmin/authenticate/mfa/utils.py", line 169, in mfa_enabled return execute_if_enabled() ^^^^^^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/authenticate/mfa/utils.py", line 301, in if_else_func_inner return _func(first, second) ^^^^^^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/authenticate/mfa/utils.py", line 242, in mfa_session_authenticated return authenticated() if session.get('mfa_authenticated', False) is True \ ^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/authenticate/mfa/utils.py", line 297, in execute_func return wrapped(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/user_login_check.py", line 22, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/pgadmin4/pgadmin/tools/sqleditor/__init__.py", line 992, in poll conn._Connection__async_cursor._query) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'NoneType' object has no attribute '_query'
@Ctrl-Elite,
We have fixed the issue; you can test it on the snapshot. docker pull dpage/pgadmin4:snapshot
Issue fixed and verified with snapshot-build OS - macOS/Ubuntu
Hi team,
Is this fix included in any of the helm chart app version? I am using helm chart pgadmin4-1.26.0 and app version 8.8.
Thanks, Krishnakumar.M
On Mon, Jul 22, 2024 at 1:39 AM Rohit Bhati @.***> wrote:
Closed #7660 https://github.com/pgadmin-org/pgadmin4/issues/7660 as completed.
— Reply to this email directly, view it on GitHub https://github.com/pgadmin-org/pgadmin4/issues/7660#event-13597663376, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQEA5P6RHOBHFXKA7MI6MP3ZNTAKLAVCNFSM6AAAAABKJRKAJWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJTGU4TONRWGMZTONQ . You are receiving this because you were mentioned.Message ID: @.***>
@kmarimuthu90, we do not support the helm chart. We have fixed this issue and will be available in the next release. You need to keep an eye on the helm chart updated version which will include this fix.
PgAdmin Setup Details:
pgadmin service running on AKS:
Issue:
When we run the below query it returns 'NoneType' object has no attribute '_query'
Logs from the PgAdmin pod:
Here are the values.yaml for the pgadmin deployment:
Kindly help on this pls