flux-core
flux-core copied to clipboard
ssh connector hangs if there's output from `.bashrc` on tuolumne
A user noticed that an invocation of hostname in their .bashrc was causing flux-proxy to fail with <uri>: invalid argument.
Using FLUX_URI=ssh://<remote-uri> flux resource list seems to hang.
My guess is that the output is causing a failure in the flux-relay protocol, however, the real issue seems to be that .bashrc is even being evaluated for a non-interactive ssh (though I could be mistaken about this).
FWIW, I could not reproduce this on my own test cluster.
Oh, on my test cluster I have this boilerplate at the top of my ~/.bashrc:
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac