Azure-docs: My app would not function until I added a route for robots933456.txt

Created on 31 May 2019  Â·  6Comments  Â·  Source: MicrosoftDocs/azure-docs

Hello! My custom container kept failing to start correctly. I was able to find the logs and I saw my app logs showing that it had started correctly and was listening on port 80, but then it was quickly followed by a time out after 250 seconds or so and cease to function.

It contained a Node JS app made with express. When I reviewed the logs I noticed that my app would receive many requests for "robots933456.txt", which my app did not handle. I had to search this back through Google to find a previous issue where someone had complained this was not documented anywhere as being a necessary route for a health-check. I noticed this was specifically referencing PHP in particular and it was documented in that section, but my app is a custom container running a Node JS Express app.

I think the documentation for this requirement is important and still hard to see without deep digging and hours of debugging.


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 app-servicsvc cxp doc-enhancement triaged

Most helpful comment

@carlpoole , So in order to ensure a container is up and running and ready to serve requests our Platform has to ensure that the web server inside the container is capable of handling requests. While the app container is starting up, our platform keeps sending HTTP requests to /robots933456.txt inside the container. Now /robots933456.txt doesn't actually exist inside a container but the intention for which this is done is to get a non-5xx response from the webserver inside the container. Which implies the web server is ready to handle requests. Even a 404 response is a valid response since it confirms to the Platform that the web server inside the container is up and sent the 404.

All 6 comments

@carlpoole Thanks for the feedback! We are currently investigating and will update you shortly.

@carlpoole , So in order to ensure a container is up and running and ready to serve requests our Platform has to ensure that the web server inside the container is capable of handling requests. While the app container is starting up, our platform keeps sending HTTP requests to /robots933456.txt inside the container. Now /robots933456.txt doesn't actually exist inside a container but the intention for which this is done is to get a non-5xx response from the webserver inside the container. Which implies the web server is ready to handle requests. Even a 404 response is a valid response since it confirms to the Platform that the web server inside the container is up and sent the 404.

Thanks for the info. Our app wasn't setup with this in mind but I have configured it to send 404 messages now.

@carlpoole , Thanks for the response. I will go ahead and close the issue. If you need any other assistance please feel free to re-open the same

@DashleenBhandari-MSFT and @BryanTrach-MSFT so how do you actually do this?

I figured out how to do this and this information should be added in documentation because it would prevent someone from running any angular app until this is implemented.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

paulmarshall picture paulmarshall  Â·  3Comments

bdcoder2 picture bdcoder2  Â·  3Comments

mrdfuse picture mrdfuse  Â·  3Comments

jamesgallagher-ie picture jamesgallagher-ie  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments