Skip to content

Instantly share code, notes, and snippets.

View Unitech's full-sized avatar

Alexandre Strzelewicz Unitech

View GitHub Profile
TypeError: Cannot read property 'close' of null
at Process.ChildProcess._handle.onexit (child_process.js:1050:17)
# Install Nginx.
echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" > /etc/apt/sources.list.d/nginx-stable-trusty.list
echo "deb-src http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list.d/nginx-stable-trusty.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys C300EE8C
echo "################## GRACEFUL RELOAD 2 ###################"
################## GRACEFUL RELOAD 2 ###################
###############
$pm2 kill
[PM2] Spawning PM2 daemon
[PM2] WORKER STARTED with refreshing interval: 30000
[[[[ PM2/God daemon launched ]]]]
BUS system [READY] on port /home/travis/.pm2/pub.sock
RPC interface [READY] on port /home/travis/.pm2/rpc.sock
[PM2] Success
Starting execution sequence in -cluster mode- for app name:api-2 id:24
App name:api-2 id:24 online
Starting execution sequence in -cluster mode- for app name:api-2 id:25
App name:api-2 id:25 online
TypeError: Cannot read property 'repo_path' of undefined
at /home/travis/build/Unitech/PM2/lib/Worker.js:20:64
at /home/travis/build/Unitech/PM2/node_modules/vizion/lib/git.js:106:12
at /home/travis/build/Unitech/PM2/node_modules/vizion/lib/git.js:98:14
at Object.oncomplete (fs.js:93:15)
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
cd $file_path
$pm2 kill
RPC socket closed
PUB socket closed
exiting PM2
No output has been received in the last 10 minutes, this potentially indicates a stalled build or something wrong with the build itself.
The build has been terminated
Test remote PM2 actions
Launching interactor
[Keymetrics.io] Using (Public key: osef) (Private key: osef)
[Keymetrics.io] Launching agent
Launching Interactor exposure
[PUSH] Broadcasting UDP data: 127.0.0.1:4321
[REV] Connecting to 127.0.0.1:4322
[REV] Connected to http://127.0.0.1:4322
Got new connection in Mock server
Processes AXM-REVERSE-INTERACTION unlocked
[REV] Error Error: NsSocket: sending on a bad socket
at send (/home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/node_modules/nssocket/lib/nssocket.js:141:31)
at sendBackResult (/home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/lib/Interactor/ReverseInteractor.js:200:19)
at /home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/lib/Interactor/ReverseInteractor.js:236:11
at /home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/lib/Interactor/ReverseInteractor.js:195:16
at /home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/lib/CLI.js:849:18
at /home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10
at Parser.<anonymous> (/home/tknew/.nvm/v0.11.14/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8)
at Parser.emit (events.js:107:17)
------------> ✔ process should have been restarted
$pm2 list
┌──────────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼──────────┤
│ server-watch │ 1 │ cluster │ 7232 │ online │ 1 │ 3s │ 17.773 MB │ enabled │
│ server-watch │ 2 │ cluster │ 7256 │ online │ 1 │ 2s │ 17.492 MB │ enabled │
│ server-watch │ 3 │ cluster │ 7278 │ online │ 1 │ 2s │ 17.492 MB │ enabled │
│ server-watch │ 4 │ cluster │ 7301 │ online │ 1 │ 1s │ 17.496 MB │ enabled │
└──────────────┴────┴─────────┴──────┴────────┴───────────┴────────┴─────────────┴──────────┘
$pm2 reloadLogs
App name:throw-later id:2 exited
Reloading all logs...
Starting execution sequence in -fork mode- for app name:throw-later id:2
Reloading logs...
TypeError: object is not a function
at /home/travis/build/Unitech/PM2/lib/God/ActionMethods.js:497:17
at Array.forEach (native)
at God.reloadLogs (/home/travis/build/Unitech/PM2/lib/God/ActionMethods.js:491:16)
------------> ✔ process should have been restarted
$pm2 list
┌──────────────┬────┬─────────┬──────┬────────┬───────────┬────────┬─────────────┬──────────┐
│ App name │ id │ mode │ PID │ status │ restarted │ uptime │ memory │ watching │
├──────────────┼────┼─────────┼──────┼────────┼───────────┼────────┼─────────────┼──────────┤
│ server-watch │ 1 │ cluster │ 7643 │ online │ 1 │ 3s │ 17.707 MB │ enabled │
│ server-watch │ 2 │ cluster │ 7665 │ online │ 1 │ 2s │ 17.691 MB │ enabled │
│ server-watch │ 3 │ cluster │ 7689 │ online │ 1 │ 2s │ 17.957 MB │ enabled │
│ server-watch │ 4 │ cluster │ 7713 │ online │ 1 │ 1s │ 17.691 MB │ enabled │
└──────────────┴────┴─────────┴──────┴────────┴───────────┴────────┴─────────────┴──────────┘