danielsollondon / azvmimagebuilder

Azure VM Image Builder
180 stars 153 forks source link

Build failed: Deprovisioning file is not found #126

Closed joalmeid closed 7 months ago

joalmeid commented 2 years ago

While running a build action on my Image Template, the build fails, and only apparent issue is a while starting de De-provisioning phase. It's a Linux (Ubuntu 20.4 Gen1) VM with three fully tested customizers.

customization.log

PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [INFO] RPC endpoint: Communicator ended with: 0
PACKER ERR 2022/05/09 10:46:29 [INFO] 763634 bytes written for 'stdout'
PACKER OUT ==> azure-arm: Provisioning with shell script: /tmp/packer-shell3074641722
PACKER ERR 2022/05/09 10:46:29 [INFO] 0 bytes written for 'stderr'
PACKER ERR 2022/05/09 10:46:29 [INFO] RPC client: Communicator ended with: 0
PACKER ERR 2022/05/09 10:46:29 [INFO] RPC endpoint: Communicator ended with: 0
PACKER ERR 2022/05/09 10:46:29 packer-provisioner-shell plugin: [INFO] 763634 bytes written for 'stdout'
PACKER ERR 2022/05/09 10:46:29 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stderr'
PACKER OUT     azure-arm: /usr/sbin/waagent -force -deprovision+user && export HISTSIZE=0 && sync
PACKER ERR 2022/05/09 10:46:29 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
**PACKER OUT     azure-arm: /tmp/DeprovisioningScript.sh: 1: /usr/sbin/waagent: not found**
PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [DEBUG] Opening new ssh session
PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [DEBUG] starting remote command: rm -f /tmp/script_7354.sh
PACKER OUT ==> azure-arm: Provisioning step had errors: Running the cleanup provisioner, if present...
PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [INFO] RPC endpoint: Communicator ended with: 0
PACKER OUT ==> azure-arm: 
PACKER ERR 2022/05/09 10:46:29 [INFO] RPC client: Communicator ended with: 0
PACKER OUT ==> azure-arm: Deleting individual resources ...
PACKER ERR 2022/05/09 10:46:29 [INFO] RPC endpoint: Communicator ended with: 0
PACKER ERR 2022/05/09 10:46:29 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [DEBUG] Opening new ssh session
PACKER ERR 2022/05/09 10:46:29 packer-plugin-azure plugin: 2022/05/09 10:46:29 [DEBUG] starting remote command: rm -f

(...)

PACKER ERR 2022/05/09 10:49:56 [INFO] (telemetry) ending azure-arm
PACKER OUT Build 'azure-arm' errored after 16 minutes 11 seconds: Script exited with non-zero exit status: 127.Allowed exit codes are: [0]
PACKER ERR ==> Wait completed after 16 minutes 11 seconds
PACKER OUT 
PACKER ERR 2022/05/09 10:49:56 machine readable: error-count []string{"1"}
PACKER OUT ==> Wait completed after 16 minutes 11 seconds
PACKER ERR ==> Some builds didn't complete successfully and had errors:
PACKER OUT 
PACKER ERR 2022/05/09 10:49:56 machine readable: azure-arm,error []string{"Script exited with non-zero exit status: 127.Allowed exit codes are: [0]"}
PACKER OUT ==> Some builds didn't complete successfully and had errors:
PACKER ERR ==> Builds finished but no artifacts were created.
PACKER OUT --> azure-arm: Script exited with non-zero exit status: 127.Allowed exit codes are: [0]
PACKER ERR 2022/05/09 10:49:56 [INFO] (telemetry) Finalizing.
kof-f commented 2 years ago

Hey @joalmeid are you still experiencing this issue?

joalmeid commented 2 years ago

yes indeed. Just tested. very similar execution .

On Fri, Jun 3, 2022 at 4:21 PM Kofi Forson @.***> wrote:

Hey @joalmeid https://github.com/joalmeid are you still experiencing this issue?

— Reply to this email directly, view it on GitHub https://github.com/danielsollondon/azvmimagebuilder/issues/126#issuecomment-1146070499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABET4IZCFUJWHKRLKFAGD6DVNIPGHANCNFSM5VOYT5MA . You are receiving this because you were mentioned.Message ID: @.***>

danielsollondon commented 7 months ago

Apologies for the delay here, if you see this issue, please raise here: https://github.com/azure/azvmimagebuilder