summaryrefslogtreecommitdiff
path: root/start-container-docker.sh
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@linaro.org>2019-08-12 09:09:39 +0000
committerChristophe Lyon <christophe.lyon@linaro.org>2019-08-12 09:09:39 +0000
commitfd44e71e23b14d04b0c811a8b53554e12aa09aa7 (patch)
tree19ec6a2af330f93d2458f6ac811c30194659688e /start-container-docker.sh
parent58723b522a4f1357b382e415b7ae5e954fc63c7f (diff)
start-container-docker.sh: Add 'ssh -v' calls to get more debug traces
We still experience random ssh connexion failures, and need more info to debug the problem. Change-Id: I72d49a41985e50624fca3fb49be083267cd33b8b
Diffstat (limited to 'start-container-docker.sh')
-rwxr-xr-xstart-container-docker.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/start-container-docker.sh b/start-container-docker.sh
index 057c3ab0..bd15c70b 100755
--- a/start-container-docker.sh
+++ b/start-container-docker.sh
@@ -37,7 +37,8 @@ usage() {
ssh_error()
{
- echo "ERROR: ssh returned with code: $1, date: $(date)"
+ echo "ERROR: ssh returned with code: $1, date: $(date). Trying another ssh connexion to $session_host to get debug logs:"
+ ssh -v $session_host true
return $1
}
@@ -270,7 +271,7 @@ session_id=$("${docker_run[@]}") || ret=$?
if [ $ret -ne 0 ]; then
if [ $ret -eq 255 ]; then
echo "WARNING: ssh $session_host returned an error ($ret). Trying another ssh connexion to get debug logs"
- ssh $session_host true
+ ssh -v $session_host true
else
echo "WARNING: docker run returned an error: $ret, trying to continue nonetheless..."
fi