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)
- 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
- Logs more than 2 years before are included into current daily logs with huge sizes HOT 1
- pm2 out_file : dev/null not working HOT 1
- How to use Pm2 for deferent Port in NextJS app
- == HELP == status errored
- pm2 do not start first
- Can not run pm2 runtime with nextjs?
- variable God
- Error `cause` is not displayed when PM2 is started in cluster mode
- When I run pm2 start server.js a virus is detected by BitDefender HOT 1
- Deploy to EC2 in private subnet
- pm2 logs don't update live unless I do "pm2 update" or "pm2 restart" HOT 1
- Exception is not written to ~/.pm2/logs/*.log file from uncaughtException since it's synchronous
- HTTPS Mean Latency missing for two processes
- boot time startup on Ubuntu 24.04 with Wayland, fails HOT 1
- util.isArray is deprecated HOT 1
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.