+ packer build template.file 0 0 Finished: SUCCESS
$ /var/lib/jenkins/packer/packer build /var/lib/jenkins/workspace/template.file FATAL: Execution failed: /var/lib/jenkins/packer/packer build /var/lib/jenkins/workspace/template.file Finished: FAILURE Build step 'Packer' marked build as failure Finished: FAILURE
[packer-base_build_vmware] $ /bin/sh /tmp/hudson7245981517662937540.sh packer log path: /home/jenkins/workspace/packer-base_build_vmware/packer.log /opt/packer/packer build -only=vmware-iso -force -var vmx_template=/home/jenkins/workspace/packer-base_build_vmware/packer_conf/template.vmx -var-file=/home/jenkins/workspace/packer-base_build_vmware/packer_conf/vmware_vars.json /home/jenkins/workspace/packer-base_build_vmware/packer_conf/packer_vm.json [1;32mvmware-iso output will be in this color. [0m [1;32mWarnings for build 'vmware-iso': [0m [1;32m* A checksum type of 'none' was specified. Since ISO files are so big, a checksum is highly recommended. [0m [1;32m [0m [1;32m==> vmware-iso: Downloading or copying ISO [0m [0;32m vmware-iso: Downloading or copying: file:///opt/packer/rhel-server-6.6-x86_64-boot.iso [0m [1;32m==> vmware-iso: Deleting previous output directory... [0m [1;32m==> vmware-iso: Uploading ISO to remote machine... [0m [1;32m==> vmware-iso: Creating virtual machine disk [0m [1;32m==> vmware-iso: Building and writing VMX file [0m [1;32m==> vmware-iso: Starting HTTP server on port 8069 [0m [1;32m==> vmware-iso: Registering remote VM... [0m [1;32m==> vmware-iso: Starting virtual machine... [0m [1;32m==> vmware-iso: Waiting 5s for boot... [0m [1;32m==> vmware-iso: Connecting to VM via VNC [0m
packer-base_build_vmware] $ /bin/sh /tmp/hudson8243131398042465789.sh packer log path: /home/jenkins/workspace/packer-base_build_vmware/packer.log /opt/packer/packer build -only=vmware-iso -force -var vmx_template=/home/jenkins/workspace/packer-base_build_vmware/packer_conf/template.vmx -var-file=/home/jenkins/workspace/packer-base_build_vmware/packer_conf/vmware_vars.json /home/jenkins/workspace/packer-base_build_vmware/packer_conf/packer_vm.json [1;32mvmware-iso output will be in this color. [0m [1;32mWarnings for build 'vmware-iso': [0m [1;32m* A checksum type of 'none' was specified. Since ISO files are so big, a checksum is highly recommended. [0m [1;32m [0m [1;32m==> vmware-iso: Downloading or copying ISO [0m [0;32m vmware-iso: Downloading or copying: file:///opt/packer/rhel-server-6.6-x86_64-boot.iso [0m [1;32m==> vmware-iso: Uploading ISO to remote machine... [0m [1;32m==> vmware-iso: Creating virtual machine disk [0m [1;31m==> vmware-iso: Error creating disk: 'vmkfstools -c 100000M -d zeroedthick -a lsilogic /vmfs/volumes/packer.io/packer_base/disk.vmdk' ==> vmware-iso: ==> vmware-iso: Stdout: ==> vmware-iso: ==> vmware-iso: Stderr: Failed to create virtual disk: There is not enough space on the file system for the selected operation (13). ==> vmware-iso: [0m [1;32m==> vmware-iso: Deleting output directory... [0m [1;31mBuild 'vmware-iso' errored: Error creating disk: 'vmkfstools -c 100000M -d zeroedthick -a lsilogic /vmfs/volumes/packer.io/packer_base/disk.vmdk' Stdout: Stderr: Failed to create virtual disk: There is not enough space on the file system for the selected operation (13). [0m ==> Some builds didn't complete successfully and had errors: --> vmware-iso: Error creating disk: 'vmkfstools -c 100000M -d zeroedthick -a lsilogic /vmfs/volumes/packer.io/packer_base/disk.vmdk' Stdout: Stderr: Failed to create virtual disk: There is not enough space on the file system for the selected operation (13). ==> Builds finished but no artifacts were created. Build step 'Execute shell' marked build as failure Skipped archiving because build is not successful Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered Notifying upstream projects of job completion Finished: FAILURE
--
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/a65f3c6d-69ea-43df-bdad-421b97076de4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
[job-name] $ /var/lib/jenkins/tools/biz.neustar.jenkins.plugins.packer.PackerInstallation/Packer/packer build /var/lib/jenkins/workspace/job-name/project-name/base.json FATAL: Execution failed: /var/lib/jenkins/tools/biz.neustar.jenkins.plugins.packer.PackerInstallation/Packer/packer build /var/lib/jenkins/workspace/job-name/project-name/base.json
Finished: FAILURE Build step 'Packer' marked build as failure Finished: FAILURE
When I run it from the command line as someone other than the Jenkins user I get:
[centos@jenkins project-name]$ packer build base.json
amazon-ebs output will be in this color.
==> amazon-ebs: Prevalidating AMI Name...
==> amazon-ebs: Inspecting the source AMI...
==> amazon-ebs: Creating temporary keypair: packer XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX
==> amazon-ebs: Deleting temporary keypair...
==> amazon-ebs: Error cleaning up keypair. Please delete the key manually:
Build 'amazon-ebs' errored: Error creating temporary keypair: UnauthorizedOperation: You are not authorized to perform this operation.
status code: 403, request id: []
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error creating temporary keypair: UnauthorizedOperation: You are not authorized to perform this operation.
status code: 403, request id: []
==> Builds finished but no artifacts were created.
But when I run it from the command line as the jenkins user, surprisingly I get:
bash-4.2$ packer build base.json
[HANGS!]
When I say it hangs, I mean that there is no output, but ps shows the process running for as long as I leave it, consuming no CPU and no memory.
I am fully aware that credentials need to be set up separately per user, these builds were all intentionally made to fail with missing credentials.
This leads me to think that there is something about the Jenkins user that loses the output. I've already made sure that it has the same shell as the other user (/bin/bash). Is there something else about the Unix user that could be causing this or am I barking up the wrong tree?
bash-4.2$ which packer
/sbin/packer
bash-4.2$ ls -al /sbin/packer
lrwxrwxrwx. 1 root root 15 Sep 29 2014 /sbin/packer -> cracklib-packer
bash-4.2$
Needless to say the path for the other user points to the actual packer installation. And when I actually execute the correct binary I do get output.
Thank you for the help and apologies for the stupid issue that had nothing to do with packer itself...
Note: This message is the property of HashedIn and its subsidiaries. It may be legally privileged and/or confidential and is intended only for the use of the addressee(s). No addressee should forward, print, copy, or otherwise reproduce this message in any manner that would allow it to be viewed by any individual not originally listed as a recipient. If the reader of this message is not the intended recipient, you are hereby notified that any unauthorized disclosure, dissemination, distribution, copying or the taking of any action in reliance on the information herein is strictly prohibited. If you have received this communication in error, please immediately notify the sender and delete this message.
--
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/hashicorp/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/53589c1a-f851-45f5-b03a-8afe44a3d9cdo%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CALz9Rt83u32vkzUbmGLgQiDjqA05K6vPNafa9CGXx0R3oQi0RQ%40mail.gmail.com.