cli/start: sdnotify socket listen chokes if $PWD is too long #76904
Labels
A-cli-server
CLI commands that pertain to CockroachDB server processes
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
T-server-and-security
DB Server & Security
We create cockroach single node instances in tests, to write integration-style tests against. Our builds happen in sandboxes; in particular TMPDIR is typically set to a very long path.
We don't want to hit disk so we point the cockroach node at a ram disk. We pass --temp-dir and --socket-dir ; something in cockroach ignores these and attempts to create a unix socket in $TMPDIR. This fails because the maximum length of a unix socket name is 108 chars, and our sandbox's tmp dir name takes the length over that.
Example, doing things straight on the command line. (This is on EL 7.)
Set up directories:
Override TMPDIR to something reasonable and cockroach works:
This looks like something internal is preferring env variables to explicitly passed flags, which I think is a bug.
Jira issue: CRDB-13317
The text was updated successfully, but these errors were encountered: