Skip to content

Instantly share code, notes, and snippets.

View Unitech's full-sized avatar

Alexandre Strzelewicz Unitech

View GitHub Profile
module.js:338
throw err;
^
Error: Cannot find module 'tryIt'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/shant/.nvm/versions/node/v0.12.0/lib/node_modules/requiresafe/lib/commands/check.js:9:13)
at Module._compile (module.js:460:26)
var timeseries = require('timeseries')({
elasticsearch_hosts : [{
port : 9200,
host : 'localhost'
}],
redis : {
port : 6379,
host : 'localhost'
}
});
{
/**
* This is a sample configuration file for PM2
*/
/**
* Here we declare the apps that must be managed by PM2
* All options are listed here:
* https://github.com/Unitech/PM2/blob/master/ADVANCED_README.md#json-app-declaration
*
shant@ultraio: ~/keymetrics/PM2
$ npm test
> pm2@1.0.0 test /home/shant/keymetrics/PM2
> NODE_ENV=test bash test/index.sh && NODE_ENV=test bash test/main.sh
function fail {
echo -e "######## \033[31m ✘ $1\033[0m"
$pm2 kill
2015-02-23 23:12:32: App name:AXM-WEB-API id:0 exited
2015-02-23 23:12:32: Starting execution sequence in -cluster mode- for app name:AXM-WEB-API id:0
2015-02-23 23:12:32: App name:AXM-WEB-API id:0 online
2015-02-23 23:14:26: App name:AXM-WEB-API id:0 exited
2015-02-23 23:14:26: Starting execution sequence in -cluster mode- for app name:AXM-WEB-API id:0
2015-02-23 23:14:26: App name:AXM-WEB-API id:0 online
2015-02-23 23:15:18: App name:AXM-WEB-API id:0 exited
2015-02-23 23:15:18: Starting execution sequence in -cluster mode- for app name:AXM-WEB-API id:0
2015-02-23 23:15:18: App name:AXM-WEB-API id:0 online
2015-02-23 23:22:22: ERROR CAUGHT BY DOMAIN:
{
"ultraio": {
"pmx": {
"avail": [
[
1424961000000,
765.3000000000005
],
[
1424962800000,
var metric = probe.metric({
name : 'Realtime user',
historic_agg : true,
value : function() {
return Object.keys(users).length;
}
});
2015-03-08 13:39:30: Process with pid 44771 killed
[PM2] deleteProcessId process id 2
2015-03-08 13:39:30: App closed with code: 0
2015-03-08 13:39:30: App name:AXM-LIMIT-WORKER id:3 exited with code 0
2015-03-08 13:39:30: Process with pid 44780 killed
[PM2] deleteProcessId process id 3
2015-03-08 13:39:30: App closed with code: null
2015-03-08 13:39:30: App name:AXM-REVERSE-INTERACTION id:4 exited with code null
2015-03-08 13:39:30: Process with pid 44795 killed
[PM2] deleteProcessId process id 4
AXM-INTERACTION-APP-1,2,3,4 (out): 2015-04-14 17:16 +00:00: [APP Interaction] UDP Listening (udp://0.0.0.0:41624)
AXM-INTERACTION-APP-1,2,3,4 (out): 2015-04-14 17:16 +00:00: [APP Interaction] TCP Listening (tcp://0.0.0.0:3900)
AXM-INTERACTION-APP-1,2,3,4 (out): 2015-04-14 17:16 +00:00: [APP Interaction] Ready
AXM-INTERACTION-APP-1,2,3,4 (out): 2015-04-14 17:16 +00:00: [APP Interaction] UDP Listening (udp://0.0.0.0:41624)
AXM-INTERACTION-APP-1,2,3,4 (out): 2015-04-14 17:16 +00:00: [APP Interaction] TCP Listening (tcp://0.0.0.0:3900)
AXM-INTERACTION-APP-1,2,3,4 (err): at Domain.run (domain.js:197:16)
AXM-INTERACTION-APP-1,2,3,4 (err): at SubSocket.<anonymous> (/var/www/km-api/source/app_interaction/app_interaction.js:188:9)
AXM-INTERACTION-APP-1,2,3,4 (err): at SubSocket.emit (events.js:110:17)
AXM-INTERACTION-APP-1,2,3,4 (err): at Parser.<anonymous> (/var/www/km-api/source/node_modules/pm2-axon/lib/sockets/sub.js:82:15)
AXM-INTERACTION-APP-1,2,3,4 (err): at Parser.emit (events.js:107:17)
process.on('uncaughtException', function(err) {
console.log('Caught exception: ' + err);
});
throw 'lol';