Report this

What is the reason for this report?

Better debug logs for App Platform?

Posted on November 18, 2020

Hi everyone, I have a Node app which is defined via Dockerfile, due to a number of system-level dependencies. It builds great and works fine on my local system, but when it deploys to the App Platform, the build succeeds but deployment fails with error code: DeployContainerExitNonZero

I cannot for the life of me figure out why this works locally (OSX with Docker 19.03.13) and failing when I deploy to DO App Platform, nor can I find any meaningful logs. Is there somewhere I should be looking, or something I’m missing?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Heya,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

Deploying on the App Platform isn’t exactly the same as deploying on local. Therefore, you might see different behavior here. Your Docker container might be trying to do something that works locally but can’t run in the App Platform environment, such as using a deprecated command or restricted operation.

The best way to try and debug this would be to:

  1. Check the process within your Dockerfile: This is often where issues occur. Ensure that your RUN commands in your Dockerfile are functioning as expected.
  2. Check the App Specification file: Your app spec file should be valid with the correct structure, ports, etc.

Unfortunately, currently, the App Platform does not provide detailed logs for such build errors but this is something DigitalOcean is actively working on.

Please refer to App Platform Documentation

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.