Hello,
I am using pm2-windows-service on several windows 7 servers. Even with the environment variables properly set, after a while the the process just does not start. When I look at services.msc however I can see that the service is installed but not started.
The versions of things that are installed are as follows:
node v4.4.5
npm 2.15.5
pm2 2.0.15
pm2-windows-service 0.2.0
PM2_HOME is set at C:\Users\some_user\AppData\Roaming\npm\etc.pm2
PM2_SERVICE_PM2_DIR is set at C:\Users\some_user\APPDATA\Roaming\NPM\node_modules\pm2\index.js
And here are the log files
pm2.err.log
2016-10-11 12:23:34: Unknown id 0
2016-10-11 12:23:35: Unknown id 0
2016-10-11 12:23:36: Unknown id 0
2016-10-11 12:23:37: Unknown id 0
2016-10-11 12:23:38: Unknown id 0
2016-10-11 12:23:39: Unknown id 0
2016-10-11 12:23:40: Unknown id 0
2016-10-11 12:23:41: Unknown id 0
2016-10-11 12:23:42: Unknown id 0
2016-10-11 12:23:43: Unknown id 0
2016-10-11 12:23:44: Unknown id 0
2016-10-11 12:23:45: Unknown id 0
2016-10-11 12:23:46: Unknown id 0
2016-10-11 12:23:47: Unknown id 0
2016-10-11 12:23:48: Unknown id 0
2016-10-11 12:23:49: Unknown id 0
2016-10-11 12:23:50: Unknown id 0
2016-10-11 12:23:51: Unknown id 0
2016-10-11 12:23:52: Unknown id 0
2016-10-11 12:23:53: Unknown id 0
2016-10-11 12:23:54: Unknown id 0
2016-10-11 12:23:55: Unknown id 0
2016-10-11 12:23:56: Unknown id 0
2016-10-11 12:23:57: Unknown id 0
2016-10-11 12:23:58: Unknown id 0
2016-10-11 12:23:59: Unknown id 0
2016-10-11 12:24:00: Unknown id 0
2016-10-11 12:24:01: Unknown id 0
2016-10-11 12:24:02: Unknown id 0
2016-10-11 12:24:03: Unknown id 0
2016-10-11 12:24:04: Unknown id 0
2016-10-11 12:24:05: Unknown id 0
2016-10-11 12:24:06: Unknown id 0
2016-10-11 12:24:07: Unknown id 0
2016-10-11 12:24:08: Unknown id 0
2016-10-11 12:24:09: Unknown id 0
2016-10-11 12:24:10: Unknown id 0
2016-10-11 12:24:11: Unknown id 0
2016-10-11 12:24:12: Unknown id 0
2016-10-11 12:24:13: Unknown id 0
2016-10-11 12:24:14: Unknown id 0
2016-10-11 12:24:15: Unknown id 0
2016-10-11 12:24:16: Unknown id 0
2016-10-11 12:24:17: Unknown id 0
2016-10-11 12:24:18: Unknown id 0
2016-10-11 12:24:19: Unknown id 0
2016-10-11 12:24:20: Unknown id 0
2016-10-11 12:24:21: Unknown id 0
2016-10-11 12:24:22: Unknown id 0
2016-10-11 12:24:23: Unknown id 0
2016-10-11 12:24:24: Unknown id 0
2016-10-11 12:24:25: Unknown id 0
2016-10-11 12:24:26: Unknown id 0
2016-10-11 12:24:27: Unknown id 0
2016-10-11 12:24:28: Unknown id 0
2016-10-11 12:24:29: Unknown id 0
2016-10-11 12:24:30: Unknown id 0
2016-10-11 12:24:31: Unknown id 0
2016-10-11 12:24:32: Unknown id 0
2016-10-11 12:24:33: Unknown id 0
2016-10-11 12:24:34: Unknown id 0
2016-10-11 12:24:35: Unknown id 0
2016-10-11 12:24:36: Unknown id 0
2016-10-11 12:24:37: Unknown id 0
2016-10-11 12:24:38: Unknown id 0
2016-10-11 12:24:39: Unknown id 0
2016-10-11 12:24:40: Unknown id 0
2016-10-11 12:24:41: Unknown id 0
2016-10-11 12:24:42: Unknown id 0
2016-10-11 12:24:43: Unknown id 0
2016-10-11 12:24:44: Unknown id 0
pm2.out.log
2016-10-11 12:20:51: Launching in no daemon mode
2016-10-11 12:22:46: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:22:46: App name:store-ingestor id:0 online
2016-10-11 12:23:06: Starting execution sequence in -fork mode- for app name:pm2-logrotate id:1
2016-10-11 12:23:06: App name:pm2-logrotate id:1 online
2016-10-11 12:23:12: Stopping app:store-ingestor id:0
2016-10-11 12:23:12: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:12: App name:store-ingestor id:0 online
2016-10-11 12:23:12: App [store-ingestor] with id [0] and pid [0], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:12: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:12: App name:store-ingestor id:0 online
2016-10-11 12:23:13: App [store-ingestor] with id [0] and pid [15652], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:13: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:13: App name:store-ingestor id:0 online
2016-10-11 12:23:14: App [store-ingestor] with id [0] and pid [12792], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:14: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:14: App name:store-ingestor id:0 online
2016-10-11 12:23:15: App [store-ingestor] with id [0] and pid [14596], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:15: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:15: App name:store-ingestor id:0 online
2016-10-11 12:23:16: App [store-ingestor] with id [0] and pid [16176], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:16: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:16: App name:store-ingestor id:0 online
2016-10-11 12:23:16: App [store-ingestor] with id [0] and pid [7024], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:16: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:16: App name:store-ingestor id:0 online
2016-10-11 12:23:17: App [store-ingestor] with id [0] and pid [15636], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:17: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:17: App name:store-ingestor id:0 online
2016-10-11 12:23:18: App [store-ingestor] with id [0] and pid [13680], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:18: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:18: App name:store-ingestor id:0 online
2016-10-11 12:23:19: App [store-ingestor] with id [0] and pid [15640], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:19: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:19: App name:store-ingestor id:0 online
2016-10-11 12:23:19: App [store-ingestor] with id [0] and pid [14748], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:19: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:19: App name:store-ingestor id:0 online
2016-10-11 12:23:20: App [store-ingestor] with id [0] and pid [2608], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:20: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:20: App name:store-ingestor id:0 online
2016-10-11 12:23:21: App [store-ingestor] with id [0] and pid [7692], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:21: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:21: App name:store-ingestor id:0 online
2016-10-11 12:23:22: App [store-ingestor] with id [0] and pid [15212], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:22: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:22: App name:store-ingestor id:0 online
2016-10-11 12:23:23: App [store-ingestor] with id [0] and pid [9928], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:23: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:23: App name:store-ingestor id:0 online
2016-10-11 12:23:23: App [store-ingestor] with id [0] and pid [15152], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:23: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:23:23: App name:store-ingestor id:0 online
2016-10-11 12:23:24: App [store-ingestor] with id [0] and pid [11488], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:24: Script C:\Users\DatalakeSA\Datalake\store-ingestor.js had too many unstable restarts (16). Stopped. "errored"
2016-10-11 12:23:34: Stopping app:store-ingestor id:0
2016-10-11 12:23:44: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:44: App name:store-ingestor id:2 online
2016-10-11 12:23:45: App [store-ingestor] with id [2] and pid [5968], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:45: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:45: App name:store-ingestor id:2 online
2016-10-11 12:23:45: App [store-ingestor] with id [2] and pid [5608], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:45: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:45: App name:store-ingestor id:2 online
2016-10-11 12:23:46: App [store-ingestor] with id [2] and pid [9760], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:46: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:46: App name:store-ingestor id:2 online
2016-10-11 12:23:47: App [store-ingestor] with id [2] and pid [16040], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:47: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:47: App name:store-ingestor id:2 online
2016-10-11 12:23:48: App [store-ingestor] with id [2] and pid [13344], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:48: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:48: App name:store-ingestor id:2 online
2016-10-11 12:23:49: App [store-ingestor] with id [2] and pid [16016], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:49: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:49: App name:store-ingestor id:2 online
2016-10-11 12:23:49: App [store-ingestor] with id [2] and pid [12356], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:49: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:49: App name:store-ingestor id:2 online
2016-10-11 12:23:50: App [store-ingestor] with id [2] and pid [13940], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:50: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:50: App name:store-ingestor id:2 online
2016-10-11 12:23:51: App [store-ingestor] with id [2] and pid [16272], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:51: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:51: App name:store-ingestor id:2 online
2016-10-11 12:23:52: App [store-ingestor] with id [2] and pid [15856], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:52: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:52: App name:store-ingestor id:2 online
2016-10-11 12:23:53: App [store-ingestor] with id [2] and pid [8040], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:53: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:53: App name:store-ingestor id:2 online
2016-10-11 12:23:53: App [store-ingestor] with id [2] and pid [15580], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:53: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:53: App name:store-ingestor id:2 online
2016-10-11 12:23:54: App [store-ingestor] with id [2] and pid [15972], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:54: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:54: App name:store-ingestor id:2 online
2016-10-11 12:23:55: App [store-ingestor] with id [2] and pid [16232], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:55: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:55: App name:store-ingestor id:2 online
2016-10-11 12:23:56: App [store-ingestor] with id [2] and pid [3040], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:56: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:23:56: App name:store-ingestor id:2 online
2016-10-11 12:23:57: App [store-ingestor] with id [2] and pid [14184], exited with code [1] via signal [SIGINT]
2016-10-11 12:23:57: Script C:\Users\DatalakeSA\Datalake\store-ingestor.js had too many unstable restarts (16). Stopped. "errored"
2016-10-11 12:24:13: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:13: App name:store-ingestor id:2 online
2016-10-11 12:24:14: App [store-ingestor] with id [2] and pid [7412], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:14: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:14: App name:store-ingestor id:2 online
2016-10-11 12:24:15: App [store-ingestor] with id [2] and pid [16056], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:15: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:15: App name:store-ingestor id:2 online
2016-10-11 12:24:16: App [store-ingestor] with id [2] and pid [14460], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:16: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:16: App name:store-ingestor id:2 online
2016-10-11 12:24:16: App [store-ingestor] with id [2] and pid [13916], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:16: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:16: App name:store-ingestor id:2 online
2016-10-11 12:24:17: App [store-ingestor] with id [2] and pid [15904], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:17: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:17: App name:store-ingestor id:2 online
2016-10-11 12:24:18: App [store-ingestor] with id [2] and pid [13732], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:18: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:18: App name:store-ingestor id:2 online
2016-10-11 12:24:19: App [store-ingestor] with id [2] and pid [13176], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:19: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:19: App name:store-ingestor id:2 online
2016-10-11 12:24:20: App [store-ingestor] with id [2] and pid [8776], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:20: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:20: App name:store-ingestor id:2 online
2016-10-11 12:24:20: App [store-ingestor] with id [2] and pid [15928], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:20: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:20: App name:store-ingestor id:2 online
2016-10-11 12:24:21: App [store-ingestor] with id [2] and pid [14408], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:21: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:21: App name:store-ingestor id:2 online
2016-10-11 12:24:22: App [store-ingestor] with id [2] and pid [15708], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:22: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:22: App name:store-ingestor id:2 online
2016-10-11 12:24:23: App [store-ingestor] with id [2] and pid [12452], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:23: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:23: App name:store-ingestor id:2 online
2016-10-11 12:24:24: App [store-ingestor] with id [2] and pid [12720], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:24: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:24: App name:store-ingestor id:2 online
2016-10-11 12:24:24: App [store-ingestor] with id [2] and pid [9096], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:24: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:24: App name:store-ingestor id:2 online
2016-10-11 12:24:25: App [store-ingestor] with id [2] and pid [16324], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:25: Starting execution sequence in -fork mode- for app name:store-ingestor id:2
2016-10-11 12:24:25: App name:store-ingestor id:2 online
2016-10-11 12:24:26: App [store-ingestor] with id [2] and pid [10692], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:26: Script C:\Users\DatalakeSA\Datalake\store-ingestor.js had too many unstable restarts (16). Stopped. "errored"
2016-10-11 12:24:44: Stopping app:pm2-logrotate id:1
2016-10-11 12:24:44: Process with pid 10684 still not killed, retrying...
2016-10-11 12:24:44: App [pm2-logrotate] with id [1] and pid [10684], exited with code [1] via signal [SIGINT]
2016-10-11 12:24:44: [HandleExit] PM2 is being killed, stopping restart procedure...
2016-10-11 12:24:44: Stopping app:store-ingestor id:2
2016-10-11 12:24:44: ===============================================================================
2016-10-11 12:24:44: --- Stopping PM2 --------------------------------------------------------------
2016-10-11 12:24:44: Time : Tue Oct 11 2016 12:24:44 GMT-0500 (Central Daylight Time)
2016-10-11 12:24:44: ===============================================================================
2016-10-11 12:24:44: RPC closed
2016-10-11 12:24:44: PUB closed
2016-10-11 12:24:44: PM2 successfully stopped
2016-10-11 12:24:46: Launching in no daemon mode
2016-10-11 12:24:46: Starting execution sequence in -fork mode- for app name:store-ingestor id:0
2016-10-11 12:24:46: App name:store-ingestor id:0 online
2016-10-11 12:27:36: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:36: App name:pm2 id:1 online
2016-10-11 12:27:38: App [pm2] with id [1] and pid [16184], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:38: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:38: App name:pm2 id:1 online
2016-10-11 12:27:38: App [pm2] with id [1] and pid [14956], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:38: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:38: App name:pm2 id:1 online
2016-10-11 12:27:39: App [pm2] with id [1] and pid [12356], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:39: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:39: App name:pm2 id:1 online
2016-10-11 12:27:40: App [pm2] with id [1] and pid [14468], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:40: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:40: App name:pm2 id:1 online
2016-10-11 12:27:41: App [pm2] with id [1] and pid [14404], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:41: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:41: App name:pm2 id:1 online
2016-10-11 12:27:41: App [pm2] with id [1] and pid [14572], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:41: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:41: App name:pm2 id:1 online
2016-10-11 12:27:42: App [pm2] with id [1] and pid [12784], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:42: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:42: App name:pm2 id:1 online
2016-10-11 12:27:43: App [pm2] with id [1] and pid [14844], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:43: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:43: App name:pm2 id:1 online
2016-10-11 12:27:44: App [pm2] with id [1] and pid [15728], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:44: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:44: App name:pm2 id:1 online
2016-10-11 12:27:45: App [pm2] with id [1] and pid [5192], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:45: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:45: App name:pm2 id:1 online
2016-10-11 12:27:45: App [pm2] with id [1] and pid [11488], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:45: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:45: App name:pm2 id:1 online
2016-10-11 12:27:46: App [pm2] with id [1] and pid [16016], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:46: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:46: App name:pm2 id:1 online
2016-10-11 12:27:47: App [pm2] with id [1] and pid [16288], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:47: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:47: App name:pm2 id:1 online
2016-10-11 12:27:48: App [pm2] with id [1] and pid [16296], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:48: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:48: App name:pm2 id:1 online
2016-10-11 12:27:49: App [pm2] with id [1] and pid [1380], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:49: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:49: App name:pm2 id:1 online
2016-10-11 12:27:49: App [pm2] with id [1] and pid [16152], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:49: Starting execution sequence in -fork mode- for app name:pm2 id:1
2016-10-11 12:27:49: App name:pm2 id:1 online
2016-10-11 12:27:50: App [pm2] with id [1] and pid [15652], exited with code [1] via signal [SIGINT]
2016-10-11 12:27:50: Script C:\Users\DatalakeSA\AppData\Roaming\npm\etc.pm2\node_modules\pm2\bin\pm2 had too many unstable restarts (16). Stopped. "errored"
pm2.wrapper.log
2016-10-12 03:22:33 - Stopping pm2.exe
2016-10-12 03:22:33 - ProcessKill 15908
2016-10-12 03:22:33 - Finished pm2.exe
In the Caveats section you have mentioned not to use any user variable in setting PM2_HOME but since that is what the service recommends/finds during pm2-service-install, I have been doing so. Could this be a reason why the service seems to mysteriously fail to start for me? If I were to set PM2_HOME to a different directory where should this be set to achieve persistence?
I am using the pm2-windows-service in a production environment with many servers and seeing them go offline and having to reinstall the service over and over is getting frustrating.
Any help would be much much appreciated.
Thank you again!
krishna