GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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) #10687

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
cannot connect to existing local server with pgAdmin 4.18 (windows)#10687
Copy link
Labels
Bug

Description

@kajiev
kajiev
opened on Oct 27, 2026
Issue body actions

I 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

Activity

  1. kajiev
    added
    Bug
    on Oct 27, 2026
  2. DieListe01 commented on Oct 28, 2026

    @DieListe01
    DieListe01
    on Oct 28, 2026
    More actions

    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)

  3. bcostes commented on Oct 29, 2026

    @bcostes
    bcostes
    on Oct 29, 2026
    More actions

    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

  4. 66rgkite commented on Oct 29, 2026

    @66rgkite
    66rgkite
    on Oct 29, 2026
    More actions

    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

  5. dpage commented on Nov 5, 2026

    @dpage
    dpage
    on Nov 5, 2026
    Contributor
    More actions

    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.)

  6. dpage
    closed this as a duplicateof Windows 9.18: GSSAPI-enabled libpq causes "access violation writing 0x0" on connect, and a missing gssapi64.dll for pg_dump #10428 on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.