BRCAChallenge / brca-exchange

Overall management and deployment of the BRCA Exchange web portal and pipeline scripts
http://brcaexchange.org
28 stars 32 forks source link

Attempt to fix "deploy-dev" script breaking in CI by forcing rsync to use ipv4 #1511

Closed e-t-k closed 1 month ago

e-t-k commented 2 months ago

an attempt to fix this error in the continuous integration script 'deploy-dev':

ssh: connect to host brcaexchange-dev.gi.ucsc.edu port 22: Cannot assign requested address rsync error: unexplained error (code 255) at log.c(245) [sender=3.1.3]

I can reproduce it by forcing rsync to use ipv6:

rsync -e 'ssh -6' myfile user@brcaexchange-dev.gi.ucsc.edu:/destination
ssh: connect to host brcaexchange-dev.gi.ucsc.edu port 22: Cannot assign requested address
rsync error: unexplained error (code 255) at log.c(245) [sender=3.1.3]`

And from some servers, pinging brcaexchange-dev.gi.ucsc.edu defaults to ipv6.

So, I believe that forcing rsync to use ipv4 from the CI will fix it. Therefore I've added -e 'ssh -4' to the two rsync lines in deploy-dev.