`pulumi up` takes >300s after printing "Preview...
# general
d
pulumi up
takes >300s after printing "Previewing update (main):" before printing anything else out with "--debug --verbose 3". Any idea how to diagnose the problem ?
b
d
Should I be worried that it doesn't create the trace file (at least within the first 300s) ?
b
it sounds like it’s taking a long time to build/transpile. are you using ts?
d
Yes
pulumi-plan (5m28.156s)
image.png
Thanks, I should be able to sort it out from this
(note also that there's no CPU usage while this is happening, just sleeping)
And if I kill
pulumi-language-nodejs
, nothing happens for quite a while
I've tracked this down to something in Pulumi trying to connect to GitHub.com despite the fact that I have: PULUMI_SKIP_UPDATE_CHECK=1 PULUMI_API='-' PULUMI_CONSOLE_DOMAIN='-' and everything works once the 5m timeout is reached
It's specifiically trying to reach
<http://api.github.com|api.github.com>
I think the easiest solution here is to patch this out of Pulumi
b
it’s trying to download the providers
d
The providers I use are already downloaded:
Copy code
$ pulumi plugin ls
NAME     KIND      VERSION  SIZE    INSTALLED   LAST USED
aws      resource  5.33.0   516 MB  1 week ago  1 week ago
command  resource  0.7.2    32 MB   1 week ago  1 week ago
docker   resource  4.1.2    45 MB   1 week ago  1 week ago
gcp      resource  6.54.0   136 MB  1 week ago  1 week ago
random   resource  4.12.1   72 MB   1 week ago  1 week ago
If it was something needed then shouldn't it fail ?
where it checks for the latest version
d
Even with
PULUMI_SKIP_UPDATE_CHECK=1
?
b
that only disables checks for the CLI version, not providers I’ve opened https://github.com/pulumi/pulumi/issues/12747
d
It's actually from
Download()
not
GetLatestVersion
, if I cause it to give a backtrace when it tries to connect
Copy code
<http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*fallbackSource).Download(0xc0033cee00|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*fallbackSource).Download(0xc0033cee00>, {0x5, 0x25, 0x0, {0x0, 0x0, 0x0}, {0x0, 0x0, 0x0}}, ...)

/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:605 +0x65 <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.PluginSpec.Download({{0xc0015aa8b8|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.PluginSpec.Download({{0xc0015aa8b8>, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, 0x0}, 0x0})
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:946 +0x12a <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).tryDownload(0xc0034a7db8|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).tryDownload(0xc0034a7db8>, {{0xc0015aa8b8, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, 0x0}, ...}, ...)
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1141 +0xd8 <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).tryDownloadToFile(0xc00349fb08|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).tryDownloadToFile(0xc00349fb08>?, {{0xc0015aa8b8, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1165 +0x8b <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).downloadToFileWithRetry.func1(0x0|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).downloadToFileWithRetry.func1(0x0>, 0xc00349fb68?)
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1197 +0x7b <http://github.com/pulumi/pulumi/sdk/v3/go/common/util/retry.(*Retryer).Until|github.com/pulumi/pulumi/sdk/v3/go/common/util/retry.(*Retryer).Until>(0xc0032d0c60?, {0x2bcaea0, 0xc000118000}, {0xc00349fbb0?, 0xc00349fb98?, 0xc00349fba0?, 0x0?})
/home/runner/work/pulumi/pulumi/sdk/go/common/util/retry/until.go:97 +0x111 <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).downloadToFileWithRetry(0xc00349fdd0|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).downloadToFileWithRetry(0xc00349fdd0>?, {{0xc0015aa8b8, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1189 +0xd6 <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).DownloadToFile(0x711bdfe8b130|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.(*pluginDownloader).DownloadToFile(0x711bdfe8b130>?, {{0xc0015aa8b8, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, 0x0}, ...})
/home/runner/work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1238 +0x58 <http://github.com/pulumi/pulumi/sdk/v3/go/common/workspace.DownloadToFile(...)|github.com/pulumi/pulumi/sdk/v3/go/common/workspace.DownloadToFile(...)>
/home/runner/ work/pulumi/pulumi/sdk/go/common/workspace/plugins.go:1259 <http://github.com/pulumi/pulumi/pkg/v3/engine.installPlugin({0x2bcae68|github.com/pulumi/pulumi/pkg/v3/engine.installPlugin({0x2bcae68>, 0xc000a07c20}, {{0xc0015aa8b8, 0x3}, {0xc0015aa8c0, 0x8}, 0xc000a06e10, {0x0, 0x0}, {0x0, ...}, ...})
/home/runner/work/pulumi/pulumi/pkg/engine/plugins.go:243 +0x3c5 <http://github.com/pulumi/pulumi/pkg/v3/engine.ensurePluginsAreInstalled.func1()|github.com/pulumi/pulumi/pkg/v3/engine.ensurePluginsAreInstalled.func1()>
/home/runner/work/pulumi/pulumi/pkg/engine/plugins.go:196 +0x105 <http://golang.org/x/sync/errgroup.(*Group).Go.func1()|golang.org/x/sync/errgroup.(*Group).Go.func1()>
/home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:75 +0x64 created by <http://golang.org/x/sync/errgroup.(*Group).Go|golang.org/x/sync/errgroup.(*Group).Go>
/home/runner/go/pkg/mod/golang.org/x/sync@v0.1.0/errgroup/errgroup.go:72 +0xa5
It's trying to fetch a newer version of the "aws" plugin, which I don't actually use
It was also trying to access "get.pulumi.com", so I was having some slowness after removing "api.github.com", but removing references to both it's working as a workaround until I can transfer over the new version of the aws resource provider (even though I'm not using it)
Thanks !