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

Azure Portal can't list functions (Azure Functions runtime is unreachable) #7330

Closed
kelly-centare opened this issue Apr 29, 2021 · 4 comments

Comments

@kelly-centare
Copy link

Investigative information

Hello, I inherited this application and am admittedly not an Azure expert. I am trying to troubleshoot some behavior and am having a difficult time getting any useable logs in the azure portal for this function. Looking through kudu is not revealing any recent longs (they are all from 2020, despite this function running every 15 minutes successfully).

  • Timestamp: 4/29/2021 3:15PM (but this is always happening)
  • Function App version: ~3
  • Function App name: keen-integration-dev
  • Function name(s) (as appropriate): All of them
  • Invocation ID: This is happening in the Azure Portal
  • Region: East US

I have seen similar issues reported (#4855) but my error is a bit different.

Repro steps

  1. Go to Azure portal
  2. Open up the azure function
  3. Click Functions on the sidebar
  4. See error

Expected behavior

A list of azure functions is displayed that can be drilled into for more info

Actual behavior

I'm seeing an error banner "Azure Functions runtime is unreachable" and no functions listed.

image

Additional dev console errors below:
image

2021-04-29T20:22:30.307Z [error][FunctionsListBlade][getFunctions][failed] - Failed to load functions

[WebsitesExtension] 3:22:30 PM FunctionsListBlade FunctionsListBlade: [FunctionsListBlade][getFunctions][failed] - Failed to load functions

ErrorEntity: Code: "BadRequest" Message: "Encountered an error (InternalServerError) from host runtime."

Known workarounds

None known.
I may be able to attach the debugger via Visual Studio and see log output this way.

Related information

Provide any related information

  • This function app does have 5 separate functions in it
  • I do see an error occurring every 6 hours, and I'm trying to get more information on that by viewing the logs these functions print out while running
@ghost ghost assigned brettsam Apr 29, 2021
@v-anvari v-anvari self-assigned this May 3, 2021
@v-anvari
Copy link

v-anvari commented May 3, 2021

Hi @kelly-centare , There are a few reasons why you may get this notification, shown in Figure 1 when you try to view your Function list in the Azure portal. One such reason is that you have some kind of network restriction like VNET or Firewall that prevents the Azure Function host from accessing the Azure Storage Account on which your code exists. So, check your endpoints which you have configured in the AzureWebJobsStorage and WEBSITE_CONTENTAZUREFILECONNECTIONSTRING application settings, and make sure there is nothing restricting the Function App host from access.

Here is the document to troubleshoot such issues: https://docs.microsoft.com/en-us/azure/azure-functions/functions-recover-storage-account

@balag0
Copy link
Contributor

balag0 commented May 3, 2021

The underlying exception seems to be

System.InvalidOperationException : No authentication handler is registered for the scheme 'ArmToken'. The registered schemes are: Identity.Application, Identity.External, Identity.TwoFactorRememberMe, Identity.TwoFactorUserId. Did you forget to call AddAuthentication().Add[SomeAuthHandler]("ArmToken",...)?

So this is likely the same issue as #6805
@kelly-centare recommend pinging the other thread to see if there are any possible workarounds.

@ghost
Copy link

ghost commented May 10, 2021

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

@ghost ghost closed this as completed May 13, 2021
@miklen
Copy link

miklen commented May 22, 2021

I have the same error and I think it's caused by adding authentication to the functions. I'm using the Azure Function authentication from Microsoft.Identity.Web (AzureAD/microsoft-identity-web#856).

@ghost ghost removed the no-recent-activity label May 22, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 21, 2021
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants