Function didn't respond to HTTP pings on port: [PORT] - Azure Function - Timer Trigger - Vnet Integration - Docker Image

sebams 1 Reputation point
2020-02-27T15:50:49.897+00:00

Hello!

I have a azure cloud funcion with this setup:

  • Time Trigger
  • Function in Docker Container Image
  • Written in Python 3.6
  • VNet Integration

When the function starts, I see the following messages:

2020-02-27 15:20:05.810 INFO  - Initiating warmup request to container blahblah_0_cd93108b for site blahblah  
2020-02-27 15:20:22.558 INFO  - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 16.7475908 sec  
2020-02-27 15:20:38.083 INFO  - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 32.2735618 sec  
2020-02-27 15:20:53.532 INFO  - Waiting for response to warmup request for container blahblah_0_cd93108b. Elapsed time = 47.7220175 sec  
.....  
2020-02-27 15:23:56.617 ERROR - Container blahblah_0_cd93108b for site blahblah did not start within expected time limit. Elapsed time = 230.8072664 sec  
2020-02-27 15:23:56.624 INFO  - Initiating warmup request to container blahblah_0_cd93108b_middleware for site blahblah  
2020-02-27 15:24:06.548 INFO  - Container blahblah_0_cd93108b_middleware for site blahblah initialized successfully and is ready to serve requests.  
2020-02-27 15:24:06.839 ERROR - Container blahblah_0_cd93108b didn't respond to HTTP pings on port: 9082, failing site start. See container logs for debugging.  
2020-02-27 15:24:06.981 INFO  - Stoping site blahblah because it failed during startup.  

 

After a few executions, I see the final message and my function stops and tries again a few minutes later without success.

I found that azure doesn't have the access to made a request on this Port, but how I bind this port? The port is setted automatically on the docker run command and is dynamic (never is the same), so I can't expose on my Dockerfile or even overwrite on the Application settings (in my function config)

I also can't set or modify the PORT parameter when the function starts.

What I can do?

Best!

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,945 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 15,256 Reputation points Microsoft Employee
    2020-02-27T18:23:07.817+00:00

    @sebams Q&A is currently in a preview state and there are a handful of products there were moved over. Azure Functions is still currently being supported on MSDN forums. Please follow this link so you are put in touch with Function experts who can best assist you.

    Thank you for your understanding while we are in transition.

    0 comments No comments