Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always hangs after "Copying input data into in-memory buffer so we can get the length" #492

Closed
rasa opened this issue Oct 3, 2013 · 5 comments

Comments

@rasa
Copy link
Collaborator

rasa commented Oct 3, 2013

Using Windows Packer 0.3.9 with the following config:

{
"builders": [{
    "type": "digitalocean",
    "api_key": "insert-key-here",
    "client_id": "insert-key-here",
    "image_id": 345791,
    "name": "example",
    "region_id": 3,
    "size_id": 66
}],
"provisioners": [{
    "type": "shell",
    "scripts": [
        "provision.sh"
    ]
}]
}

Packer invariably freezes at:

==> example: Provisioning with shell script: provision.sh
2013/10/02 19:42:15 ui: ==> example: Provisioning with shell script: provision.sh
2013/10/02 19:42:15 C:\packer\packer-provisioner-shell.exe: 2013/10/02 19:42:15 Opening example.sh for reading
2013/10/02 19:42:15 C:\packer\packer-builder-digitalocean.exe: 2013/10/02 19:42:15 opening new ssh session
2013/10/02 19:42:15 C:\packer\packer-builder-digitalocean.exe: 2013/10/02 19:42:15 Starting remote scp process:  scp -vt /tmp
2013/10/02 19:42:15 C:\packer\packer-builder-digitalocean.exe: 2013/10/02 19:42:15 Started SCP session, beginning transfers...
2013/10/02 19:42:15 C:\packer\packer-builder-digitalocean.exe: 2013/10/02 19:42:15 Copying input data into in-memory buffer so we can get the length

and it just sits there forever. I'm unable to abort with Ctrl-C, though I've always been able to abort with Ctrl-C in previous builds.

I've never seen this issue before 0.3.9, so I tested the exact same configuration/system with the 0.3.7 and 0.3.8 builds, and neither exhibited this issue.

Would building a "debug" version provide us more information to debug this issue?

@mitchellh
Copy link
Contributor

Can you try setting "binary": true in the shell provisioner config and seeing if the issue persists?

@rasa
Copy link
Collaborator Author

rasa commented Oct 3, 2013

I've tested it 3 times with "binary": true, and the freezing issue has gone away, but now it invariably crashes. Gist of crash.log is at https://gist.github.com/rasa/6804948

@mitchellh
Copy link
Contributor

@rasa Thanks, I fixed your panic issue. I'm looking into the other.

@mitchellh
Copy link
Contributor

@rasa Would it be possible to upload the entire file you're provisioning with somewhere? I need a byte-accurate copy of it so that we get the proper end of lines and all that.

@rasa
Copy link
Collaborator Author

rasa commented Oct 6, 2013

@mitchellh Your last commit fixes the issues I was having, so I'll close this ticket. If you still need me to post a file, let me know.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants