question

sebams-5811 avatar image
0 Votes"
sebams-5811 asked ·

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

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-webapps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

brtrachMSFT-0711 avatar image
0 Votes"
brtrachMSFT-0711 answered ·

@sebams-5811 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.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.