Closed mwhooker closed 6 years ago
Did some testing on this and I have two take-aways so far. 1) it isn't an infinite loop; it'll time out after 5 minutes and 2) I think I've found a workaround. Will share after cleaning it up.
Will address this in future work
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
With the shell type uploaders, we first upload a temporary script and then execute it remotely. This happens in a "retry loop". If we have an issue testing the remote we retry until we timeout, making no progress.
My suggestion is to annotate the error type with information about whether it's retryable or not, but that is difficult because at the moment error types don't cross RPC boundaries. i.e. https://github.com/hashicorp/packer/compare/nonretryableerrors
eg
It's also possible that the timeouts are short enough that we can retry these errors until the build fails (i.e. the real issue may be that powershell doesn't work, and retrying a non-retryable error is the secondary concern)