I trying to create a stack in Azure and several Re...
# general
o
I trying to create a stack in Azure and several Resource can be created but the creation of the WebApp fails with a non meaningful error message:
Copy code
azure-native:web:WebApp (MyApp):
    error: autorest/azure: Service returned an error. Status=<nil> <ni>
If I activate verbose logging I see following error message, regarding a blob not found:
Copy code
I0426 17:05:56.202820   29574 state.go:268] error copying .pulumi/stacks/dev2.json to .pulumi/stacks/dev2.json.bak: blob (key ".pulumi/stacks/dev2.json.bak -> .pulumi/stacks/dev2.json") (code=NotFound): -> <http://github.com/Azure/azure-storage-blob-go/azblob.newStorageError|github.com/Azure/azure-storage-blob-go/azblob.newStorageError>, /Users/brew/Library/Caches/Homebrew/go_mod_cache/pkg/mod/github.com/!azure/azure-storage-blob-go@v0.13.0/azblob/zc_storage_error.go:42
(I'm using my own pulumi state backend in azure blob store) I'm a bit lost how to to solve this issue and would be happy for any support or hint. Thanks in advance 🙏
e
🤦‍♂️ So that's not really an error, just a warning but this prompted me to go look at the code because and see that src and dst are the wrong way round to the copy call. Not sure about the azure:WebApp. Someone with azure experience might know how to work that out.
o
Thx @echoing-dinner-19531! That means, the warning message saying that there is an error copying the blob is actually an internal pulumi problem and most probably unrelated to the error I get when trying to create my webapp. At least it helps me to not focus to much in searching the problem in pulumi state blob storage. Still some hint how to better troubleshoot the web app issue would be great. 🆘
e
Yup the fix for that will be in the next release. You could try turning on debug logging, not sure it will print anything useful but worth a try, add
-v9 --logflow --logtostderr
to your pulumi command
1
o
The detailed logging gave me the missing hint. The error was due to already existing WebApp.name.
🙌 1