This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o verbose | |
node_version="0.11.14" | |
# Get user name | |
user_name="$(id -u -n)" | |
# Get user id |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App name:server-watch id:1 online | |
TypeError: Cannot read property 'pid' of null | |
at null._onTimeout (/home/travis/build/Unitech/PM2/lib/God/ActionMethods.js:213:37) | |
at Timer.listOnTimeout [as ontimeout] (timers.js:112:15) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TypeError: Cannot read property 'send' of null | |
at sendHelper (cluster.js:657:7) | |
at RoundRobinHandle.handoff (cluster.js:198:3) | |
at RoundRobinHandle.distribute (cluster.js:184:20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Launching Interactor exposure | |
events.js:85 | |
throw er; // Unhandled 'error' event | |
^ | |
Error: channel closed | |
at process.target.send (child_process.js:413:26) | |
at /home/shant/keymetrics/pm2/lib/Interactor/Daemon.js:228:17 | |
at /home/shant/keymetrics/pm2/lib/Interactor/Daemon.js:181:16 | |
at ClientRequest.<anonymous> (/home/shant/keymetrics/pm2/lib/Interactor/HttpRequest.js:55:5) | |
at ClientRequest.emit (events.js:107:17) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[hapi-playground-0 (err)] 0) | |
[hapi-playground-0 (err)] at child_process.js:396:7 | |
[hapi-playground-0 (err)] at process.handleConversion.net.Native.got (child_process.js:91:7)Error: bind EADDRINUSE | |
[hapi-playground-0 (err)] at errnoException (net.js:904:11) | |
[hapi-playground-0 (err)] at net.js:1084:30 | |
[hapi-playground-0 (err)] at Object.15:1 (cluster.js:594:5) | |
[hapi-playground-0 (err)] at handleResponse (cluster.js:171:41) | |
[hapi-playground-0 (err)] at respond (cluster.js:192:5) | |
[hapi-playground-0 (err)] at handleMessage (cluster.js:202:5) | |
[hapi-playground-0 (err)] at process.emit (events.js:117:20) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@pm2-test-centos examples]# node -v | |
v0.10.32 | |
[root@pm2-test-centos examples]# pm2 start child.js -i 1 | |
Starting PM2 daemon... | |
[PM2] You shouldn't use the cluster_mode with node 0.10.x. Instead use fork mode with -x | |
[PM2] Process child.js launched | |
┌──────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬─────────────┐ | |
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │ | |
├──────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼─────────────┤ | |
│ child │ 0 │ cluster │ 9874 │ online │ 0 │ 0s │ 11.387 MB │ unactivated │ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -o verbose | |
pm2 kill | |
rm -rf hapi_playground | |
git clone git://github.com/atomantic/hapi_playground.git | |
cd hapi_playground |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require('pm2')() | |
.create({ | |
script : '/tmp/hello.js', | |
instances: 'max', | |
}, function(err, started) { | |
console.log('Successfully started %s processes', started.length) | |
}) | |
.list(function(process_list) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
node_version="0.11.14" | |
# Get user name | |
user_name="$(id -u -n)" | |
# Get user id | |
user_id="$(id -u)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
App name:AXM-WEB-API id:5 online | |
-reload- New worker listening | |
AssertionError: false == true | |
at SharedHandle.remove (cluster.js:104:3) | |
at removeHandlesForWorker (cluster.js:338:20) | |
at ChildProcess.<anonymous> (cluster.js:362:7) | |
at ChildProcess.g (events.js:199:16) | |
at ChildProcess.emit (events.js:104:17) | |
at finish (child_process.js:534:14) | |
at process._tickCallback (node.js:372:11) |