Report this

What is the reason for this report?

[PM2][ERROR] Error while launching application Error: Process could not be forked properly, check your system health

Posted on April 17, 2021

GIVE ME SOLUTIONS OR ANY OTHER ALTERNATIVES FOR PM2 HELP ME

I’m using Digitalocean Ubuntu 20.04 Droplet.

dotnet core sdk version 2.1

pm2 version 4.5.6

I’m giving these commands:

dotnet restore

dotnet build

dotnet publish

cd ../publish folder

pm2 start xxxxxxx.dll --watch --name webapi

It’s showing this error:

[PM2] Starting /root/xxxxxxxx_API/xxxxxxxxx.API/bin/Debug/netcoreapp2.1/publish/xxxxxxxx.API.dll in fork_mode (1 instance)

[PM2][ERROR] Error while launching application Error: Process could not be forked properly, check your system health

at /usr/local/lib/node_modules/pm2/lib/God/ForkMode.js:125:26

at wrapper (/usr/local/lib/node_modules/pm2/node_modules/async/internal/once.js:12:16)

at next (/usr/local/lib/node_modules/pm2/node_modules/async/waterfall.js:96:20)

at /usr/local/lib/node_modules/pm2/node_modules/async/internal/onlyOnce.js:12:16

at WriteStream.<anonymous> (/usr/local/lib/node_modules/pm2/lib/Utility.js:186:13)

at WriteStream.emit (events.js:198:13)

at WriteStream.EventEmitter.emit (domain.js:466:23)

at lazyFs.open (internal/fs/streams.js:282:10)

at FSReqWrap.args [as oncomplete] (fs.js:140:20)

And also tried these commands also pm2 start -i 3 "xxxxxx.dll" --watch --name webapi.

It’s showing same error.



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.

Hi there,

Does the process start as normal if you run it with dotnet myapp.dll directly?

I believe that you need to specify dotnet in your start command as well:

  1. pm2 start "dotnet xxxxxx.dll" --name webapi

Regards, Bobby

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.