Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customize location of runtime dir #5

Open
jannyware-inc opened this issue Nov 13, 2024 · 1 comment
Open

Customize location of runtime dir #5

jannyware-inc opened this issue Nov 13, 2024 · 1 comment

Comments

@jannyware-inc
Copy link

jannyware-inc commented Nov 13, 2024

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

@jannyware-inc
Copy link
Author

or perhaps instead of customizing it, it could be hard-coded into the pg_data directory of the server?

@jannyware-inc jannyware-inc changed the title Customize location of Unix Socket Customize location of runtime dir Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant