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
When trying to run it: pm2 start pm2.json
It errors and don't spawn soketi.
pm2 logs shows:
2023-10-20T04:59:03: PM2 log: App [soketi:38] starting in -cluster mode-
/usr/bin/node: bad option: --config=/home/xxx/soketi/config.json
2023-10-20T04:59:03: PM2 log: App name:soketi id:38 disconnected
2023-10-20T04:59:03: PM2 log: App [soketi:38] exited with code [9] via signal [SIGINT]
2023-10-20T04:59:03: PM2 log: App [soketi:38] starting in -cluster mode-
/usr/bin/node: bad option: --config=/home/xxx/soketi/config.json
2023-10-20T04:59:03: PM2 log: App name:soketi id:38 disconnected
2023-10-20T04:59:03: PM2 log: App [soketi:38] exited with code [9] via signal [SIGINT]
2023-10-20T04:59:03: PM2 log: App [soketi:38] starting in -cluster mode-
/usr/bin/node: bad option: --config=/home/xxx/soketi/config.json
2023-10-20T04:59:03: PM2 log: App name:soketi id:38 disconnected
2023-10-20T04:59:03: PM2 log: App [soketi:38] exited with code [9] via signal [SIGINT]
2023-10-20T04:59:03: PM2 log: Script /home/xxx/soketi/bin/server.js had too many unstable restarts (16). Stopped. "errored"
Some projects include pm2.json within the code as an example of running with pm2.
Any idea how to start soketi with pm2 while specifying a config file?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, i'm trying to run Soketi (not globally installed) in cluster mode with pm2 and cannot get it to work.
my soketi config.json:
my pm2.json:
When trying to run it:
pm2 start pm2.json
It errors and don't spawn soketi.
pm2 logs shows:
Some projects include pm2.json within the code as an example of running with pm2.
Any idea how to start soketi with pm2 while specifying a config file?
Beta Was this translation helpful? Give feedback.
All reactions