You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's no other issue that already describes my problem.
Describe the Bug
I'm trying to set up directus to run on PM2 load balanced cluster which would utilize all available cpu cores, but additional instances of Directus exit with App [directus:1] exited with code [1] via signal [SIGINT]
There are no error messages on the console so I guess this could be as designed, if this is the case, it could be beneficial to include this information in the documentation
@jimboolio is it confirmed that it was Directus that stopped running? The part of the message ... via signal [SIGINT] indicates to me that Directus received the SIGINT command, causing it to stop 🤔
This is most likely the issue. With the server.js script from @eikaramba I managed to find out that the other instances get terminated because the directus port is already in use
It looks like that in the pm2 ecosystem.config.js should point to an actual directus startup script/file, not npm or npx - I will update/reply here if I manage to figure that out...
Preflight Checklist
Describe the Bug
I'm trying to set up directus to run on PM2 load balanced cluster which would utilize all available cpu cores, but additional instances of Directus exit with
App [directus:1] exited with code [1] via signal [SIGINT]
There are no error messages on the console so I guess this could be as designed, if this is the case, it could be beneficial to include this information in the documentation
To Reproduce
My ecosystem.config.js:
Caching is disabled on .env:
Running
pm2 restart ecosystem.config.js --attach
outputs the following:And when running
pm2 list
all but the first directus processes are stoppedExpected behaviour
Directus would run in as many processes as defined in PM2 ecosystem.config.js
Actual behaviour
Only the proces with PM2 id 0 will run, other processes exit
Errors Shown
No errors, it exits cleanly
What version of Directus are you using?
9.4.1
What version of Node.js are you using?
16.13.1
What database are you using?
Postgres 14.1
What browser are you using?
Firefox
What operating system are you using?
Linux 4.15.0-163-generic (Ubuntu 18.04.6 LTS)
How are you deploying Directus?
PM2 non containered
The text was updated successfully, but these errors were encountered: