Closed alonbnhubsecurity closed 1 year ago
Thanks for reaching out. We’ll take a look when we get a chance
Thank you
Ok, I figured out the problem. I curled some files and the token was not good so when it got to packer it failed because the files were not as expected. I printing the 401 of the curl.
Community Note
Overview of the Issue
I am trying to use packer with GCP in gitlab-ci but every time I get to the packer build it will fail with the following error:
Reproduction Steps
I used the
hashicorp/packer
image for the pipeline as it said to do and it keeps failing for me (running it locally works perfect). The pipeline will start the VM and fail for the reason stated up there, I tried changing the user or image but it did not work as well.Packer version
for the docker image I used the following tags:
Simplified Packer Template
The packer works locally the first stage which fails in pipeline is
This is installation script and as I get it from the error it's not even starting to run the script.
Operating system and Environment details
I used multiple gitlab runners for that, at first they were gitlab shared runners, after that we used of our own runners each in a different environment. non of them worked
Log Fragments and crash.log files
The full log: