C:\printer-manager> pm2 start --no-daemon ecosystem.config.js
pm2 launched in no-daemon mode (you can add DEBUG="*" env variable to get more messages)
2024-10-21T17:58:56: PM2 log: Launching in no daemon mode
2024-10-21T17:58:56: PM2 log: [PM2][WARN] Applications posnetserver-printer-1-id, printer-proxy not running, starting...
2024-10-21T17:58:56: PM2 log: [Watch] Start watching posnetserver-printer-1-id
2024-10-21T17:58:56: PM2 log: App [posnetserver-printer-1-id:0] starting in -fork mode-
2024-10-21T17:58:56: PM2 log: App [printer-proxy:1] starting in -fork mode-
2024-10-21T17:58:56: PM2 log: App [posnetserver-printer-1-id:0] online
2024-10-21T17:58:56: PM2 log: App [printer-proxy:1] online
2024-10-21T17:58:56: PM2 log: [PM2] App [posnetserver-printer-1-id] launched (1 instances)
2024-10-21T17:58:56: PM2 log: [PM2] App [printer-proxy] launched (1 instances)
2024-10-21T17:58:57: PM2 log: ┌────┬──────────────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
│ id │ name                         │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem      │ user     │ watching │
├────┼──────────────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
│ 0  │ posnetserver-printer-1-id    │ default     │ 0.0.0   │ fork    │ 25204    │ 0s     │ 0    │ online    │ 0%       │ 55.5mb   │ adala    │ enabled  │
│ 1  │ printer-proxy                │ default     │ 1.0.0   │ fork    │ 28252    │ 0s     │ 0    │ online    │ 0%       │ 42.8mb   │ adala    │ disabled │
└────┴──────────────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
2024-10-21T17:58:57: PM2 log: [--no-daemon] Continue to stream logs
2024-10-21T17:58:57: PM2 log: [--no-daemon] Exit on target PM2 exit pid=33156
2024-10-21T17:58:59: PM2 log: App [posnetserver-printer-1-id:0] exited with code [0] via signal [SIGINT]
17:58:59 PM2      | App [posnetserver-printer-1-id:0] exited with code [0] via signal [SIGINT]
2024-10-21T17:58:59: PM2 log: App [posnetserver-printer-1-id:0] starting in -fork mode-
17:58:59 PM2      | App [posnetserver-printer-1-id:0] starting in -fork mode-
2024-10-21T17:58:59: PM2 log: App [posnetserver-printer-1-id:0] online
17:58:59 PM2      | App [posnetserver-printer-1-id:0] online
17:59:00 0|posnetserver-printer-1-id  | Prepare to read config.json
17:59:00 0|posnetserver-printer-1-id  | Config successfully loaded from file config.json
17:59:00 0|posnetserver-printer-1-id  | Build version: 5.3
17:59:00 0|posnetserver-printer-1-id  | Schema version: 5.2
17:59:00 0|posnetserver-printer-1-id  | Loading path...
17:59:00 0|posnetserver-printer-1-id  | Loading winston...
17:59:00 0|posnetserver-printer-1-id  | Loading winston-daily-rotate-file...
17:59:00 0|posnetserver-printer-1-id  | Node log directory:log
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"************************************ LOADING SIMULATOR ************************************","timestamp":"2024-10-21T15:59:00.161Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"Simulator module is active","timestamp":"2024-10-21T15:59:00.221Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"***************************************** STARTING *****************************************","timestamp":"2024-10-21T15:59:00.221Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"Loading napi, make sure that all system DLL files and other libraries are available","timestamp":"2024-10-21T15:59:00.222Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"In case of any issues, check system libraries","timestamp":"2024-10-21T15:59:00.222Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"(unix)     > ldd build/Release/native.node","timestamp":"2024-10-21T15:59:00.222Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"(MacOS)    > otool -L build/Release/native.node","timestamp":"2024-10-21T15:59:00.222Z"}
17:59:00 0|posnetserver-printer-1-id  | {"level":"info","message":"(Windows)  > use i.e. http://dependencywalker.com/","timestamp":"2024-10-21T15:59:00.222Z"}
17:59:00 0|posnetserver-printer-1-id  | EXCEPTION!
17:59:00 0|posnetserver-printer-1-id  | Error: \\?\C:\printer-manager\posnetserver\build\Release\native.node is not a valid Win32 application.
17:59:00 0|posnetserver-printer-1-id  | \\?\C:\printer-manager\posnetserver\build\Release\native.node
17:59:00 0|posnetserver-printer-1-id  |     at Module._extensions..node (node:internal/modules/cjs/loader:1586:18)
17:59:00 0|posnetserver-printer-1-id  |     at Module.load (node:internal/modules/cjs/loader:1288:32)
17:59:00 0|posnetserver-printer-1-id  |     at Module._load (node:internal/modules/cjs/loader:1104:12)
17:59:00 0|posnetserver-printer-1-id  |     at Module.require (node:internal/modules/cjs/loader:1311:19)
17:59:00 0|posnetserver-printer-1-id  |     at Hook._require.Module.require (C:\Users\adala\AppData\Roaming\npm\node_modules\pm2\node_modules\require-in-the-middle\index.js:101:39)
17:59:00 0|posnetserver-printer-1-id  |     at require (node:internal/modules/helpers:179:18)
17:59:00 0|posnetserver-printer-1-id  |     at Object.<anonymous> (C:\printer-manager\posnetserver\server.js:1:1495)
17:59:00 0|posnetserver-printer-1-id  |     at Module._compile (node:internal/modules/cjs/loader:1469:14)
17:59:00 0|posnetserver-printer-1-id  |     at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
17:59:00 0|posnetserver-printer-1-id  |     at Module.load (node:internal/modules/cjs/loader:1288:32) {
17:59:00 0|posnetserver-printer-1-id  |   code: 'ERR_DLOPEN_FAILED'
17:59:00 0|posnetserver-printer-1-id  | }