Hi everyone... I'm stuck right at the start... an...
# getting-started
a
Hi everyone... I'm stuck right at the start... and there isn't much help with the error on online... I have a fresh install of Ubuntu 24.04, and did the command
curl -fsSL <https://get.pulumi.com> | sh
After it's downloaded, I just get:
Copy code
We're sorry, but it looks like something might have gone wrong during installation.
If you need help, please join us on <https://slack.pulumi.com/>
m
Hm. What happens when you run
Copy code
curl -IL <https://github.com/pulumi/pulumi/releases/download/v3.126.0/pulumi-v3.126.0-darwin-arm64.tar.gz>
?
Sorry, adjusted for your OS, I mean
(You'll want to copy from your terminal output -- want to make sure you can establish a connection to the file)
It 302s and then 200s for me for
linux-x64
, so the file is there -- and now that I look at your output, it actually does look like you were able to download it šŸ¤”
I wonder if because you have a fresh install, you're missing one of the tools it's assumed you'd otherwise have available
a
Yep... 302 then 200... You want the full output?
That would make sense... just wish the warning was a little more helpful... is there a way I can get a verbose mode?
Where does it download to? Some temp directory?
as in, when I run the initial command
m
Yeah, from your output it looks like it went to (or tried to go to)
/home/gareth/.pulumi/bin
a
Yeah it tried to extract to there... but when did it download the
tar.gz
to?
I also tried manually creating those directories... as it made
.pulumi
but not
bin
gzip: stdin: unexpected end of file
makes me think it couldn't access it once it was downloaded?
m
Yeah
From the script: https://get.pulumi.com/
Looks like it ends up in a temp folder:
Copy code
TARBALL_DEST=$(mktemp -t pulumi.tar.gz.XXXXXXXXXX)
I'm not sure what's going wrong with the script, but if you can
curl
to get the download, you should be able to unpack the binary yourself and put it wherever you want
I suspect if you're curious you could copy and run the script to figure out what's not working that should be. I haven't had to debug this one before myself šŸ™‚
(Never heard of an issue with it though, so I'm curious myself)
f
yeah it looks to me like the downloaded
.tar.gz
was corrupt?
m
Ah yes -- does this repro on a second run?
a
Just having a look in
/tmp
there are a few things in there.. which I removed and did it again... I am looking at the script to see exactly where it's going wrong. So after running the command again in
/tmp
there is: •
pulumi.ofoalhEnH9
•
pulumi.tar.gz.OwEAHkMXoG/
There is nothing in the
pulumi.tar.gz.OwEAHkMXoG/
directory...
@miniature-musician-31262 - Yes, can reproduce many times
f
anything in your
/home/gareth/.pulumi/bin
directory?
a
bin never gets created...
.pulumi/
does... I have manually created
bin
and even gave it
777
permissions... same issue
f
would you mind trying to download the
.tar.gz
itself? e.g.
wget <https://github.com/pulumi/pulumi/releases/download/v3.126.0/pulumi-v3.126.0-linux-x64.tar.gz>
and then doing a hash check on it?
shasum -a 512 pulumi-v3.126.0-linux-x64.tar.gz
a
I just did
mkdir -p .pulumi/bin
as it does in the script, and
bin
was created.. I'll try the above now
šŸ‘ 1
f
there is a lil bit of logic in the script that checks for the
bin
path, so it might be better to delete it
right right, yeah
a
8e2e77529c78367f2c2a99a43d737d5849018c731c70f732114d414d8f5a4fd44476447880620eec08d22144fd7fec56fa8ad05670d696ade3f3cb44398e88ee  pulumi-v3.126.0-linux-x64.tar.gz
f
yeah, looks good
well, try `tar zxf`'ing that manually?
(can provide the full command if needed)
a
tar zxf pulumi-v3.126.0-linux-x64.tar.gz -C .pulumi/bin
??
Yep. So after doing
mkdir -p .pulumi/bin
and then
tar zxf pulumi-v3.126.0-linux-x64.tar.gz -C .pulumi/bin
as per the script... I get the following... All looks good to me
f
that'll do, yep
canonically/ideally the structure is
~/.pulumi/bin
so you could move the files from and delete
pulumi
for a more authentic install :D
then just set your path and you're good
no idea why the script is failin you though šŸ˜ž
a
The script does more after that.. Like adding to
PATH
so I'd still love to get the script working..
f
i just tried it on a fresh ubuntu 24.04 live server and it worked fine 🤷
yep that's the only other thing it does; you can do that manually too
a
Thanks. I appreciate the help... and going to that trouble
f
no worries!
yeah, add
export PATH=$PATH:/home/gareth/.pulumi/bin
(or .pulumi/bin/pulumi if you don't move the files) at the end of your
~/.bashrc
and you're done
a
I'm just trying to execute the commands in the script to see where it goes wrong.... Just looking at what was downloaded and created...
Copy code
drwx------  2 gareth gareth 4.0K Jul 26 09:17 pulumi.HyUVazJhxm
-rw-------  1 gareth gareth    0 Jul 26 09:17 pulumi.tar.gz.X7qUc6Rq0Y
Does that look correct for the temp tar.gz that was downloaded?
f
the filesize of 0 looks highly suspect šŸ˜„
a
LOL...I did not notice that 🤣
I've been out of the linux world for too long
Makes sense why we would get the warning
gzip: stdin: unexpected end of file
f
no worries - I just got sucked back into OSX a few weeks ago after a long absence šŸ˜†
yep, 100%
a
BUT WHY???
f
i know i know! let's blame it on "work" šŸ˜„
a
Ha... I mean why is it zero length after it's downloaded?
f
OH! lol
unsure - can we blame DNS somehow?
but seriously, i don't know offhand. the curl in your original screenshot did download 154mb so something happened somewhere šŸ˜•
a
I wonder if it could be something to do with my
GITHUB_TOKEN
not being set? But I doubt it, cause as we said, it's downloading to somewhere... and
wget
worked
I think I'm getting closer... This post: https://github.com/pulumi/pulumi/issues/9660#issuecomment-1279162492 Seems to think it's an issue with the
snap
version of
curl
... So have removed
snap
package, and added
apt
package. But now I get this:
-bash: /snap/bin/curl: No such file or directory
šŸ‘€ 1
Nevermind.
I logged out and back in again... and:
image.png
f
huzzah! aha, so the
snap
version does something weird/unexpected?
a
Thanks @future-hairdresser-70637.. You helped me find the real problem, which was zero length file... And thanks @miniature-musician-31262 for replying and helping
high five 2
Yes...
How do I log that with the powers that be?
f
hm, yeah, there's a bit of "X says it's Y's fault" and "Y says it's X's fault" going on in that issue. I feel it's fair to upvote and/or add a comment to that issue 9660 [I see you did just that; nice] but I'm not sure where a good resolution lies. the snap version of curl has a private /tmp, per discussions https://forum.snapcraft.io/t/changing-temp-directory-of-firefox-snap/29686/3 and https://forum.snapcraft.io/t/sharing-files-via-tmp/1613. Maybe https://github.com/pulumi/pulumi/issues/5590 (creating a snap for Pulumi) should be considered as a possible solution. I don't know. Lots of options. @miniature-musician-31262 this was listed as a pain point at one point (heh) but I don't know what the takeaway was
a
Thanks again
high five 1
d
Wait, this is still broken on 24.04? I thought it was fixed on 22.04
a
Well it looks that way... I uninstalled snap version, installed apt version ... it still didn't work... Then I logged out of my session and back in again,and it just worked...