Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pm2-logrotate start failed when system startup #21

Closed
myfreax opened this issue Apr 19, 2021 · 4 comments
Closed

pm2-logrotate start failed when system startup #21

myfreax opened this issue Apr 19, 2021 · 4 comments

Comments

@myfreax
Copy link

myfreax commented Apr 19, 2021

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

> [email protected] 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
Copy link
Owner

jessety commented Apr 24, 2021

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

@myfreax
Copy link
Author

myfreax commented Apr 24, 2021

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

@jessety
Copy link
Owner

jessety commented Jul 27, 2021

@huangyanxiong01 I believe this should be fixed as of #33!

@jessety jessety closed this as completed Aug 19, 2021
@jbulies
Copy link

jbulies commented Dec 18, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants