Closed sneal closed 10 years ago
Actually the error is Error creating staging directory: Stream 0 already open for dial. State: 4
, the format statement is missing an argument.
Fails in a similar manner with Ubuntu 12.04
Build 'vmware' errored: Retryable error: Stream 0 already open for dial. State: 4
Build 'virtualbox' errored: Retryable error: Stream 0 already open for dial. State: 4
I notice this in the log quite a bit packer-provisioner-shell: 2013/12/20 18:39:24 Retryable error: Stream 0 already open for dial. State: 4
Well this is pretty bad. I'll try to debug it. I'll let you know if you can do anything else to help.
Oh, I totally know what this is.
Should be fixed!
Thanks for taking a look. I pulled latest but the problem is still occurring. Here's another debug log. Its still attempting to dial on id 0. IIRC there are a couple places hardcoded to use connection id 0, like in client.go line 20.
I'm not sure what the problem is, my Go and Packer foo is much weaker.
Yeah the main RPC connection goes over stream 0, which is fine. I'm looking into this again... very odd.
Ah, should be fixed now, I didn't quite finish my last commit.
Nailed it! That fixed it, thanks.
I fetched latest this morning from master, now the first command run over SSH is killing Packer with a "stream 4 already open for dial" error.
Packer connects to SSH just fine, but then dies when it tries to run a command. I've seen it happen uploading a file and creating a directory, so it doesn't seem specific to the command.