Comments (12)
@altras Nothing else i think, we will investigate thanks :)
from pm2-server-monit.
I'm having the same issue I guess:
$ node -v
v4.5.0
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:274:26)
at exports.spawn (child_process.js:362:9)
at Object.exports.execFile (child_process.js:151:15)
at Object.exports.exec (child_process.js:111:18)
at refreshMetrics (/home/node/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:6)
at Object.init (/home/node/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)
at /home/node/.pm2/node_modules/pm2-server-monit/app.js:46:9
at Object.PMX.initModule (/home/node/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/pmx.js:116:12)
at Object.<anonymous> (/home/node/.pm2/node_modules/pm2-server-monit/app.js:14:5)
pm2-server-monit version 2.5.1
from pm2-server-monit.
@altras Platform ? (unix/windows + the version)
from pm2-server-monit.
@vmarchaud thank you for the reminder!
$ uname -a
Linux debian 4.9.7-x86_64-linode80 #2 SMP Thu Feb 2 15:43:55 EST 2017 x86_64 GNU/Linux
what else do I need to provide :?
from pm2-server-monit.
Having the same issue here as well. Other pm2 components are working fine, but the pm2-server-monit won't run.
6|pm2-serv | at Object.init (/home/devadmin/.pm2/node_modules/pm2-server-monit/lib/drive.js: 100: 3)
6|pm2-serv | at /home/devadmin/.pm2/node_modules/pm2-server-monit/app.js:46:9
6|pm2-serv | at Object.PMX.initModule (/home/devadmin/.pm2/node_modules/pmx/lib/pmx.js:116:12)
6|pm2-serv | at Object. (/home/devadmin/.pm2/node_modules/pm2-server-monit/app.js:14:5)
6|pm2-serv | TypeError: Bad argument
Linux 3.10.0-514.10.2.el7.x86_64 #1 SMP Fri Mar 3 00:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
node -v
v4.4.3
pm2 -v
2.4.5
from pm2-server-monit.
@vmarchaud
Same issue +1
from pm2-server-monit.
Same issue.
Node v4.2.6
pm2 v2.3.0
from pm2-server-monit.
@f-hj i use development branch but it not solve yet.
TypeError: Bad argument
at TypeError (native)
at ChildProcess.spawn (internal/child_process.js:274:26)
at exports.spawn (child_process.js:362:9)
at Object.exports.execFile (child_process.js:151:15)
at Object.exports.exec (child_process.js:111:18)
at module.exports (/home/ecadmin/.pm2/node_modules/pm2-server-monit/lib/exec.js:15:6)
at refreshMetrics (/home/ecadmin/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:3)
at Object.init (/home/ecadmin/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)
at /home/ecadmin/.pm2/node_modules/pm2-server-monit/app.js:46:9
at Object.PMX.initModule (/home/ecadmin/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/pmx.js:116:12)
Node v4.6.0
PM2 v2.6.1
from pm2-server-monit.
I have similar issue on one of our legacyish servers:
/root/.pm2/node_modules/pm2-server-monit/lib/mem.js:57
lines = lines.filter(x => x !== '')
^^
SyntaxError: Unexpected token =>
at exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:443:25)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.<anonymous> (/usr/local/lib/node_modules/pm2/node_modules/pmx/lib/transaction.js:94:21)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/root/.pm2/node_modules/pm2-server-monit/app.js:6:15)
at Module._compile (module.js:460:26)
I know, we have a very old Node.js version :D
from pm2-server-monit.
New version (2.5.2) published. Try an update!
from pm2-server-monit.
Now works, thanks! 👌
from pm2-server-monit.
I'm still getting this error on node v4.7.0
Module activated
┌──────────────────┬─────────┬────────────┬─────────┬─────────┬─────┬────────┬────────┐
│ Module │ version │ target PID │ status │ restart │ cpu │ memory │ user │
├──────────────────┼─────────┼────────────┼─────────┼─────────┼─────┼────────┼────────┤
│ pm2-server-monit │ 2.5.2 │ N/A │ errored │ 15 │ 0% │ 0 B │ ------ │
└──────────────────┴─────────┴────────────┴─────────┴─────────┴─────┴────────┴────────┘
pm2 version: 2.8.0
logs:
~ $ pm2 logs pm2-server-monit
[TAILING] Tailing last 15 lines for [pm2-server-monit] process (change the value with --lines option)
/home/-----/.pm2/logs/pm2-server-monit-out-5.log last 15 lines:
/home/-----/.pm2/logs/pm2-server-monit-error-5.log last 15 lines:
5|pm2-serv | at refreshMetrics (/home/-----/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:3)
5|pm2-serv | at Object.init (/home/-----/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)
5|pm2-serv | at /home/-----/.pm2/node_modules/pm2-server-monit/app.js:46:9
5|pm2-serv | at Object.PMX.initModule (/home/-----/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/pmx.js:124:12)
5|pm2-serv | TypeError: Bad argument
5|pm2-serv | at TypeError (native)
5|pm2-serv | at ChildProcess.spawn (internal/child_process.js:285:26)
5|pm2-serv | at exports.spawn (child_process.js:362:9)
5|pm2-serv | at Object.exports.execFile (child_process.js:151:15)
5|pm2-serv | at Object.exports.exec (child_process.js:111:18)
5|pm2-serv | at module.exports (/home/-----/.pm2/node_modules/pm2-server-monit/lib/exec.js:15:6)
5|pm2-serv | at refreshMetrics (/home/-----/.pm2/node_modules/pm2-server-monit/lib/drive.js:10:3)
5|pm2-serv | at Object.init (/home/-----/.pm2/node_modules/pm2-server-monit/lib/drive.js:100:3)
5|pm2-serv | at /home/-----/.pm2/node_modules/pm2-server-monit/app.js:46:9
5|pm2-serv | at Object.PMX.initModule (/home/-----/.pm2/node_modules/pm2-server-monit/node_modules/pmx/lib/pmx.js:124:12)
from pm2-server-monit.
Related Issues (20)
- Monitor multiple disk volumes HOT 1
- Monitor https://github.com/openhardwaremonitor/openhardwaremonitor
- Current pm2-server-monit when running inside containers
- BIOS information
- Motherboard infos
- systeminformation
- pm2-server-monit status errored HOT 1
- Error message incorrect - implying virus infection HOT 1
- USE Method: Linux Performance Checklist
- Add more CPU metrics
- Current version is broken on MacOS. [cp is not defined] HOT 1
- Add windowsHide to spawn calls HOT 1
- TypeError: Cannot read property 'v1' of undefined HOT 1
- Save monitored data HOT 4
- Running on windows, p2-server-monit is calling linux commands HOT 10
- TypeError: Bad argument HOT 1
- ifconfig -s
- pm2-server-monit issue
- Memory usage reported in pm2.io does not correspond to what is shown by `htop` HOT 2
- zombie process
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-server-monit.