Skip to content
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

ubuntu 24.04 - Script exited with non-zero exit status: 1. #11581

Open
2 of 15 tasks
Malaw80s opened this issue Feb 11, 2025 · 3 comments
Open
2 of 15 tasks

ubuntu 24.04 - Script exited with non-zero exit status: 1. #11581

Malaw80s opened this issue Feb 11, 2025 · 3 comments

Comments

@Malaw80s
Copy link

Description

Hello,

I'm trying to create an image for ubuntu 24.04 but it's keep failing with error below

2025-02-11T19:15:47.6735734Z �[0;32m azure-arm.build_image: More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa�[0m
2025-02-11T19:15:47.6736078Z �[0;32m azure-arm.build_image: Removing repository.�[0m
2025-02-11T19:15:47.6737813Z �[0;32m azure-arm.build_image: Removing entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-noble.sources�[0m
2025-02-11T19:15:52.8335039Z �[1;31m==> azure-arm.build_image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]�[0m
2025-02-11T19:15:52.8346312Z �[1;32m==> azure-arm.build_image: Step "StepProvision" failed�[0m
2025-02-11T19:15:52.8346712Z �[1;32m==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...�[0m
2025-02-11T19:15:52.8346992Z �[1;32m==> azure-arm.build_image:

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • Windows Server 2019
  • Windows Server 2022
  • Windows Server 2025

Image version and build link

[RESOURCENAME] --> [Runner-Image-Ubuntu2404]

Is it regression?

no

Expected behavior

it should finish creating the image

Actual behavior

2025-02-11T19:15:47.6735367Z �[0;32m azure-arm.build_image: For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .�[0m
2025-02-11T19:15:47.6735734Z �[0;32m azure-arm.build_image: More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa�[0m
2025-02-11T19:15:47.6736078Z �[0;32m azure-arm.build_image: Removing repository.�[0m
2025-02-11T19:15:47.6737813Z �[0;32m azure-arm.build_image: Removing entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-noble.sources�[0m
2025-02-11T19:15:52.8335039Z �[1;31m==> azure-arm.build_image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]�[0m
2025-02-11T19:15:52.8346312Z �[1;32m==> azure-arm.build_image: Step "StepProvision" failed�[0m
2025-02-11T19:15:52.8346712Z �[1;32m==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...�[0m
2025-02-11T19:15:52.8346992Z �[1;32m==> azure-arm.build_image:
2025-02-11T19:15:52.8347232Z ==> azure-arm.build_image: Deleting Virtual Machine deployment and its attatched resources...�[0m

Repro steps

we are running an azure pipeline

with a powershell script

Import-Module $(System.DefaultWorkingDirectory)/_actions_runner-images/helpers/GenerateResourcesAndImage.ps1
GenerateResourcesAndImage -SubscriptionId $(SubscriptionId) -ResourceGroupName "$(ResourceGroupName)" -ImageGenerationRepositoryRoot "$(System.DefaultWorkingDirectory)/_actions_runner-images" -ImageType $(ImageType) -AzureLocation "$(AzureLocation)" -AzureClientId $(AzureClientId) -AzureClientSecret $(AzureClientSecret) -AzureTenantId $(AzureTenantId) -Force

@vidyasagarnimmagaddi
Copy link
Contributor

Hi @Malaw80s , Thank you for bringing this issue to our attention. We will look into this issue and will update you after investigating.

@vidyasagarnimmagaddi
Copy link
Contributor

Hi @Malaw80s , Ubuntu-24 image has been rolled out, could you please try to build the image. If error , kindly revert with sample workflow or the pipeline build for issue resolution. Thanks

@Malaw80s
Copy link
Author

Hi @vidyasagarnimmagaddi it's still failing at the same point.
logs:
2025-02-13T17:18:47.4972981Z �[0;32m azure-arm.build_image: Unpacking git-ftp (1.6.0+dfsg-1) ...�[0m
2025-02-13T17:18:47.6855503Z �[0;32m azure-arm.build_image: Setting up git-ftp (1.6.0+dfsg-1) ...�[0m
2025-02-13T17:18:47.7569853Z �[0;32m azure-arm.build_image: Processing triggers for man-db (2.12.0-4build2) ...�[0m
2025-02-13T17:18:50.6783597Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6784373Z �[1;31m==> azure-arm.build_image: Running kernel seems to be up-to-date.�[0m
2025-02-13T17:18:50.6784865Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6788294Z �[1;31m==> azure-arm.build_image: Restarting services...�[0m
2025-02-13T17:18:50.6791492Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6795170Z �[1;31m==> azure-arm.build_image: Service restarts being deferred:�[0m
2025-02-13T17:18:50.6798564Z �[1;31m==> azure-arm.build_image: /etc/needrestart/restart.d/dbus.service�[0m
2025-02-13T17:18:50.6807955Z �[1;31m==> azure-arm.build_image: systemctl restart [email protected]�[0m
2025-02-13T17:18:50.6808434Z �[1;31m==> azure-arm.build_image: systemctl restart networkd-dispatcher.service�[0m
2025-02-13T17:18:50.6811766Z �[1;31m==> azure-arm.build_image: systemctl restart [email protected]�[0m
2025-02-13T17:18:50.6819723Z �[1;31m==> azure-arm.build_image: systemctl restart systemd-logind.service�[0m
2025-02-13T17:18:50.6823731Z �[1;31m==> azure-arm.build_image: systemctl restart unattended-upgrades.service�[0m
2025-02-13T17:18:50.6829360Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6833801Z �[1;31m==> azure-arm.build_image: No containers need to be restarted.�[0m
2025-02-13T17:18:50.6836530Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6842617Z �[1;31m==> azure-arm.build_image: User sessions running outdated binaries:�[0m
2025-02-13T17:18:50.6847570Z �[1;31m==> azure-arm.build_image: packer @ session #1: sshd[1397]�[0m
2025-02-13T17:18:50.6852444Z �[1;31m==> azure-arm.build_image: packer @ user manager service: systemd[1402]�[0m
2025-02-13T17:18:50.6857592Z �[1;31m==> azure-arm.build_image:�[0m
2025-02-13T17:18:50.6861966Z �[1;31m==> azure-arm.build_image: No VM guests are running outdated hypervisor (qemu) binaries on this host.�[0m
2025-02-13T17:18:52.0675022Z �[0;32m azure-arm.build_image: Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist [142 B]�[0m
2025-02-13T17:18:52.1555963Z �[0;32m azure-arm.build_image: Hit:2 http://azure.archive.ubuntu.com/ubuntu noble InRelease�[0m
2025-02-13T17:18:52.1708676Z �[0;32m azure-arm.build_image: Hit:3 http://azure.archive.ubuntu.com/ubuntu noble-updates InRelease�[0m
2025-02-13T17:18:52.1851813Z �[0;32m azure-arm.build_image: Hit:4 http://azure.archive.ubuntu.com/ubuntu noble-backports InRelease�[0m
2025-02-13T17:18:52.1990455Z �[0;32m azure-arm.build_image: Hit:5 http://azure.archive.ubuntu.com/ubuntu noble-security InRelease�[0m
2025-02-13T17:18:52.2046129Z �[0;32m azure-arm.build_image: Hit:6 https://packages.microsoft.com/repos/azure-cli noble InRelease�[0m
2025-02-13T17:18:52.2155108Z �[0;32m azure-arm.build_image: Hit:7 https://packages.microsoft.com/ubuntu/24.04/prod noble InRelease�[0m
2025-02-13T17:18:55.2883674Z �[0;32m azure-arm.build_image: Reading package lists...�[0m
2025-02-13T17:18:55.3036963Z �[0;32m azure-arm.build_image: PPA publishes dbgsym, you may need to include 'main/debug' component�[0m
2025-02-13T17:18:55.3039256Z �[0;32m azure-arm.build_image: Repository: 'Types: deb�[0m
2025-02-13T17:18:55.3039932Z �[0;32m azure-arm.build_image: URIs: https://ppa.launchpadcontent.net/git-core/ppa/ubuntu/�[0m
2025-02-13T17:18:55.3040289Z �[0;32m azure-arm.build_image: Suites: noble�[0m
2025-02-13T17:18:55.3043764Z �[0;32m azure-arm.build_image: Components: main�[0m
2025-02-13T17:18:55.3048352Z �[0;32m azure-arm.build_image: '�[0m
2025-02-13T17:18:55.3049101Z �[0;32m azure-arm.build_image: Description:�[0m
2025-02-13T17:18:55.3054948Z �[0;32m azure-arm.build_image: The most current stable version of Git for Ubuntu.�[0m
2025-02-13T17:18:55.3055692Z �[0;32m azure-arm.build_image:�[0m
2025-02-13T17:18:55.3059073Z �[0;32m azure-arm.build_image: For release candidates, go to https://launchpad.net/~git-core/+archive/candidate .�[0m
2025-02-13T17:18:55.3061848Z �[0;32m azure-arm.build_image: More info: https://launchpad.net/~git-core/+archive/ubuntu/ppa�[0m
2025-02-13T17:18:55.3062218Z �[0;32m azure-arm.build_image: Removing repository.�[0m
2025-02-13T17:18:55.3062851Z �[0;32m azure-arm.build_image: Removing entry from /etc/apt/sources.list.d/git-core-ubuntu-ppa-noble.sources�[0m
2025-02-13T17:19:00.5378457Z �[1;31m==> azure-arm.build_image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]�[0m
2025-02-13T17:19:00.5388152Z �[1;32m==> azure-arm.build_image: Step "StepProvision" failed�[0m
2025-02-13T17:19:00.5388663Z �[1;32m==> azure-arm.build_image: Provisioning step had errors: Running the cleanup provisioner, if present...�[0m
2025-02-13T17:19:00.5389231Z �[1;32m==> azure-arm.build_image:
2025-02-13T17:19:00.5389499Z ==> azure-arm.build_image: Deleting Virtual Machine deployment and its attached resources...�[0m
2025-02-13T17:19:42.5043834Z �[1;32m==> azure-arm.build_image: Deleted -> pkrvmo7fdlhanbw : 'Microsoft.Compute/virtualMachines'�[0m
2025-02-13T17:19:53.2147895Z �[1;32m==> azure-arm.build_image: Deleted -> pkrnio7fdlhanbw : 'Microsoft.Network/networkInterfaces'�[0m
2025-02-13T17:20:03.8604925Z �[1;32m==> azure-arm.build_image: Deleted -> Microsoft.Compute/disks : '/subscriptions//resourceGroups/pkr-Resource-Group-o7fdlhanbw/providers/Microsoft.Compute/disks/pkroso7fdlhanbw'�[0m
2025-02-13T17:20:03.8607608Z �[1;32m==> azure-arm.build_image: Removing the created Deployment object: 'pkrdpo7fdlhanbw'�[0m
2025-02-13T17:20:15.6869463Z �[1;32m==> azure-arm.build_image:
2025-02-13T17:20:15.6873183Z ==> azure-arm.build_image: Cleanup requested, deleting resource group ...�[0m
2025-02-13T17:20:26.8244289Z �[1;32m==> azure-arm.build_image: Resource group has been deleted.�[0m
2025-02-13T17:20:26.8254142Z �[1;31mBuild 'azure-arm.build_image' errored after 24 minutes 41 seconds: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]�[0m
2025-02-13T17:20:26.8254378Z
2025-02-13T17:20:26.8254616Z ==> Wait completed after 24 minutes 41 seconds
2025-02-13T17:20:26.8254806Z
2025-02-13T17:20:26.8255036Z ==> Some builds didn't complete successfully and had errors:
2025-02-13T17:20:26.8255640Z --> azure-arm.build_image: Script exited with non-zero exit status: 1. Allowed exit codes are: [0]
2025-02-13T17:20:26.8255804Z
2025-02-13T17:20:26.8256029Z ==> Builds finished but no artifacts were created.
2025-02-13T17:20:27.1963629Z �[33;1mVERBOSE:
2025-02-13T17:20:27.1963901Z Cleaning up...�[0m
2025-02-13T17:20:27.1976804Z �[33;1mVERBOSE: Cleanup completed.�[0m
2025-02-13T17:20:27.3751205Z �[31;1mException: �[0m/agent/_work/_temp/d6001448-8e35-4d18-9661-ed8c6777c1e9.ps1:10�[0m
2025-02-13T17:20:27.3751610Z �[31;1m�[0m�[36;1mLine |�[0m
2025-02-13T17:20:27.3752057Z �[31;1m�[0m�[36;1m�[36;1m 10 | �[0m �[36;1mGenerateResourcesAndImage -SubscriptionId 046b8e23-3e3c-4b52-8b77-407�[0m …�[0m
2025-02-13T17:20:27.3752560Z �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m | �[31;1m ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~�[0m
2025-02-13T17:20:27.3752993Z �[31;1m�[0m�[36;1m�[36;1m�[0m�[36;1m�[0m�[36;1m�[31;1m�[31;1m�[36;1m | �[31;1mFailed to build image.�[0m
2025-02-13T17:20:27.4682706Z
2025-02-13T17:20:27.4713665Z ##[debug]Exit code 1 received from tool '/usr/bin/pwsh'
2025-02-13T17:20:27.4717790Z ##[debug]STDIO streams have closed for tool '/usr/bin/pwsh'
2025-02-13T17:20:27.4730790Z ##[debug]task result: Failed
2025-02-13T17:20:27.4754242Z ##[error]PowerShell exited with code '1'.
2025-02-13T17:20:27.4760986Z ##[debug]Processed: ##vso[task.issue type=error;source=TaskInternal;correlationId=2bc446ea-9ebc-4815-93d9-269ef6aca120;]PowerShell exited with code '1'.
2025-02-13T17:20:27.4835920Z ##[debug]Processed: ##vso[task.complete result=Failed;]PowerShell exited with code '1'.
2025-02-13T17:20:27.4836588Z ##[debug]which 'pwsh'
2025-02-13T17:20:27.4837014Z ##[debug]found: '/usr/bin/pwsh'
2025-02-13T17:20:27.4837415Z ##[debug]which '/usr/bin/pwsh'
2025-02-13T17:20:27.4837826Z ##[debug]found: '/usr/bin/pwsh'
2025-02-13T17:20:27.4838225Z ##[debug]/usr/bin/pwsh arg: -NoLogo
2025-02-13T17:20:27.4838647Z ##[debug]/usr/bin/pwsh arg: -NoProfile
2025-02-13T17:20:27.4839113Z ##[debug]/usr/bin/pwsh arg: -NonInteractive
2025-02-13T17:20:27.4839536Z ##[debug]/usr/bin/pwsh arg: -ExecutionPolicy
2025-02-13T17:20:27.4839965Z ##[debug]/usr/bin/pwsh arg: Unrestricted
2025-02-13T17:20:27.4840374Z ##[debug]/usr/bin/pwsh arg: -Command
2025-02-13T17:20:27.4840872Z ##[debug]/usr/bin/pwsh arg: . '/agent/_work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/5.251.1/RemoveAzContext.ps1'
2025-02-13T17:20:27.4841356Z ##[debug]exec tool: /usr/bin/pwsh
2025-02-13T17:20:27.4841771Z ##[debug]arguments:
2025-02-13T17:20:27.4842175Z ##[debug] -NoLogo
2025-02-13T17:20:27.4842569Z ##[debug] -NoProfile
2025-02-13T17:20:27.4842977Z ##[debug] -NonInteractive
2025-02-13T17:20:27.4843368Z ##[debug] -ExecutionPolicy
2025-02-13T17:20:27.4843777Z ##[debug] Unrestricted
2025-02-13T17:20:27.4844166Z ##[debug] -Command
2025-02-13T17:20:27.4844638Z ##[debug] . '/agent/_work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/5.251.1/RemoveAzContext.ps1'
2025-02-13T17:20:27.4845116Z [command]/usr/bin/pwsh -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command . '/agent/_work/_tasks/AzurePowerShell_72a1931b-effb-4d2e-8fd8-f8472a07cb62/5.251.1/RemoveAzContext.ps1'
2025-02-13T17:20:28.7204137Z ##[command]Disconnect-AzAccount -Scope CurrentUser -ErrorAction Stop
2025-02-13T17:20:28.8695429Z ##[command]Disconnect-AzAccount -Scope Process -ErrorAction Stop
2025-02-13T17:20:28.8729988Z ##[command]Clear-AzContext -Scope Process -ErrorAction Stop
2025-02-13T17:20:29.5727307Z
2025-02-13T17:20:29.5751215Z ##[debug]Exit code 0 received from tool '/usr/bin/pwsh'
2025-02-13T17:20:29.5752134Z ##[debug]STDIO streams have closed for tool '/usr/bin/pwsh'
2025-02-13T17:20:29.5851556Z ##[section]Finishing: Create VHD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants