How to access `/workspace/.npm/_logs/` in a failed deployment (App Platform)

Here is the deployment log I am getting and App Platform rolls back to the previous deployment

[2022-04-26 18:28:41] > directus-app@1.1.0 start /workspace
[2022-04-26 18:28:41] > npx directus bootstrap && npx directus start
[2022-04-26 18:28:41] 
[2022-04-26 18:28:50] 18:28:50 ✨ Initializing bootstrap...
[2022-04-26 18:29:15] 18:29:15 🚨 Can't connect to the database.
[2022-04-26 18:29:15] 18:29:15 🚨 getaddrinfo ENOTFOUND database 
[2022-04-26 18:29:15] Error: getaddrinfo ENOTFOUND database
[2022-04-26 18:29:15]     at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:66:26)
[2022-04-26 18:29:15] npm ERR! code ELIFECYCLE
[2022-04-26 18:29:15] npm ERR! errno 1
[2022-04-26 18:29:15] npm ERR! directus-app@1.1.0 start: `npx directus bootstrap && npx directus start`
[2022-04-26 18:29:15] npm ERR! Exit status 1
[2022-04-26 18:29:15] npm ERR! 
[2022-04-26 18:29:15] npm ERR! Failed at the directus-app@1.1.0 start script.
[2022-04-26 18:29:15] npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
[2022-04-26 18:29:15] 
[2022-04-26 18:29:15] npm ERR! A complete log of this run can be found in:
[2022-04-26 18:29:15] npm ERR!     /workspace/.npm/_logs/2022-04-26T18_29_15_775Z-debug.log

I need to know how to acces the *-debug.log to read more details.

Submit an answer
Answer a question...

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.

Bobby Iliev
Site Moderator
Site Moderator badge
April 27, 2022


I believe that you can use the doctl CLI as described here to get the logs:

But the error is actually clear from the output that you’ve shared. The problem is that the address to your database server is not correct.

You can follow the steps on how to manage your databases with the App Platform here:

Let me know how it goes!