https://pulumi.com logo
Title
m

miniature-leather-70472

01/13/2023, 2:08 PM
Anyone have any thoughts on this problem? It may be my container skills and nothing to do with Pulumi, but we are using the automation API running in a Linux container and when we get to running the " await LocalWorkspace.CreateOrSelectStackAsync(stackArgs)" command we get this error: " An error occurred trying to start process 'pulumi' with working directory '/tmp/automation-3g4geg4m.bps'. No such file or directory" I've checked and that folder definitely exists, it is owned by root and the container is running as root, so I can't see why it can't see it. Does the automation API run as a different user to the container? Any other ideas?
m

many-telephone-49025

01/13/2023, 2:50 PM
Hi Sam, I am not aware of this. What language are you using?
m

miniature-leather-70472

01/13/2023, 2:54 PM
This is C#
I've also just tried setting the TmpDir environment variable to another location in case it was a permissions thing and get the same problem with another dir
m

many-telephone-49025

01/13/2023, 3:14 PM
I assume that the c# program get's called with root user too?
m

miniature-leather-70472

01/13/2023, 3:28 PM
I believe so yes. If I manually build and run the C# app I get the same error, and that is running as root
m

many-telephone-49025

01/13/2023, 3:29 PM
Happy if you have code snippet to share, otherwise I try to recreate it to understand the issue better!
m

miniature-leather-70472

01/13/2023, 3:32 PM
The app I've got is quite a complex set of code, let me see if I can replicate it with a smaller set of code
m

many-telephone-49025

01/13/2023, 3:43 PM
Otherwhise I create one too
l

lemon-agent-27707

01/16/2023, 11:51 PM
If you're running deployments within containers (and potentially API requests) I might suggest you check out #pulumi-deployments https://www.pulumi.com/blog/pulumi-deployments/