Packer template failing to download chef-client

62 views
Skip to first unread message

Fish Exterminator

unread,
Aug 13, 2018, 3:22:59 PM8/13/18
to Packer
Hi,

I've been making a virtualbox packer build that downloads chef-client. whenever i try and run it, it gives me this message...

Build 'virtualbox-iso' errored: Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info.


Command: sudo knife node delete packer-5b71d9b7-1cf2-6a56-e0e1-e7448a408b6e -y -c /tmp/packer-chef-client/knife.rb


==> Some builds didn't complete successfully and had errors:

--> virtualbox-iso: Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info. 

any ideas?

Rickard von Essen

unread,
Aug 13, 2018, 3:56:37 PM8/13/18
to packe...@googlegroups.com
Rerun with: PACKER_LOG=1 packer build template.json

And attach the output. 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/2a671e4e-17a0-43a1-b62c-b02e49f99169%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Fish Exterminator

unread,
Aug 15, 2018, 9:49:32 AM8/15/18
to Packer

Build 'virtualbox-iso' errored: Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info.


Command: sudo knife node delete packer-5b71e4e0-2b88-05c9-c671-cb430347017b -y -c /tmp/packer-chef-client/knife.rb

Build 'virtualbox-iso' errored: Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info.


2018/08/13 16:07:01 Builds completed. Waiting on interrupt barrier...

2018/08/13 16:07:01 machine readable: error-count []string{"1"}

2018/08/13 16:07:01 ui error: 

==> Some builds didn't complete successfully and had errors:

2018/08/13 16:07:01 machine readable: virtualbox-iso,error []string{"Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info.\n\nCommand: sudo knife node delete packer-5b71e4e0-2b88-05c9-c671-cb430347017b -y -c /tmp/packer-chef-client/knife.rb"}

2018/08/13 16:07:01 ui error: --> virtualbox-iso: Error cleaning up chef node: Failed to cleanup node: Non-zero exit status. See output above for more info.


Command: sudo knife node delete packer-5b71e4e0-2b88-05c9-c671-cb430347017b -y -c /tmp/packer-chef-client/knife.rb

Rickard von Essen

unread,
Aug 15, 2018, 11:04:15 AM8/15/18
to packe...@googlegroups.com
So then if you run with -on-error=ask and when it fails you jump into the VM and try to find out why running: sudo knife node delete packer-5b71e4e0-2b88-05c9-c671-cb430347017b -y -c /tmp/packer-chef-client/knife.rb
Fails

Fish Exterminator

unread,
Aug 15, 2018, 11:57:31 AM8/15/18
to Packer
It gave me this message after I aborted without cleanup:

Rickard von Essen

unread,
Aug 15, 2018, 2:00:08 PM8/15/18
to packe...@googlegroups.com
Just let packer hang on the question and use the VM console to debug the problem. 

Fish Exterminator

unread,
Aug 15, 2018, 2:49:24 PM8/15/18
to Packer
How would you suggest debugging? I'm still kind of new to this, so i'm not sure where to start with debug.

Fish Exterminator

unread,
Aug 15, 2018, 3:00:59 PM8/15/18
to Packer
nvm with the debug question, I just ran the command it failed on in the vm, and it said something to the effect of the directory /tmp/packer-chef-client.pem, and it was unable to load my private key.
Reply all
Reply to author
Forward
0 new messages