Problem with VM extensions ( context deadline exceeded)

In the last few weeks we have problems with deploying Linux VM CustomScript 2.1 extensions. We are always getting context deadline exceeded error 1.time, but then we delete the failed extension (status transaction) and redeploying it and it is installed. We have also tried to remove all the lines in the script and it still timeout so it looks like it never run the script.