If you get an error like the following:
rpc error: code = 13 desc = transport is closing
it’s possible you’re running a secure cluster and need to pass in the user’s certificate flags to perform the action, e.g.
cockroach sql --ca-cert=certs/ca.cert --cert=certs/root.cert --key=certs/root.key