GeezerVison is showing github.com — cannot connect to existing local server with pgAdmin 4.18 (windows) · Issue #10687 · pgadmin-org/pgadmin4
cannot connect to existing local server with pgAdmin 4.18 (windows) #10687DescriptionI cannot connect to existing local server with pgAdmin 4.18 (windows).
If to downgrade to version 4.17 everything works OK.
To Reproduce
Upgrade to 4.18 from 4.15.
Then start the app, expand server group and click an existing server connection.
Error message
It is somewhat "Error: cannot write to 0x00000000"
Additional context
OS: windows
Running pg db servers version: 13.x ActivityDieListe01 commented on Oct 28, 2026 same problem:
<urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1032)>
and then exception: access violation writing 0x0000000000000000 (after login) bcostes commented on Oct 29, 2026 Hello,
Same problem here on Windows: exception: access violation writing 0x0000000000000000 when connecting to one specific server. Other registered servers work fine.
Failing: pgAdmin [version] / Working: pgAdmin [version] (downgrading fixes it)
Server: PostgreSQL 17.11 (Debian), scram-sha-256
Reproduced on two different workstations
Same connection settings work in QGIS and DBeaver 66rgkite commented on Oct 29, 2026 I have same message when connecting to an AWS RDS postgresql instance.
- ssl-mode was set to verify-full
- Root-certificate was configured and accessible
- Error vanished with GSS encmode set to disable
Log:
2026-10-29 11:20:04,662: ERROR pgadmin: exception: access violation writing 0x0000000000000000
Traceback (most recent call last):
File "C:\Program Files\pgAdmin 4\web\pgadmin\browser\server_groups\servers_init_.py", line 1376, in create
status, errmsg = conn.connect(
~~~~~~~~~~~~^
password=password,
^^^^^^^^^^^^^^^^^^
...<2 lines>...
server_types=ServerType.types()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "C:\Program Files\pgAdmin 4\web\pgadmin\utils\driver\psycopg3\connection.py", line 380, in connect
pg_conn = psycopg.Connection.connect(
connection_string,
cursor_factory=DictCursor,
prepare_threshold=manager.prepare_threshold)
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg\connection.py", line 109, in connect
rv = waiting.wait_conn(gen, interval=_WAIT_INTERVAL)
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg\waiting.py", line 118, in wait_conn
fileno, s = gen.send(ready)
~~~~~~~~^^^^^^^
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg_connection_base.py", line 441, in _connect_gen
pgconn = yield from generators.connect(conninfo, timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg\generators.py", line 84, in _connect
status = conn.connect_poll()
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg\pq\pq_ctypes.py", line 127, in connect_poll
return self._call_int(impl.PQconnectPoll)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\pgAdmin 4\python\Lib\site-packages\psycopg\pq\pq_ctypes.py", line 814, in _call_int
return func(self._pgconn_ptr)
OSError: exception: access violation writing 0x0000000000000000 dpage commented on Nov 5, 2026 Thanks for the reports. This is the same bug as #10428: the PostgreSQL 18 libpq bundled with 9.18 on Windows was built with GSSAPI support, but the installer didn't ship all of the Kerberos runtime it needs, so connecting to any server that accepts GSS encryption crashed with access violation writing 0x0000000000000000. That's why it only affects some servers, and why setting GSS encmode to disable works around it.
It was fixed by #10440, which is in pgAdmin 9.19, and #10715 has a confirmation that 9.19 connects without the workaround. Please upgrade to 9.19; if you still see the access violation there with GSS encmode left at its default, please reopen this with the pgAdmin version and the traceback from the log.
(The CERTIFICATE_VERIFY_FAILED message mentioned above is unrelated: it comes from pgAdmin's online version check, not from the database connection.)
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|