Question

App platform: Deployment error: unable to retrieve container logs

I am trying to deploy an app with two services (nodejs api and a nextjs frontend) from a mono repo.

Both apps work fine when deployed separately. I have looked at the sample-monorepo and adapted it to my use case.

When deploying, the build runs successfully but the run log just says:

api unable api unable to retrieve container logs for containerd://8461e129******41ec89webapp unable to retrieve container logs for containerd://e8520b318675******6bbf1852

and the whole deploy fails with a DeployContainerExitNonZero.

This is my repo: https://github.com/0xsven/doap-test-mono

What am I doing wrong?


Submit an answer


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!

Sign In or Sign Up to Answer

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.

Accepted Answer

@snormoredo

I have jus made it public. My deployment log looks like his:

https://i.imgur.com/wVCsVes.png

Thank’s for your help.

Steven Normore
DigitalOcean Employee
DigitalOcean Employee badge
October 12, 2020

@0xsven 👋

The DeployContainerExitNonZero error would normally indicate that the container is exiting the process in error (with a non-zero exit code). The deployment logs should show any stdout/stderr produced within the container when this happens.

Unfortunately the repo you linked to seems to be private so I’m not able to test it directly myself. If you’re comfortable making that public then I can dig a little further here. Alternatively, I’d suggest opening a ticket with Support; that way we can take a closer look at the app itself.

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

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.