Comments (12)
Hello, thanks for reporting issues.
PM2 is using the module https://github.com/arunoda/node-usage to retrieve monitoring data for a specific process, unfortunately it's still not compatible with Mac OSx, feel free to pull request.
But I would like to tell that pm2 is a production module, who should be mainly used on servers
Cheers !
from pm2.
I sent a pull request to node-usage (arunoda/node-usage#5) to address this. Once it is merged in and a new version is published to npm, does anything need to change in pm2?
from pm2.
Excellent, I will add a way to update pm2 smoothly
from pm2.
i'm using pm2 version 0.4.7. and i've installed usage(node-usage)..
but it can't operate. pm2 monit on macox.
how can i use it?
from pm2.
and my 'usage' version is 0.3.5
from pm2.
Node Usage has been patched with @jhurliman 's pull request.
And published to npm as 0.3.6
Hope now pm2 can be used in mac too :)
from pm2.
Ty
I've updated pm2 to 0.4.8
Here is the update procedure for people who wants to upgrade to newest version : https://github.com/Unitech/pm2#updating-pm2-and-keeping-processes-alive
from pm2.
I think I got the same error :/
Did I need to install Monit on my Mac ? or node-usage do the same think like Monit ?
$ pm2 monit
/usr/local/lib/node_modules/pm2/lib/Monit.js:27
throw new Error('You seems to run on a Mac OS, node-usage can\'t get monit
^
Error: You seems to run on a Mac OS, node-usage can't get monitor data
at Object.Monit.init (/usr/local/lib/node_modules/pm2/lib/Monit.js:27:11)
at /usr/local/lib/node_modules/pm2/bin/pm2:588:11
at /usr/local/lib/node_modules/pm2/lib/Satan.js:152:5
at /usr/local/lib/node_modules/pm2/node_modules/axon-rpc/lib/client.js:43:10
at Parser.onmessage (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/sockets/req.js:65:8)
at Parser.frameBody (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:106:10)
at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:50:13)
at Parser.frameHeader (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:81:30)
at Parser.write (/usr/local/lib/node_modules/pm2/node_modules/axon/lib/parser.js:49:36)
at Socket.EventEmitter.emit (events.js:95:17)
from pm2.
@igorissen, the short answer is that the daemon needs to be run as root on OSX. Run pm2 kill
, then sudo pm2 start yourapp.json
. I've submitted a pull request at #39 to catch this issue and print out a helpful error message instead of the outdated warning about node-usage not working on Mac OS.
from pm2.
Just a heads up, I submitted another pull request to node-usage that allows it to run on OSX without root privileges (arunoda/node-usage#7). If that gets merged, I'll modify my pull request for pm2 to not require the daemon to be run as root on OSX.
from pm2.
node-usage 0.3.7 is out, and my pull request has been updated.
from pm2.
It works now ! Thank you.
from pm2.
Related Issues (20)
- set 'content-length' and 'transfer-encoding:gzip' for 'pm2 serve'
- Try catch blocks cause the pm2 app to crash when an exception is caught. HOT 2
- pm2 logs do not print realtime on M2 Pro HOT 1
- use pm2 start index.ts occur Error HOT 1
- Question regarding logging :question: HOT 1
- Critical error on compatibility with pm2 on automatically start service on system startup cases HOT 1
- Sudden PM2 core dump. Asking for assistance in finding the root cause, if possible. HOT 2
- `pm2 logs` with a namespace doesn't work if run before relevant `pm2 start`
- PM2 and cluster mode in Node.js/TypeScript HOT 5
- ***Urgent***: GNU-AGPL License Concerns HOT 1
- https://id.keymetrics.io/api/oauth/register not loading HOT 1
- Slow and crush HOT 2
- Suddenly crased HOT 2
- Pm2 start a new daemon and delete all my apps HOT 2
- Load balancing is not distribute the load evenly
- Graviton3 support – intermittent crash/coredump HOT 1
- Configuration file management app log confusion issues.
- PM2 start with next.js is too slow
- Replace/remove/fix vizion dependency causing annoying popups flashing in Windows
- Pm2 God Daemon crashes and does not properly recover
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pm2.