Skip to content

Customize location of runtime dir #5

@jannyware-inc

Description

@jannyware-inc

I'm running into an issue where pgserver fails to start for unprivileged users on RHEL 9. Upon server setup it will fail with PermissionError: [Errno 13]: Permission denied: b'/run/user/0/python_PostgresServer'. I believe this is due to platformdirs incorrectly resolving a directory and not the fault of pgserver. I can workaround by running under my user $ export XDG_RUNTIME_DIR=/home/admin, but I would like to eliminate the need for this, possibly by using the 'env' parameter of subprocess.run() which spawns the PG server.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions