Giter Site home page Giter Site logo

Comments (8)

jshkurti avatar jshkurti commented on June 12, 2024

pm2-server-monit is the app crashing, right ?

from pm2-server-monit.

aliksend avatar aliksend commented on June 12, 2024

Yes, status of pm2-server-monit is errored and it's don't working.
My nodejs app and pm2-logrotate working good, but this tool not.

from pm2-server-monit.

jshkurti avatar jshkurti commented on June 12, 2024

Can you try uninstalling and reinstalling pm2-server-monit ?
pm2 uninstall pm2-server-monit;pm2 install pm2-server-monit

from pm2-server-monit.

aliksend avatar aliksend commented on June 12, 2024

Yes, I already tried it and I tried again just now. Nothing changed
2015-08-18 23 12 04

from pm2-server-monit.

alpertayfun avatar alpertayfun commented on June 12, 2024

Anyone solve this ? We are gettin' like errors. What we gonna do ? Logs not understable.

from pm2-server-monit.

cinderblock avatar cinderblock commented on June 12, 2024

I had an issue of pm2 not starting because my OS has /bin/ifconfig and no /sbin/ifconfig. I had to hack the source files in node_modules to get it to work.

Could we add a config variable to set this path?

Are there other commands that don't work on all OSes or that need su? I'm running as a dedicated pm2 user. My pm2-server-monit-error.log has some other errors:

Error: 1
    at /var/lib/pm2/node_modules/pm2-server-monit/lib/os.js:35:26
    at /var/lib/pm2/node_modules/shelljs/src/exec.js:172:7
    at ChildProcess.exithandler (child_process.js:209:5)
    at emitTwo (events.js:100:13)
    at ChildProcess.emit (events.js:185:7)
    at maybeClose (internal/child_process.js:850:16)
    at Socket.<anonymous> (internal/child_process.js:323:11)
    at emitOne (events.js:90:13)
    at Socket.emit (events.js:182:7)
    at Pipe._onclose (net.js:475:12)
exec: internal error
exec: internal error
exec: internal error
exec: internal error
exec: internal error
[...]

from pm2-server-monit.

marcelboettcher avatar marcelboettcher commented on June 12, 2024

Had the same issue in docker image node:4.4.6

ifconfig is not used in new debian releases anymore. Installing it fixed it for me:

sudo apt-get update
sudo apt-get install net-tools

from pm2-server-monit.

alavit-d avatar alavit-d commented on June 12, 2024

@cinderblock: Used shelljs for more compatibility with ifconfig location

@marcelboettcher: Added ifconfig as requirement in the Readme, thanks!

This module heavily relies on a set of commonly used commands on unix distributions. If this still crashes on your system with version 2.x+ and ifconfig installed, please open a new ticket with detailed system information.

Cheers

from pm2-server-monit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.