Unitech / Unitech/pm2

unablw strartup pm2

Open
#5,943 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
43.3k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

C:\Users\m.shivu>pm2 startup
[PM2][ERROR] Init system not found
C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209
throw new Error('Init system not found');
^

Error: Init system not found
at CLI.startup (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\lib\API\Startup.js:209:13)
at Command. (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:709:9)
at Command.listener (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:315:8)
at Command.emit (node:events:513:28)
at Command.parseArgs (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:651:12)
at Command.parse (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\node_modules\commander\index.js:474:21)
at Timeout._onTimeout (C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\lib\binaries\CLI.js:208:15)
at listOnTimeout (node:internal/timers:614:17)
at process.processTimers (node:internal/timers:549:7)

Node.js v23.5.0

C:\Users\m.shivu>npm install pm2@latest -g

changed 137 packages in 7s

13 packages are looking for funding
run npm fund for details

C:\Users\m.shivu>pm2 report

--- PM2 report ----------------------------------------------------------------
Date                 : Tue Feb 04 2025 13:28:31 GMT+0530 (India Standard Time)
===============================================================================
--- Daemon -------------------------------------------------
pm2d version         : 5.4.3
node version         : 23.5.0
node path            : not found
argv                 : C:\Program Files\nodejs\node.exe,C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\lib\Daemon.js
argv0                : node
user                 : undefined
uid                  : N/A
gid                  : N/A
uptime               : 125min
===============================================================================
--- CLI ----------------------------------------------------
local pm2            : 5.4.3
node version         : 23.5.0
node path            : not found
argv                 : C:\Program Files\nodejs\node.exe,C:\Users\m.shivu\AppData\Roaming\npm\node_modules\pm2\bin\pm2,report
argv0                : node
user                 : M.Shivu
===============================================================================
--- System info --------------------------------------------
arch                 : x64
platform             : win32
type                 : Windows_NT
cpus                 : 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
cpus nb              : 8
freemem              : 4534620160
totalmem             : 16543780864
home                 : C:\Users\m.shivu
===============================================================================
--- PM2 list -----------------------------------------------
┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
│ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
└────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
===============================================================================
--- Daemon logs --------------------------------------------
C:\Users\m.shivu\.pm2\pm2.log last 20 lines:
PM2        | 2025-02-04T11:23:09: PM2 log: ===============================================================================
PM2        | 2025-02-04T11:23:09: PM2 log: --- New PM2 Daemon started ----------------------------------------------------
PM2        | 2025-02-04T11:23:09: PM2 log: Time                 : Tue Feb 04 2025 11:23:09 GMT+0530 (India Standard Time)
PM2        | 2025-02-04T11:23:09: PM2 log: PM2 version          : 5.4.3
PM2        | 2025-02-04T11:23:09: PM2 log: Node.js version      : 23.5.0
PM2        | 2025-02-04T11:23:09: PM2 log: Current arch         : x64
PM2        | 2025-02-04T11:23:09: PM2 log: PM2 home             : C:\Users\m.shivu\.pm2
PM2        | 2025-02-04T11:23:09: PM2 log: PM2 PID file         : C:\Users\m.shivu\.pm2\pm2.pid
PM2        | 2025-02-04T11:23:09: PM2 log: RPC socket file      : \\.\pipe\rpc.sock
PM2        | 2025-02-04T11:23:09: PM2 log: BUS socket file      : \\.\pipe\pub.sock
PM2        | 2025-02-04T11:23:09: PM2 log: Application log path : C:\Users\m.shivu\.pm2\logs
PM2        | 2025-02-04T11:23:09: PM2 log: Worker Interval      : 30000
PM2        | 2025-02-04T11:23:09: PM2 log: Process dump file    : C:\Users\m.shivu\.pm2\dump.pm2
PM2        | 2025-02-04T11:23:09: PM2 log: Concurrent actions   : 2
PM2        | 2025-02-04T11:23:09: PM2 log: SIGTERM timeout      : 1600
PM2        | 2025-02-04T11:23:09: PM2 log: ================================

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce pm2 startup on Windows using the reported Node.js and PM2 versions. Start at lib/API/Startup.js:209 and trace the CLI entry in lib/binaries/CLI.js:709 to understand the init-system detection. The issue does not define the expected Windows behavior, so completion criteria need maintainer clarification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.