Skip to content

pgAdmin desktop mode fails with CryptKeyMissing on Debian 13 (Trixie) — OS keyring unavailable in RDP session #10107

Description

@hiteshjambhale

Describe the bug

In desktop mode on Debian 13 (Trixie), pgAdmin fails with CryptKeyMissing when trying to register or connect to a server. The OS secret storage (keyring) fails silently — likely because no D-Bus session or GNOME Keyring daemon is available in the RDP environment — leaving the crypt key unset. The same setup works correctly on Debian 12.

To Reproduce

Install pgAdmin on Debian 13 (Trixie) — DEB package
Launch pgAdmin in desktop mode
Try to register a new server and save a password
Expected behavior

Server registers and connects successfully without any encryption key errors.

Error message

pgadmin.utils.exception.CryptKeyMissing: Crypt key is missing.
Screenshots

(add screenshot of the error here)

Desktop:

OS: Debian 13 (Trixie)
pgAdmin version: (fill in your version)
Mode: Desktop
Package type: DEB
Additional context

Works correctly on Debian 12 (same setup, same pgAdmin version)
Works correctly on Debian 13 in server mode (web browser access)
Root cause: USE_OS_SECRET_STORAGE = True by default, but the OS keyring is unavailable in the RDP session on Debian 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions