https://pulumi.com logo
#getting-started
Title
# getting-started
w

wide-holiday-45783

05/20/2021, 5:26 PM
Hi folks. I've searched through this slack & github workspace for a similar issue and couldn't find anything. I suspect my problem is something trivial. Basically running pulumi (preview|up) hits the error below. This seems to be a problem within pulumi as it happens whether or not my index.ts file exists. I'm adding logs in thread:
perhaps not - slack won't let me send.
Copy code
Diagnostics:
  pulumi:pulumi:Stack (junkyard-prod):
    unhandled rejection: CONTEXT(3): resource:junkyard-prod[pulumi:pulumi:Stack]
    STACK_TRACE:
    Error:
        at Object.debuggablePromise (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
        at Object.registerResource (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:220:18)
        at new Resource (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/resource.js:215:24)
        at new ComponentResource (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/resource.js:386:9)
        at new Stack (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/stack.js:62:9)
        at Object.runInPulumiStack (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/stack.js:48:23)
        at Object.run (/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/cmd/run/run.js:235:20)
        at /home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/cmd/run/index.js:139:42
Thats the stack trace at the end of the log.
This is the preceeding logging:
Copy code
Enter your passphrase to unlock config/secrets                                                                                                                                                                                        [27/1900]
    (set PULUMI_CONFIG_PASSPHRASE or PULUMI_CONFIG_PASSPHRASE_FILE to remember):                                                                                                                                                               
Previewing update (prod):                                                                                                                                                                                                                      
I0520 17:22:43.687837   32536 plugins.go:77] gatherPluginsFromProgram(): gathering plugins from language host                                                                                                                                  
I0520 17:22:43.688111   32536 plugins.go:593] GetPluginPath(language, nodejs, <nil>): found on $PATH /home/pjriot/.pulumi/bin/pulumi-language-nodejs                                                                                             
I0520 17:22:43.688176   32536 plugin.go:124] Launching plugin 'nodejs' from '/home/pjriot/.pulumi/bin/pulumi-language-nodejs' with args: 127.0.0.1:41865                                                                                         
I0520 17:22:43.749900   32536 langruntime_plugin.go:178] langhost[nodejs].GetPluginInfo() executing                                                                                                                                            
I0520 17:22:43.750645   32536 langruntime_plugin.go:91] langhost[nodejs].GetRequiredPlugins(proj=junkyard,pwd=/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi,program=.) executing                                                          
I0520 17:22:44.003482   32536 langruntime_plugin.go:133] langhost[nodejs].GetRequiredPlugins(proj=junkyard,pwd=/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi,program=.) success: #versions=1                                              
I0520 17:22:44.003589   32536 plugins.go:89] gatherPluginsFromProgram(): plugin nodejs <nil> () is required by language host                                                                                                                   
I0520 17:22:44.003648   32536 plugins.go:89] gatherPluginsFromProgram(): plugin kubernetes 3.0.0 () is required by language host                                                                                                               
I0520 17:22:44.003686   32536 plugins.go:101] gatherPluginsFromSnapshot(): gathering plugins from snapshot                                                                                                                                     
I0520 17:22:44.003734   32536 plugins.go:104] gatherPluginsFromSnapshot(): no snapshot available, skipping                                                                                                                                     
I0520 17:22:44.003755   32536 plugins.go:133] ensurePluginsAreInstalled(): beginning                                                                                                                                                           
I0520 17:22:44.004053   32536 plugins.go:633] GetPluginPath(resource, kubernetes, 3.0.0): enabling new plugin behavior                                                                                                                         
I0520 17:22:44.004119   32536 plugins.go:715] SelectCompatiblePlugin(..., kubernetes): beginning                                                                                                                                               
I0520 17:22:44.004151   32536 plugins.go:744] SelectCompatiblePlugin(..., kubernetes): best plugin kubernetes-3.0.0: semver match                                                                                                              
I0520 17:22:44.004197   32536 plugins.go:757] SelectCompatiblePlugin(..., kubernetes): selecting plugin 'kubernetes-3.0.0': best match                                                                                                         
I0520 17:22:44.004262   32536 plugins.go:680] GetPluginPath(resource, kubernetes, 3.0.0): found in cache at /home/pjriot/.pulumi/plugins/resource-kubernetes-v3.0.0/pulumi-resource-kubernetes                                                   
I0520 17:22:44.004289   32536 plugins.go:138] ensurePluginsAreInstalled(): plugin kubernetes 3.0.0 already installed                                                                                                                           
I0520 17:22:44.004398   32536 plugins.go:593] GetPluginPath(language, nodejs, <nil>): found on $PATH /home/pjriot/.pulumi/bin/pulumi-language-nodejs                                                                                             
I0520 17:22:44.004445   32536 plugins.go:138] ensurePluginsAreInstalled(): plugin nodejs <nil> already installed                                                                                                                               
I0520 17:22:44.004480   32536 plugins.go:153] ensurePluginsAreInstalled(): completed                                                                                                                                                           
I0520 17:22:44.004521   32536 plugins.go:241] computeDefaultProviderPlugins(): considering nodejs                                                                                                                                              
I0520 17:22:44.004577   32536 plugins.go:244] computeDefaultProviderPlugins(): skipping nodejs, not a resource provider                                                                                                                        
I0520 17:22:44.004612   32536 plugins.go:241] computeDefaultProviderPlugins(): considering kubernetes-3.0.0                                                                                                                                    
I0520 17:22:44.004652   32536 plugins.go:272] computeDefaultProviderPlugins(): plugin kubernetes-3.0.0 selected for package kubernetes (first seen)                                                                                            
I0520 17:22:44.004682   32536 plugins.go:278] computeDefaultProviderPlugins(): summary of default plugins:                                                                                                                                     
I0520 17:22:44.004719   32536 plugins.go:280]   kubernetes      = 3.0.0
I0520 17:22:44.005147   32536 deployment_executor.go:400] deploymentExecutor.retirePendingDeletes(...): no pending deletions
I0520 17:22:44.005208   32536 deployment_executor.go:221] deploymentExecutor.Execute(...): waiting for incoming events
I0520 17:22:44.005232   32536 langruntime_plugin.go:144] langhost[nodejs].Run(pwd=/home/pjriot/jpgse-infra/tools/junkyard/infra/pulumi,program=.,#args=0,proj=junkyard,stack=prod,#config=22,dryrun=true) executing
I0520 17:22:44.005248   32536 step_executor.go:327] StepExecutor worker(-2): worker coming online
I0520 17:22:44.005431   32536 step_executor.go:327] StepExecutor worker(-2): worker waiting for incoming chains
And the rest of the log:
Copy code
I0520 17:22:44.794059   32536 eventsink.go:70] eventSink::Info(<{%reset%}>unhandled rejection: CONTEXT(3): resource:junkyard-prod[pulumi:pulumi:Stack]
<{%reset%}>)
I0520 17:22:44.794133   32536 eventsink.go:70] eventSink::Info(<{%reset%}>STACK_TRACE:
<{%reset%}>)
I0520 17:22:44.794168   32536 eventsink.go:70] eventSink::Info(<{%reset%}>Error:
<{%reset%}>)
I0520 17:22:44.794190   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at Object.debuggablePromise (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/debuggable.js:69:75)
<{%reset%}>)
I0520 17:22:44.794218   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at Object.registerResource (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/resource.js:220:18)
<{%reset%}>)
I0520 17:22:44.794265   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at new Resource (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/resource.js:215:24)
<{%reset%}>)
I0520 17:22:44.794293   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at new ComponentResource (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/resource.js:386:9)
<{%reset%}>)

I0520 17:22:44.794358   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at new Stack (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/stack.js:62:9)
<{%reset%}>)
I0520 17:22:44.794436   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at Object.runInPulumiStack (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/runtime/stack.js:48:23)
I0520 17:22:44.794502   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at Object.run (/home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/cmd/run/run.js:235:20)
<{%reset%}>)
I0520 17:22:44.794534   32536 eventsink.go:70] eventSink::Info(<{%reset%}>    at /home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/cmd/run/index.js:139:42
<{%reset%}>)
     pulumi:pulumi:Stack  junkyard-prod               at /home/robm/jpgse-infra/tools/junkyard/infra/pulumi/node_modules/@pulumi/pulumi/cmd/run/index.js:139:42
I0520 17:22:44.885945   32536 langruntime_plugin.go:171] langhost[nodejs].RunPlan(pwd=/home/robm/jpgse-infra/tools/junkyard/infra/pulumi,program=.,...,dryrun=true) success: progerr=
I0520 17:22:44.887718   32536 source_eval.go:176] EvalSourceIterator ended with bail.
I0520 17:22:44.887769   32536 deployment_executor.go:225] deploymentExecutor.Execute(...): incoming event (nil? true, &{<nil>})
I0520 17:22:44.887825   32536 step_executor.go:327] StepExecutor worker(-1): StepExecutor.waitForCompletion(): waiting for worker threads to exit
I0520 17:22:44.887862   32536 step_executor.go:327] StepExecutor worker(-2): worker exiting due to cancellation
I0520 17:22:44.887906   32536 step_executor.go:327] StepExecutor worker(-1): StepExecutor.waitForCompletion(): worker threads all exited
I0520 17:22:44.887924   32536 deployment_executor.go:261] deploymentExecutor.Execute(...): step executor has completed
I0520 17:22:44.887995   32536 deployment_executor.go:132] deploymentExecutor.Execute(...): exiting provider canceller
     pulumi:pulumi:Stack  junkyard-prod           11 messages
Answering my own question: this appears to have been a problem with dependencies. I'm behind a corporate proxy here. Starting up a separate new project and testing that seems to have fixed whatever was wrong. I can now deploy this one.
3 Views