Frequently getting Encountered an error (ServiceUnavailable) from host runtime for Function app

Athreya 0 Reputation points

Hi Team,

We are running the functions using custom images we kept the DOCKER_REGISTRY_SERVER_USERNAME and DOCKER_REGISTRY_SERVER_PASSWORD(To pull the image from private ACR repo) as part of the app settings. Recently we started observing these functions are not responsive and we can see this error "Frequently getting Encountered an error (ServiceUnavailable) from host runtime" at the console, Also we observed docker variables(mentioned above) are getting deleted automatically. if we redeploy the function app things work fine for a certain amount of time, and we observe the same behavior again. Is there any possible reason for this ..?? Please suggest

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,655 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ganeshkumar R 590 Reputation points

    Can you check your functionTimeout settings in host.json?..

    • Update the function timeout if needed, in the host.json file:
    • json { "functionTimeout": "00:10:00" }