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

gargoyle creates too long socket filenames #14

Open
danbornside opened this issue Jun 8, 2018 · 1 comment
Open

gargoyle creates too long socket filenames #14

danbornside opened this issue Jun 8, 2018 · 1 comment

Comments

@danbornside
Copy link
Contributor

when running gargoyle in long pathnames, launching postgres fails because the filename of the unix domain socket is too long (max 107 on linux)

postgres (PostgreSQL) 9.5.9
[dbornside@bornside tezos-bake-central]$ "/nix/store/phf8zhbbvfar40fz3jdbfxq9bg5l6hvp-postgresql-9.5.9/bin/postgres" "-h" "" "-D" "/home/dbornside/src/obsidian/tezos-baking-platform/tezos-bake-monitor/tezos-bake-central/place/bake-monitor/db/work" "-k" "/home/dbornside/src/obsidian/tezos-baking-platform/tezos-bake-monitor/tezos-bake-central/place/bake-monitor/db/work"
LOG:  Unix-domain socket path "/home/dbornside/src/obsidian/tezos-baking-platform/tezos-bake-monitor/tezos-bake-central/place/bake-monitor/db/work/.s.PGSQL.5432" is too long (maximum 107 bytes)
WARNING:  could not create Unix-domain socket in directory "/home/dbornside/src/obsidian/tezos-baking-platform/tezos-bake-monitor/tezos-bake-central/place/bake-monitor/db/work"
FATAL:  could not create any Unix-domain sockets
[dbornside@bornside tezos-bake-central]$
@ghost
Copy link

ghost commented Jul 16, 2018

I think tmp-postgres is the furthest along in dealing with boundary conditions like this. The author studied pg_tmp before writing his utility and it uses a temporary directory instead to create the socket file within.

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