bitbucket - Git error: "fatal: The remote end hung up unexpectedly" -
strange issue here. keep getting connection closed remote host when 48 of our servers try pulling git. when running .sh file directly (which has git pull code), there no issue, unless run @ same time other pulls (*/5 cron job).
below .sh file run:
#!/bin/bash branch=master base_dir=/root/api if [ ! -d $base_dir ]; mkdir -p $base_dir fi cd $base_dir if [ ! -d .git ]; git init git remote add origin git@bitbucket.org:deximedia/api_nodejs.git git pull origin $branch forever start $base_dir/call/index.js elif [[ $(git ls-remote origin -h refs/heads/master | awk '{ print $1 }') != $(git rev-list --max-count=1 master) ]]; git pull origin $branch forever stop $base_dir/call/index.js forever start $base_dir/call/index.js fi and below error see when servers try running above .sh file:
ssh_exchange_identification: connection closed remote host fatal: remote end hung unexpectedly ssh_exchange_identification: connection closed remote host fatal: remote end hung unexpectedly
Comments
Post a Comment