Giter Site home page Giter Site logo

Comments (7)

ijunaidm avatar ijunaidm commented on September 12, 2024 1

@pmatthews05 - Thank you for bringing this issue to us, we are looking into this issue, we will update you.

from runner-images.

pmatthews05 avatar pmatthews05 commented on September 12, 2024 1

I can confirm I can build the image again. Many thanks.

from runner-images.

pmatthews05 avatar pmatthews05 commented on September 12, 2024

I've taken a quick look, I've worked out the problem. It's referencing a var instead of a local.

https://github.com/actions/runner-images/blob/main/images/ubuntu/templates/ubuntu-minimal.pkr.hcl#L186 should be

environment_vars = ["HELPER_SCRIPTS=${local.helper_script_folder}","DEBIAN_FRONTEND=noninteractive"]

currently it says
environment_vars = ["HELPER_SCRIPTS=${var.helper_script_folder}","DEBIAN_FRONTEND=noninteractive"]

from runner-images.

ijunaidm avatar ijunaidm commented on September 12, 2024

@pmatthews05 - Please try to update to your main branch and try to re-build.
Can you please confirm if the issue is fixed after our changes. If you are facing any related issue, kindly let us know .

from runner-images.

veronicagt094 avatar veronicagt094 commented on September 12, 2024

Hello everyone, when making the change in the ubuntu-minimal.pkr.hcl file I get the following error:

2024/06/12 14:38:01 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:38:01 [ERROR] Remote command exited with '1': sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_909.sh'

It is as follows:
// Install MS package repos, Configure apt
provisioner "shell" {
environment_vars = ["HELPER_SCRIPTS=${local.helper_script_folder}","DEBIAN_FRONTEND=noninteractive"]
execute_command = "sudo sh -c '{{ .Vars }} {{ .Path }}'"
scripts = [
"${path.root}/../scripts/build/install-ms-repos.sh",
"${path.root}/../scripts/build/configure-apt.sh"
]
}

I am using version 20240414.1 of Ubuntu2022 but when reviewing the suggested change it is on MacOs, does this have anything to do with it? I have not been able to compile for the Ubuntu version

changeinMacOs

from runner-images.

ijunaidm avatar ijunaidm commented on September 12, 2024

@veronicagt094 - Can you please send us the detailed logs with errors.

from runner-images.

veronicagt094 avatar veronicagt094 commented on September 12, 2024

@veronicagt094- ¿Puede enviarnos los registros detallados con errores?

2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Opening new ssh session
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Starting remote scp process: scp -vt /tmp
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Started SCP session, beginning transfers...
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Copying input data into temporary file so we can read the length
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] scp: Uploading script_909.sh: perms=C0644 size=615
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] SCP session complete, closing stdin pipe.
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Waiting for SSH session to complete.
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] scp stderr (length 69): Sink: C0644 615 script_909.sh
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: scp: debug1: fd 0 clearing O_NONBLOCK
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Opening new ssh session
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] starting remote command: chmod 0755 /tmp/script_909.sh
2024/06/12 14:37:59 [INFO] RPC client: Communicator ended with: 0
2024/06/12 14:37:59 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [INFO] RPC endpoint: Communicator ended with: 0
2024/06/12 14:37:59 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 0
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] Opening new ssh session
2024/06/12 14:37:59 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:37:59 [DEBUG] starting remote command: sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_909.sh'
==> azure-arm.build_image: Downloading package from https://releases.hashicorp.com/packer/1.11.0/packer_1.11.0_linux_amd64.zip to /tmp/packer_1.11.0_linux_amd64.zip...
==> azure-arm.build_image: Package downloaded in 1 seconds
==> azure-arm.build_image: replace /usr/local/bin/LICENSE.txt? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
==> azure-arm.build_image: (EOF or read error, treating as "[N]one" ...)
##[debug]Agent environment resources - Disk: / Available 29868.00 MB out of 85160.00 MB, Memory: Used 1322.00 MB out of 7940.00 MB, CPU: Usage 0.58%
2024/06/12 14:38:01 [INFO] 0 bytes written for 'stdout'
2024/06/12 14:38:01 [INFO] 299 bytes written for 'stderr'
2024/06/12 14:38:01 [INFO] RPC client: Communicator ended with: 1
2024/06/12 14:38:01 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/12 14:38:01 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:38:01 [ERROR] Remote command exited with '1': sudo sh -c 'DEBIAN_FRONTEND='noninteractive' HELPER_SCRIPTS='/imagegeneration/helpers' INSTALLER_SCRIPT_FOLDER='/imagegeneration/installers' PACKER_BUILDER_TYPE='azure-arm' PACKER_BUILD_NAME='build_image' /tmp/script_909.sh'
2024/06/12 14:38:01 packer-plugin-azure_v1.4.5_x5.0_linux_amd64 plugin: 2024/06/12 14:38:01 [INFO] RPC endpoint: Communicator ended with: 1
2024/06/12 14:38:01 packer-provisioner-shell plugin: [INFO] 0 bytes written for 'stdout'
2024/06/12 14:38:01 packer-provisioner-shell plugin: [INFO] 299 bytes written for 'stderr'
2024/06/12 14:38:01 packer-provisioner-shell plugin: [INFO] RPC client: Communicator ended with: 1
2024/06/12 14:38:01 [INFO] (telemetry) ending shell

from runner-images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.