Open
Description
Repro:
On Mac, start CRDB using this command line:
./cockroach start-single-node --insecure
EXPECTED: No error, the node should start.
ACTUAL: ERROR: failed to start server: invalid --advertise-addr: lookup AndyK-MacBook-Pro: no such host
This ping
command fails on my Mac, and is presumably the reason why the host fails to resolve:
AndyK-MacBook-Pro:server andyk$ ping $(hostname)
ping: cannot resolve AndyK-MacBook-Pro: Unknown host
We should consider not using the default hostname if it doesn't resolve. Even if we can't do that for some reason, we should change the error so that it does not reference a flag that was not actually provided.
Jira issue: CRDB-8043
Metadata
Metadata
Assignees
Labels
CLI commands that pertain to CockroachDB server processesPertains to network addressing,routing,initializationPertains to server startup and shutdown sequencesIssues specific to macOS.Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.DB Server & Security