Skip to content

Linux server deployment: dd.bootstrap.cluster must set or provision the socket directory Debian moves to /var/run/postgresql (deferred from #228) #229

Closed as not planned

Description

@holden

Filed from the one open review thread on #228, by the owner's decision on #211 (7 October): it does not affect the Mac move and is deferred to the Linux server deployment that #211 names as future work.

The finding. #228 stopped writing unix_socket_directories when it creates a cluster, because on this Mac it forced an unneeded restart. PostgreSQL's compiled-in default socket directory is /tmp, but Debian's packages patch it to /var/run/postgresql (51-default-sockets-in-var.patch). On a Debian or Ubuntu server, a cluster created by mix dd.bootstrap.cluster without that directory existing and writable by the PostgreSQL account fails to start, and the tool's local connections would look for a socket that is never created.

The fix, when the Linux deployment starts. Either pass the socket directory explicitly as a server command-line option whenever one is set (and have dd.bootstrap.cluster verify it exists and is writable before initdb), or create and own the Debian default directory as part of the server's provisioning. Add a test that a cluster created on a Debian-defaulted build starts and answers on its socket.

Not needed for #211. The Mac move runs on Postgres.app 18.2, whose default is /tmp, and every connection the move makes is over TCP on localhost.

Activity

  1. holden commented on Oct 21, 2026

    @holden
    MemberAuthor

    Absorbed into #252 (hosting: host choice, release build, the pins to lift), on the owner's word, 21 October 2026. #252 carries the 21 October hardware inventory and the recommendation; this issue's content stands as part of its checklist.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions