Comments (7)
@pmatthews05 - Thank you for bringing this issue to us, we are looking into this issue, we will update you.
from runner-images.
I can confirm I can build the image again. Many thanks.
from runner-images.
I've taken a quick look, I've worked out the problem. It's referencing a var instead of a local.
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.
@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.
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
from runner-images.
@veronicagt094 - Can you please send us the detailed logs with errors.
from runner-images.
@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)
- Flag an app or review on Google Play - Computer - Google Play Help
- ubuntu-24.04 Error during unshare(...): Operation not permitted HOT 3
- WDK installation fails during windows2022 image build HOT 14
- Update/Add [tool name] HOT 2
- Failed to Fetch https://azure.archive.ubuntu.com Not Found HOT 7
- Automated
- Update Visual Studio 2022 to 17.11 HOT 1
- Microsoft.Azure.DevOps.Pipelines.Agent v1.23 VM Extension does not start in Ubuntu 24.04 image HOT 2
- Docker-compose not actually installed HOT 15
- Run fails due to a bug HOT 3
- Request to add Xcode 16.0 beta back HOT 3
- Add Visual Studio Community IDE HOT 3
- Update/Add [tool name] Need Chrome 127.0.6533.120 and chrome driver 127.0.6533.119 HOT 4
- Darcs package missing for Ubuntu 24.04 runners HOT 1
- Merge
- windows-arm lacks bash AND pwsh, as well as git itself. HOT 3
- Add systemd-coredump HOT 6
- Strawberry perl installation includes pkg-config which interferes with other stuff HOT 2
- Spurious file-related failures on Windows runners HOT 2
- `sudo -v` fails with `a terminal is required to read the password` on macos images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from runner-images.