billowy-country-88419
06/29/2024, 7:00 AMType Name Plan Info
+ pulumi:pulumi:Stack quickstart-dev create 2 messages
Diagnostics:
pulumi:pulumi:Stack (quickstart-dev):
assertion failed [arm_interval().contains(address)]: code fragment does not contain the given arm address
(CodeFragmentMetadata.cpp:48 instruction_extents_for_arm_address)
Any clues what could be going on?cold-garden-58590
07/02/2024, 12:22 PMlemon-scooter-94063
07/02/2024, 4:37 PMbillowy-country-88419
07/02/2024, 5:53 PMlemon-scooter-94063
07/02/2024, 6:27 PMarm_interval().contains(address)
to make sure the values are what you're expecting.billowy-country-88419
07/02/2024, 6:32 PMlemon-scooter-94063
07/02/2024, 7:01 PMcold-garden-58590
07/02/2024, 7:44 PM3.121.0
, some buddies are having this issue:cold-garden-58590
07/02/2024, 7:45 PMpulumi:pulumi:Stack jarvis-molivas running assertion failed [arm_interval().contains(address)]: code fragment does not contain the given arm address
pulumi:pulumi:Stack jarvis-molivas running (CodeFragmentMetadata.cpp:48 instruction_extents_for_arm_address)
cold-garden-58590
07/02/2024, 7:46 PMlemon-scooter-94063
07/02/2024, 8:26 PMbored-king-84600
07/04/2024, 10:31 PMpulumi up
hangs indefinitely with this same error. Very frustrating as I’m trying to do a proof of concept but the feedback loop with Pulumi is slowing me down.
I’ve upgraded pulumi CLI but didn’t helpbored-king-84600
07/05/2024, 4:06 AMprehistoric-piano-40714
07/05/2024, 7:00 PMprehistoric-piano-40714
07/05/2024, 7:01 PMquick-house-41860
07/06/2024, 7:20 AMCodeFragmentMetadata.cpp
relates to Rosetta2 on macos. Could it be that you're running an x86_64 pulumi binary on an apple silicon Mac?
Can you send the output of pulumi about
please?prehistoric-piano-40714
07/06/2024, 4:06 PM> pulumi about
CLI
Version 3.122.0
Go Version go1.22.4
Go Compiler gc
Plugins
KIND NAME VERSION
language nodejs unknown
Host
OS darwin
Version 14.5
Arch arm64
This project is written in nodejs: executable='[redacted]/.nvm/versions/node/v18.20.1/bin/node' version='v18.20.1'
Current Stack: [redacted]
TYPE URN
pulumi:pulumi:Stack [redacted]
Found no pending operations associated with [redacted]
Backend
Name [redacted]
URL s3://[redacted]
User [redacted]
Organizations
quick-house-41860
07/06/2024, 7:05 PMfile ~/.pulumi/plugins/resource-aws-v6.42.0/pulumi-resource-aws
In the meantime I opened a GitHub issue to capture this problem: https://github.com/pulumi/pulumi-aws/issues/4190
So sorry that y'all are running into this!prehistoric-piano-40714
07/06/2024, 7:10 PM~/.pulumi/plugins/resource-aws-v6.40.0/pulumi-resource-aws: Mach-O 64-bit executable x86_64
~/.pulumi/plugins/resource-aws-v6.41.0/pulumi-resource-aws: Mach-O 64-bit executable x86_64
~/.pulumi/plugins/resource-aws-v6.42.1/pulumi-resource-aws: Mach-O 64-bit executable x86_64
~/.pulumi/plugins/resource-aws-v6.43.0/pulumi-resource-aws: Mach-O 64-bit executable x86_64
Interesting, given that I'm on an M1 Mac. But still seems to work with 6.41.0.
Thanks for getting into it.quick-house-41860
07/06/2024, 7:15 PMfile "$(which pulumi)"
? I wanna check whether the pulumi CLI itself is an x86_64
binary as wellprehistoric-piano-40714
07/06/2024, 7:17 PM/opt/homebrew/bin/pulumi: Mach-O 64-bit executable arm64
quick-house-41860
07/06/2024, 7:48 PMpulumi plugin rm resource aws 6.42.0
), then re-install it (pulumi plugin install resource aws 6.42.0
) and check it's architecture again?
And please also check the architecture of your node binary. It seems to be in ~/.nvm/versions/node/v18.20.1/bin/node
prehistoric-piano-40714
07/07/2024, 12:37 AMquick-house-41860
07/07/2024, 9:00 PMarm64
based AWS provider works as expected and doesn't run into the same issue as the x86_64
one?
How did you install providers previously? Automatically when running a Pulumi Program or are you using automation API (or some tool that wraps it)?
I'm trying to understand how/why an x86_64 provider got installed. Could you remove the provider again and run your usual Pulumi workflow with increased log level (add -v=10
to the CLI command) and inspect the architecture of the downloaded provider binary. Thanks!billowy-country-88419
07/07/2024, 9:03 PMbrew install pulumi/tap/pulumi
quick-house-41860
07/07/2024, 9:05 PMfile "$(which pulumi)"
billowy-country-88419
07/07/2024, 9:06 PM/usr/local/bin/pulumi: Mach-O 64-bit executable x86_64
Also saw this in pulumi about. I’m using an M1 Macbookquick-house-41860
07/07/2024, 9:09 PMbillowy-country-88419
07/07/2024, 9:12 PMquick-house-41860
07/07/2024, 9:15 PMarch
to check the architecture for the current shell session. Brew will use that for installing packages. If it comes back as arm64 you can try uninstalling pulumi and re-installing it again with arch -arm64 brew ...
to force it to use the right architecture.billowy-country-88419
07/07/2024, 9:21 PMquick-house-41860
07/07/2024, 9:25 PMbrew config
for you? That might give a hint why it installs x86 packages for youbillowy-country-88419
07/07/2024, 9:27 PMHOMEBREW_VERSION: 4.3.8
ORIGIN: <https://github.com/Homebrew/brew>
HEAD: e5f776b3e23cae8f1b6c3d1194b8329bf701965f
Last commit: 7 days ago
Core tap HEAD: 47afb81ec90726250b64a104d5a7b72cf9a360f6
Core tap last commit: 5 days ago
Core tap JSON: 07 Jul 21:16 UTC
Core cask tap JSON: 07 Jul 21:16 UTC
HOMEBREW_PREFIX: /usr/local
HOMEBREW_REPOSITORY: /usr/local/Homebrew
HOMEBREW_CELLAR: /usr/local/Cellar
HOMEBREW_CASK_OPTS: []
HOMEBREW_DISPLAY: /private/tmp/com.apple.launchd.HiMMQyiyxF/org.macosforge.xquartz:0
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.3.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3.3.3/bin/ruby
CPU: octa-core 64-bit westmere
Clang: 15.0.0 build 1500
Git: 2.29.2 => /usr/local/bin/git
Curl: 8.6.0 => /usr/bin/curl
macOS: 14.5-x86_64
CLT: 15.3.0.0.1.1708646388
Xcode: N/A
Rosetta 2: true
I think that’s found the reason! not sure how to fix that but thanks for the helpquick-house-41860
07/07/2024, 9:31 PMbillowy-country-88419
07/07/2024, 9:32 PMrm -rf ~/.pulumi
which should get everything.bored-king-84600
07/07/2024, 9:36 PMbored-king-84600
07/07/2024, 10:00 PMpulumi plugin rm resource aws 6.42.0
even after uninstalling and installing pulumi, but it’s all working now. Thanks again @quick-house-41860prehistoric-piano-40714
07/08/2024, 5:04 PM@pulumi/aws
, then running pulumi commands as usual. After deleting 6.43.0, I couldn't replicate the problem; pulumi preview
correctly downloaded the arm version of 6.43.0. Wondering if maybe a different pulumi flow is the problem: pulumi refresh
, or the automation API, or something like that. I'll keep an eye out.