Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment Failure Reason: An unknown error has occurred. #348

Open
miklen opened this issue Apr 4, 2021 · 14 comments
Open

Deployment Failure Reason: An unknown error has occurred. #348

miklen opened this issue Apr 4, 2021 · 14 comments

Comments

@miklen
Copy link

miklen commented Apr 4, 2021

I've created SWA resource in Azure, and connected it to my GitHub repo, where it created the deployment workflows. I started out trying a deployment without an api-location, and that worked fine. I then moved my Azure Function code from it's separate repo into an api/ folder and pointed the api-location to the path for the functions project and retried deployment. This time it fails with an unknown error while trying to deploy the Azure Function.

Function Runtime Information. OS: Windows, Functions Runtime: v3, .NET Core version: 3.1
Finished building function app with Oryx
Zipping App Artifacts
Done Zipping App Artifacts
Zipping Api Artifacts
Done Zipping Api Artifacts
Uploading build artifacts.
Finished Upload. Polling on deployment.
Status: InProgress. Time: 0.2428578(s)
Status: InProgress. Time: 15.4844796(s)
Status: InProgress. Time: 30.8256391(s)
Status: InProgress. Time: 45.9461007(s)
Status: InProgress. Time: 61.1216657(s)
Status: InProgress. Time: 76.2432086(s)
Status: Failed. Time: 91.581539(s)
Deployment Failed :(
Deployment Failure Reason: An unknown error has occurred.
@miklen
Copy link
Author

miklen commented Apr 4, 2021

So I just found out that you can't create consumption plan Azure Functions on the Free Trial subscription, and that's probably what's causing this to fail.

A more helpful error would be nice though.

@miklen miklen closed this as completed Apr 4, 2021
@anthonychu
Copy link
Member

That shouldn’t be the problem (we’ve also fixed the issue that was incorrectly blocking consumption functions on free/trial subscriptions, it’s currently rolling out).

We need to take a closer look at this. Do you mind leaving your repo where it is while we investigate?

@anthonychu anthonychu reopened this Apr 5, 2021
@miklen
Copy link
Author

miklen commented Apr 5, 2021

@anthonychu I had already begun moving to deploying in to a regular Function App when I saw your message. I have created a branch with the problem for you, and it still fails with the same error:

https://github.com/miklen/ezdinner-vue/runs/2267902001?check_suite_focus=true
https://github.com/miklen/ezdinner-vue/tree/swa-api-deployment

@wdorsett84
Copy link

wdorsett84 commented Apr 29, 2021

Hello @anthonychu , any word on this issue? My initial github action succeeded on main branch however after making modifications to the API and Client app, I began receiving this error above as part of a pull request to main as well as a push to main. My client app is written on Blazor and the API app in C#.

@anthonychu
Copy link
Member

@wdorsett84 can you please share the repo you’re using if it’s public? Otherwise can you share some logs from the GitHub action run?

@wdorsett84
Copy link

github_action_log.log

@anthonychu Attached is the log file. It's a private repo. I won't be able to share it here. I hope this helps.

@anthonychu
Copy link
Member

Thanks that’s helpful. @miwebst can you please take a look?

@miwebst
Copy link
Contributor

miwebst commented Apr 30, 2021

Hey @wdorsett84, to ensure we are looking at the right app, do you mind giving us the default hostname (yellow-sea-12121) or the resource group and resource name? We can probably make a guess based on the time of the failure but want to be sure.

@wdorsett84
Copy link

Sure @miwebst It's calm-bush-038a5c310.

@miwebst
Copy link
Contributor

miwebst commented Apr 30, 2021

Thanks @wdorsett84 it seems like the function app is not able to start up. We have an update coming to make this failure message more descriptive. As for the function app issue, @annaji-msft can you see what's going on?

@wdorsett84
Copy link

@miwebst @annaji-msft Hi. Any word on this?

@annaji-msft
Copy link
Member

annaji-msft commented May 14, 2021

SyncTriggers failed with error below
"System.InvalidOperationException : No authentication handler is registered for the scheme 'ArmToken'. The registered schemes are: Bearer. Did you forget to call AddAuthentication().AddSomeAuthHandler"

Could be related to Azure/azure-functions-host#6805

@anthonychu Anything that @wdorsett84 do to mitigate the issue?

By the way you can configure application insights and get these errors show up on your end too 👍

@miklen
Copy link
Author

miklen commented May 22, 2021

@annaji-msft I'm using the Azure Function authentication from Microsoft.Identity.Web (AzureAD/microsoft-identity-web#856). I also have the error mentioned here Azure/azure-functions-host#7330.

Could that be what's making the deployment fail?

@vangelkolarov-actioncamvideo

Hi guys, I'm facing the same Deployment Failed issue. I created a couple of similar projects but after a few commits, I started getting this error and I can not continue working on the projects. Here are the actions from the public repo: https://github.com/vangelkolarov-actioncamvideo/clone-of-blazor-starter/actions. My default hostname at Azure is calm-field-0f865.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants