flux-core icon indicating copy to clipboard operation
flux-core copied to clipboard

ssh connector hangs if there's output from `.bashrc` on tuolumne

Open grondo opened this issue 4 months ago • 1 comments

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.

grondo avatar Aug 27 '25 18:08 grondo

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

grondo avatar Aug 27 '25 18:08 grondo