https://pulumi.com logo
m

miniature-leather-70472

05/11/2021, 2:02 PM
Possibly dumb question, but does the Automation API .net version use Kestrel when running? Seeing a weird error when getting to the refresh stage where it crashes stating that kestrel cannot bind to the porta as it is already in use, which it is, by the web app I'm trying to run Pulumi from
p

prehistoric-coat-10166

05/11/2021, 2:06 PM
Yeah the dotnet Automation API sets up Kestrel https://github.com/pulumi/pulumi/blob/master/sdk/dotnet/Pulumi.Automation/WorkspaceStack.cs#L661 but it should listen to an ephemeral port by setting it to 0
b

bored-oyster-3147

05/11/2021, 2:07 PM
not a dumb question - yes it does. It spins up a GRPC host when using Automation API to run inline programs. Like @prehistoric-coat-10166 said though it should be grabbing its own port so this may be an issue
m

miniature-leather-70472

05/11/2021, 2:08 PM
It seems to be trying to grab the same port my app is running, and if I change the port it also changes, so I am guessing some config I have in my app is overriding the pulumi one
b

bored-oyster-3147

05/11/2021, 2:08 PM
yes, if you have
appsettings.json
it may be trying to grab that in error if it is located in the same directory. I suggest opening an issue because we should probably disable that
m

miniature-leather-70472

05/11/2021, 2:09 PM
yeah I do have an appsettings.json specifying that port, will raise a bug
Removing the appsettings. config resolved the issue, so I can work around it for now
b

bored-oyster-3147

05/12/2021, 8:48 PM
FYI the PR that should resolve this was merged earlier today
5 Views