Virtual-environments: packer build fails for ubuntu 18.04

Created on 15 Sep 2020  路  5Comments  路  Source: actions/virtual-environments

Description
building the image with packer fails during installation of package Az

Area for Triage:
Packages

Question, Bug, or Feature?:
Bug

Virtual environments affected

  • [x] Ubuntu 18.04 LTS

Expected behavior
packer build to complete without error

Actual behavior
running packer build for the ubuntu 18.04 image fails

$ packer build -var-file ~/azure-pipeline/packer_sp.json ubuntu1804.json
....Installing package 'Az'                                                            Downloaded 0.00 MB out of 0.02 MB.                                              [oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo  ]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      Testing to make sure that script performed as expected, and basic scenarios work
    azure-arm: Az Module was not installed
    azure-arm: Az version 2.8.0 is not installed
==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...
==> azure-arm: Removing the created Deployment object: 'pkrdp7n4s2972tu'
==> azure-arm: 
==> azure-arm: Cleanup requested, deleting resource group ...
==> azure-arm: Resource group has been deleted.
Build 'azure-arm' errored after 3 hours 47 minutes: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]

==> Wait completed after 3 hours 47 minutes

==> Some builds didn't complete successfully and had errors:
--> azure-arm: Script exited with non-zero exit status: 1.Allowed exit codes are: [0]

==> Builds finished but no artifacts were created.
$
Ubuntu bug investigate

All 5 comments

Hello, @mgabathuler
Looks like temporary network issue with PowerShell repository. I have got the same error, but for other modules:

image

hi @al-cheb
thanks for checking, in that case i'll try again tomorrow and update here with the result

ran the build again today and i am getting past the failing point from yesterday but failing at another point now

==> azure-arm: Provisioning with shell script: /home/matthias/git/virtual-environments/images/linux/scripts/installers/terraform.sh
==> azure-arm: parse error: Invalid numeric literal at line 1, column 10
==> azure-arm:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
==> azure-arm:                                  Dload  Upload   Total   Spent    Left  Speed
==> azure-arm: 100   303  100   303    0     0   1147      0 --:--:-- --:--:-- --:--:--  1147
==> azure-arm:   End-of-central-directory signature not found.  Either this file is not
==> azure-arm:   a zipfile, or it constitutes one disk of a multi-part archive.  In the
==> azure-arm:   latter case the central directory and zipfile comment will be found on
    azure-arm: Archive:  terraform__linux_amd64.zip
    azure-arm: Testing to make sure that script performed as expected, and basic scenarios work
    azure-arm: Terraform was not installed or found on PATH
==> azure-arm:   the last disk(s) of this archive.
==> azure-arm: unzip:  cannot find zipfile directory in one of terraform__linux_amd64.zip or
==> azure-arm:         terraform__linux_amd64.zip.zip, and cannot find terraform__linux_amd64.zip.ZIP, period.
==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...
==> azure-arm: Removing the created Deployment object: 'pkrdpwftq1vn0is'

is this something new or maybe also just a fluke?

thanks for checking, i think i'll close this issue then and just retry and keep my fingers crossed :)

thanks for all your help @al-cheb

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jayaddison picture jayaddison  路  3Comments

zackijack picture zackijack  路  3Comments

motss picture motss  路  3Comments

Tnze picture Tnze  路  4Comments

raulpopadineti picture raulpopadineti  路  3Comments