Skip to content

Error Connecting to server: Invalid argument (os error 22) #792

@Mafioznik662

Description

@Mafioznik662

Hi, I need some help. I have installed pgdog inside a kubernetes cluster, and I want to run pgdog services to connect to a Postgres instance, but I don't understand the reason for this error.
pgdog.toml:

[[databases]]
name = "files"
host = "myip.34"
port = 5432
shard = 0
role = "primary"

users.toml:

[[users]]
name = "user"
database = "files"
password = "mypass"

Debug logs:

2026-02-26T14:05:48.589679Z DEBUG => user@myip.34:5432/files
2026-02-26T14:05:48.594270Z ERROR error connecting to server: Invalid argument (os error 22) [super_user@myip.34:5432/files]
2026-02-26T14:05:48.922831Z  INFO new connection requested: reason=min, min=1, max=10, idle=0, taken=0, waiting=0 [user@myip.34:5432/files]
2026-02-26T14:05:48.922857Z DEBUG => user@myip.34:5432/files
2026-02-26T14:05:48.927251Z ERROR error connecting to server: Invalid argument (os error 22) [user@myip.34:5432/files]
2026-02-26T14:05:49.255804Z  INFO new connection requested: reason=min, min=1, max=10, idle=0, taken=0, waiting=0 [user@myip.34:5432/files]
2026-02-26T14:05:49.255847Z DEBUG => user@myip.34:5432/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions