jessety / pm2-installer

Install PM2 offline as a service on Windows or Linux. Mostly designed for Windows.
MIT License
494 stars 50 forks source link

pm2-logrotate start failed when system startup #21

Closed myfreax closed 3 years ago

myfreax commented 3 years ago

Description pm2-logrotate it work well when first install. But restart system after pm2-logrotate start failed Steps to Reproduce

  1. npm run setup
  2. restart windows system
  3. pm2 list pm2 list result
    ┌─────┬───────────────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐
    │ id  │ name                  │ namespace   │ version │ mode    │ pid      │ uptime │ ↺    │ status    │ cpu      │ mem
     │ user     │ watching │
    ├─────┼───────────────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤
    │ 1   │ neteae music proxy    │ default     │ 0.25.3  │ fork    │ 8188     │ 39s    │ 0    │ online    │ 0%       │ 32.7mb   │ myfreax  │ disabled │
    └─────┴───────────────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
    Module
    ┌────┬───────────────────────────────────────┬────────────────────┬───────┬──────────┬──────┬──────────┬──────────┬──────────┐
    │ id │ module                                │ version            │ pid   │ status   │ ↺    │ cpu      │ mem      │ user     │
    ├────┼───────────────────────────────────────┼────────────────────┼───────┼──────────┼──────┼──────────┼──────────┼──────────┤
    │ 0  │ pm2-logrotate                         │ 2.7.0              │ N/A   │ errored  │ 0    │ 0%       │ 0b       │ LOC… │
    └────┴───────────────────────────────────────┴────────────────────┴───────┴──────────┴──────┴──────────┴──────────┴──────────┘

    Environment

    
    > pm2-installer@3.1.5 info C:\Users\myfreax\Downloads\pm2-installer-main
    > node ./src/bundle-info/current.js

Running on: 2021/4/19, pm2-installer 3.1.5 with node v14.16.1 and npm 6.14.12 on win32-10.0.19042.

I try check  pm2-logrotate log, But log file have no any content. The log file is 0 Kb

pm2 logs pm2-logrotate

result

[TAILING] Tailing last 15 lines for [pm2-logrotate] process (change the value with --lines option) C:\ProgramData\pm2\home\logs\pm2-logrotate-out.log last 15 lines: C:\ProgramData\pm2\home\logs\pm2-logrotate-error.log last 15 lines:

jessety commented 3 years ago

Hi @huangyanxiong01! Thanks for reporting this. Question- did you install onto a system with internet access, or without?

myfreax commented 3 years ago

@jessety The system is can access internet. This is my desktop computer 🖥️

jessety commented 3 years ago

@huangyanxiong01 I believe this should be fixed as of https://github.com/jessety/pm2-installer/pull/33!

jbulies commented 1 year ago

The exact same thing happens to me with (@jessety/pm2-logrotate) offline installation