Report this

What is the reason for this report?

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

Posted on April 27, 2022

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.

The developer cloud

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

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.