Skip to content

Instantly share code, notes, and snippets.

@dduportal
Created July 23, 2022 10:10
Show Gist options
  • Save dduportal/fe5954cbe3330d29e805c98bedae8f8d to your computer and use it in GitHub Desktop.
Save dduportal/fe5954cbe3330d29e805c98bedae8f8d to your computer and use it in GitHub Desktop.
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: Querying the machine's properties ...
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ResourceGroupName : 'pkr-Resource-Group-f9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ComputeName : 'pkrvmf9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> Managed OS Disk : '/subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Compute/disks/pkrosf9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: Querying the machine's additional disks properties ...
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ResourceGroupName : 'pkr-Resource-Group-f9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ComputeName : 'pkrvmf9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: Powering off machine ...
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ResourceGroupName : 'pkr-Resource-Group-f9gh8uo14x'
[2022-07-23T09:22:10.632Z] 2022-07-23T09:22:10Z: ==> azure-arm.ubuntu: -> ComputeName : 'pkrvmf9gh8uo14x'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:58Z: ==> azure-arm.ubuntu: Capturing image ...
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:58Z: ==> azure-arm.ubuntu: -> Compute ResourceGroupName : 'pkr-Resource-Group-f9gh8uo14x'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:58Z: ==> azure-arm.ubuntu: -> Compute Name : 'pkrvmf9gh8uo14x'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:58Z: ==> azure-arm.ubuntu: -> Compute Location : 'East US'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:59Z: ==> azure-arm.ubuntu: -> Image ResourceGroupName : 'dev-packer-images'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:59Z: ==> azure-arm.ubuntu: -> Image Name : 'jenkins-agent-ubuntu-20.04'
[2022-07-23T09:23:01.573Z] 2022-07-23T09:22:59Z: ==> azure-arm.ubuntu: -> Image Location : 'East US'
[2022-07-23T09:23:03.768Z] 2022-07-23T09:23:03Z: ==> azure-arm.ubuntu: ERROR: -> PropertyChangeNotAllowed : Changing property 'sourceVirtualMachine' is not allowed.
[2022-07-23T09:23:03.768Z] ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.062Z] ==> azure-arm.ubuntu: Deleting individual resources ...
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Adding to deletion queue -> Microsoft.Compute/virtualMachines : 'pkrvmf9gh8uo14x'
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Adding to deletion queue -> Microsoft.Network/networkInterfaces : 'pkrnif9gh8uo14x'
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Adding to deletion queue -> Microsoft.Network/virtualNetworks : 'pkrvnf9gh8uo14x'
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Adding to deletion queue -> Microsoft.Network/publicIPAddresses : 'pkripf9gh8uo14x'
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/publicIPAddresses : 'pkripf9gh8uo14x'
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Waiting for deletion of all resources...
[2022-07-23T09:26:47.062Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Compute/virtualMachines : 'pkrvmf9gh8uo14x'
[2022-07-23T09:26:47.063Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/networkInterfaces : 'pkrnif9gh8uo14x'
[2022-07-23T09:26:47.063Z] 2022-07-23T09:26:33Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/virtualNetworks : 'pkrvnf9gh8uo14x'
[2022-07-23T09:26:47.063Z] 2022-07-23T09:26:34Z: ==> azure-arm.ubuntu: Error deleting resource. Will retry.
[2022-07-23T09:26:47.063Z] ==> azure-arm.ubuntu: Name: pkrnif9gh8uo14x
[2022-07-23T09:26:47.063Z] ==> azure-arm.ubuntu: Error: network.InterfacesClient#Delete: Failure sending request: StatusCode=400 -- Original Error: Code="NicInUse" Message="Network Interface /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Network/networkInterfaces/pkrnif9gh8uo14x is used by existing resource /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Compute/virtualMachines/pkrvmf9gh8uo14x. In order to delete the network interface, it must be dissociated from the resource. To learn more, see aka.ms/deletenic." Details=[]
[2022-07-23T09:26:47.063Z] ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.063Z] 2022-07-23T09:26:34Z: ==> azure-arm.ubuntu: Error deleting resource. Will retry.
[2022-07-23T09:26:47.063Z] ==> azure-arm.ubuntu: Name: pkrvnf9gh8uo14x
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu: Error: network.VirtualNetworksClient#Delete: Failure sending request: StatusCode=400 -- Original Error: Code="InUseSubnetCannotBeDeleted" Message="Subnet pkrsnf9gh8uo14x is in use by /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Network/networkInterfaces/pkrnif9gh8uo14x/ipConfigurations/ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet." Details=[]
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.065Z] 2022-07-23T09:26:36Z: ==> azure-arm.ubuntu: Error deleting resource. Will retry.
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu: Name: pkripf9gh8uo14x
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu: Error: network.PublicIPAddressesClient#Delete: Failure sending request: StatusCode=400 -- Original Error: Code="PublicIPAddressCannotBeDeleted" Message="Public IP address /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Network/publicIPAddresses/pkripf9gh8uo14x can not be deleted since it is still allocated to resource /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Network/networkInterfaces/pkrnif9gh8uo14x/ipConfigurations/ipconfig. In order to delete the public IP, disassociate/detach the Public IP address from the resource. To learn how to do this, see aka.ms/deletepublicip." Details=[]
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.065Z] 2022-07-23T09:26:44Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/networkInterfaces : 'pkrnif9gh8uo14x'
[2022-07-23T09:26:47.065Z] 2022-07-23T09:26:44Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/virtualNetworks : 'pkrvnf9gh8uo14x'
[2022-07-23T09:26:47.065Z] 2022-07-23T09:26:44Z: ==> azure-arm.ubuntu: Error deleting resource. Will retry.
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu: Name: pkrvnf9gh8uo14x
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu: Error: network.VirtualNetworksClient#Delete: Failure sending request: StatusCode=400 -- Original Error: Code="InUseSubnetCannotBeDeleted" Message="Subnet pkrsnf9gh8uo14x is in use by /subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Network/networkInterfaces/pkrnif9gh8uo14x/ipConfigurations/ipconfig and cannot be deleted. In order to delete the subnet, delete all the resources within the subnet. See aka.ms/deletesubnet." Details=[]
[2022-07-23T09:26:47.065Z] ==> azure-arm.ubuntu:
[2022-07-23T09:26:47.065Z] 2022-07-23T09:26:46Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/publicIPAddresses : 'pkripf9gh8uo14x'
[2022-07-23T09:27:04.797Z] 2022-07-23T09:27:04Z: ==> azure-arm.ubuntu: Attempting deletion -> Microsoft.Network/virtualNetworks : 'pkrvnf9gh8uo14x'
[2022-07-23T09:27:17.449Z] 2022-07-23T09:27:16Z: ==> azure-arm.ubuntu: Deleting -> Microsoft.Compute/disks : '/subscriptions/****/resourceGroups/pkr-Resource-Group-f9gh8uo14x/providers/Microsoft.Compute/disks/pkrosf9gh8uo14x'
[2022-07-23T09:27:53.256Z] 2022-07-23T09:27:48Z: ==> azure-arm.ubuntu: Removing the created Deployment object: 'pkrdpf9gh8uo14x'
[2022-07-23T09:28:05.679Z] 2022-07-23T09:28:04Z: ==> azure-arm.ubuntu:
[2022-07-23T09:28:05.679Z] ==> azure-arm.ubuntu: Cleanup requested, deleting resource group ...
[2022-07-23T09:28:07.222Z] 2022-07-23T09:28:06Z: ==> azure-arm.ubuntu:
[2022-07-23T09:28:07.222Z] ==> azure-arm.ubuntu: Not waiting for Resource Group delete as requested by user. Resource Group Name is pkr-Resource-Group-f9gh8uo14x
[2022-07-23T09:28:07.222Z] 2022-07-23T09:28:06Z: Build 'azure-arm.ubuntu' errored after 15 minutes 39 seconds: unexpected EOF
[2022-07-23T09:28:07.222Z]
[2022-07-23T09:28:07.222Z] ==> Wait completed after 15 minutes 39 seconds
[2022-07-23T09:28:07.222Z]
[2022-07-23T09:28:07.222Z] ==> Some builds didn't complete successfully and had errors:
[2022-07-23T09:28:07.222Z] --> azure-arm.ubuntu: unexpected EOF
[2022-07-23T09:28:07.222Z]
[2022-07-23T09:28:07.222Z] ==> Builds finished but no artifacts were created.
[2022-07-23T09:28:07.222Z] panic: runtime error: invalid memory address or nil pointer dereference
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: [signal SIGSEGV: segmentation violation code=0x1 addr=0x50 pc=0x9f1453]
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin:
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: goroutine 8 [running]:
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/Azure/go-autorest/autorest/azure.(*Future).WaitForCompletionRef(0xc000502da0, {0x1626f08, 0xc0000300c0}, {{0x1607c80, 0xc0006648d0}, {0x160ad60, 0xc000231b60}, 0xc0005641b0, 0xc00074e160, 0x6fc23ac00, ...})
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/Azure/go-autorest/[email protected]/azure/async.go:228 +0x653
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm.(*StepCaptureImage).captureImageFromVM(0xc000370740, {0x1626f08, 0xc0000300c0}, {0xc000578588, 0xecb410}, {0xc00011c060, 0xc000754ff0}, 0x29)
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm/step_capture_image.go:57 +0x20a
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm.(*StepCaptureImage).Run(0xc000370740, {0x1626f08, 0xc0000300c0}, {0x1627410, 0xc0002ddb00})
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm/step_capture_image.go:93 +0x5c3
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/multistep.(*BasicRunner).Run(0xc0002dd200, {0x1626f08, 0xc0000300c0}, {0x1627410, 0xc0002ddb00})
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/[email protected]/multistep/basic_runner.go:70 +0x2fe
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm.(*Builder).Run(0xc0005a8a80, {0x1626f08, 0xc000370240}, {0x162e418, 0xc0002ddd10}, {0x1608880, 0xc000078700})
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-azure/builder/azure/arm/builder.go:305 +0x2c08
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/packer-plugin-sdk/rpc.(*BuilderServer).Run(0xc000030400, 0x626030, 0xc000626010)
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: github.com/hashicorp/[email protected]/rpc/builder.go:117 +0x1e3
[2022-07-23T09:28:07.222Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: reflect.Value.call({0xc00007e720, 0xc00000e158, 0x13}, {0x13ae1a6, 0x4}, {0xc000093ef8, 0x3, 0x3})
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: reflect/value.go:556 +0x845
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: reflect.Value.Call({0xc00007e720, 0xc00000e158, 0xc0001fec00}, {0xc000392ef8, 0x3, 0x3})
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: reflect/value.go:339 +0xc5
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: net/rpc.(*service).call(0xc000030440, 0xc000627510, 0x0, 0xc0005a3820, 0xc00011a600, 0x5bab05, {0x1190680, 0xc00062600c, 0x5baa86}, {0x11682a0, ...}, ...)
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: net/rpc/server.go:377 +0x239
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: created by net/rpc.(*Server).ServeCodec
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 packer-plugin-azure_v1.2.0_x5.0_linux_amd64 plugin: net/rpc/server.go:474 +0x405
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 /home/jenkins/.config/packer/plugins/github.com/hashicorp/azure/packer-plugin-azure_v1.2.0_x5.0_linux_amd64: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 [INFO] (telemetry) ending azure-arm.ubuntu
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 ui error: 2022-07-23T09:28:06Z: Build 'azure-arm.ubuntu' errored after 15 minutes 39 seconds: unexpected EOF
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 ui:
[2022-07-23T09:28:07.223Z] ==> Wait completed after 15 minutes 39 seconds
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 machine readable: error-count []string{"1"}
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 ui error:
[2022-07-23T09:28:07.223Z] ==> Some builds didn't complete successfully and had errors:
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 machine readable: azure-arm.ubuntu,error []string{"unexpected EOF"}
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 ui error: --> azure-arm.ubuntu: unexpected EOF
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 ui:
[2022-07-23T09:28:07.223Z] ==> Builds finished but no artifacts were created.
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:06 [INFO] (telemetry) Finalizing.
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 waiting for all plugin processes to complete...
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/workspace/infra-tools_packer-images_PR-288/.bin/packer: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.1.1_x5.0_linux_amd64: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/workspace/infra-tools_packer-images_PR-288/.bin/packer: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.1.1_x5.0_linux_amd64: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/workspace/infra-tools_packer-images_PR-288/.bin/packer: plugin process exited
[2022-07-23T09:28:07.223Z] 2022/07/23 09:28:07 /home/jenkins/.config/packer/plugins/github.com/hashicorp/amazon/packer-plugin-amazon_v1.1.1_x5.0_linux_amd64: plugin process exited
[2022-07-23T09:28:07.223Z]
[2022-07-23T09:28:07.395Z]
[2022-07-23T09:28:07.395Z]
[2022-07-23T09:28:07.395Z] !!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
[2022-07-23T09:28:07.395Z]
[2022-07-23T09:28:07.395Z] Packer crashed! This is always indicative of a bug within Packer.
[2022-07-23T09:28:07.395Z] A crash log has been placed at "crash.log" relative to your current
[2022-07-23T09:28:07.395Z] working directory. It would be immensely helpful if you could please
[2022-07-23T09:28:07.395Z] report the crash with Packer[1] so that we can fix this.
[2022-07-23T09:28:07.395Z]
[2022-07-23T09:28:07.395Z] [1]: https://github.com/hashicorp/packer/issues
[2022-07-23T09:28:07.395Z]
[2022-07-23T09:28:07.395Z] !!!!!!!!!!!!!!!!!!!!!!!!!!! PACKER CRASH !!!!!!!!!!!!!!!!!!!!!!!!!!!!
script returned exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment