• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

PM2 stopped apps - autorestart does not work?

Scheduled Pinned Locked Moved Troubleshooting
1 Posts 1 Posters 1.3k Views 1 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    michaelmms
    last edited by Aug 13, 2017, 8:44 PM

    Hello,
    I have some data collector nodejs apps controlled by PM2. After some hours they are displayed as stopped in “pm2 list”

    Here it some info from “pm2 show”

    │ status            │ stopped                                             │
    │ name              │ order_book_ticker                                   │
    │ restarts          │ 6                                                   │
    │ uptime            │ 0                                                   │
    │ script path       │ /var/cap/public/apis/order_book_ticker.js │
    │ script args       │ D12                                        │
    │ error log path    │ /root/.pm2/logs/order-book-ticker-error-69.log      │
    │ out log path      │ /root/.pm2/logs/order-book-ticker-out-69.log        │
    │ pid path          │ /root/.pm2/pids/order-book-ticker-69.pid            │
    │ interpreter       │ node                                                │
    │ interpreter args  │ N/A                                                 │
    │ script id         │ 69                                                  │
    │ exec cwd          │ /var/cap                                            │
    │ exec mode         │ fork_mode                                           │
    │ node.js version   │ 7.7.4                                               │
    │ watch & reload    │ ✘                                                   │
    │ unstable restarts │ 0                                                   │
    │ created at        │ 2017-08-12T01:05:07.307Z                            │
    └───────────────────┴────────────────────────────
    

    I want pm2 to restart the scirpt always if it crashes…
    May be there is some setting that prevents restarts?

    thx

    michael

    1 Reply Last reply Reply Quote 0
    • 1 / 1
    1 / 1
    • First post
      1/1
      Last post
    Enjoying MagicMirror? Please consider a donation!
    MagicMirror created by Michael Teeuw.
    Forum managed by Sam, technical setup by Karsten.
    This forum is using NodeBB as its core | Contributors
    Contact | Privacy Policy