generated from hashicorp/packer-plugin-scaffolding
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
proxmox: Error updating template: 500 got no worker upid - start worker failed #24
Labels
Comments
reporting same here
|
Same issue here, from 6 VMs completed only 5.
I've just restarted the Jenkins job and it finished the vm creation without issue.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This issue was originally opened by @dnv in hashicorp/packer#11149 and has been migrated to this repository. The original issue description is below.
Overview of the Issue
Roughly 2/3 of the time I am building my templates, the build errors out in the final stages, succesfully creating the actual template regardless, but with its "Packer ephemeral build VM" description and name intact. At first it "felt" like I got rid of the issue by adding the final sync command to the shell builder, but this was apparently transient/imaginary, as after 3-4 succesfull builds with no errors in a row I started experiencing the problem again.
I have now run the build several times in a row changing nothing in-between and sometimes I do get the error and sometimes not. Having done some additional testing I can now see that this has something to do with creating new VMs/templates and deleting them. The error does not seem to ever occur in the following scenario: 6 VMs are running, I run Packer to create a new template, it suceeeds, I delete the template and create it anew. But somewhere in the logic, there is a problem that manifests itself if you create a template, create a new VM from said template, keep it running, delete something with a lower vm_id and try creating a new template with Packer.
Packer version
Packer version: 1.7.3 [go1.16.5 linux amd64]
Simplified Packer Buildfile
https://gist.github.com/dnv/7e6778870f070b125cd6fade7f98aa33
Operating system and Environment details
Running Packer on RHEL 8.4 VM
Proxmox Virtual Environment 6.4-8
Log Fragments and crash.log files
The relevant part of the log is:
2021/07/15 18:14:20 [INFO] (telemetry) ending shell
==> proxmox: Stopping VM
==> proxmox: Converting VM to template
2021/07/15 18:14:22 packer-builder-proxmox plugin: template_id: 108
==> proxmox: Error updating template: 500 got no worker upid - start worker failed
==> proxmox: Provisioning step had errors: Running the cleanup provisioner, if present...
==> proxmox: Stopping VM
==> proxmox: Deleting VM
2021/07/15 18:14:22 [INFO] (telemetry) ending proxmox
==> Wait completed after 5 minutes 47 seconds
2021/07/15 18:14:22 machine readable: error-count []string{"1"}
==> Some builds didn't complete successfully and had errors:
2021/07/15 18:14:22 machine readable: proxmox,error []string{"Error updating template: 500 got no worker upid - start worker failed"}
==> Builds finished but no artifacts were created.
Build 'proxmox' errored after 5 minutes 47 seconds: Error updating template: 500 got no worker upid - start worker failed
==> Wait completed after 5 minutes 47 seconds
==> Some builds didn't complete successfully and had errors:
--> proxmox: Error updating template: 500 got no worker upid - start worker failed
==> Builds finished but no artifacts were created.
The text was updated successfully, but these errors were encountered: