Error creating machine: Error running provisioning: Error running apt-get update: ssh command error:

Hi,

Do you have any retries baked in for this error. It appears to hang around for a while and then go ahead and relaunch the instance. It looks to be a brief network break between the instance and the repository, a couple of retries will likely stop the whole rebuild process having to be kicked off again.

Cheers,
Alex

I had this issue when the host machine key (AWS) didn’t have the proper permissions.
I fixed that by adding this policy and attaching it to the user that’s on the rancher host - https://github.com/rancher/rancher/issues/12530