Commit 8970ece6 authored by AdamSimpson's avatar AdamSimpson
Browse files

try to get around weird locking issue when using apt-get on new VM

parent b9e16db5
Pipeline #11532 failed with stages
in 121 minutes and 58 seconds
......@@ -55,6 +55,16 @@ while ! ssh_is_up; do
sleep 1
done
# Reboot to fix a strange issue with apt-get update: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} 'sudo reboot'
sleep 10
function ssh_is_up() {
ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} exit &> /dev/null
}
while ! ssh_is_up; do
sleep 1
done
echo "Fixing ORNL TCP timeout issue for current session"
ssh -o StrictHostKeyChecking=no -i ${KEY_FILE} cades@${VM_IP} 'sudo bash -s' < ${SCRIPT_DIR}/disable-TCP-timestamps.sh
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment