{"action":"created","issue":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/489","repository_url":"https://api.github.com/repos/RuntimeTools/appmetrics","labels_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/489/labels{/name}","comments_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/489/comments","events_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/489/events","html_url":"https://github.com/RuntimeTools/appmetrics/issues/489","id":270037673,"number":489,"title":"appmetrics causes BX CF start failure","user":{"login":"mossuchida","id":12548207,"avatar_url":"https://avatars2.githubusercontent.com/u/12548207?v=4","gravatar_id":"","url":"https://api.github.com/users/mossuchida","html_url":"https://github.com/mossuchida","followers_url":"https://api.github.com/users/mossuchida/followers","following_url":"https://api.github.com/users/mossuchida/following{/other_user}","gists_url":"https://api.github.com/users/mossuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/mossuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mossuchida/subscriptions","organizations_url":"https://api.github.com/users/mossuchida/orgs","repos_url":"https://api.github.com/users/mossuchida/repos","events_url":"https://api.github.com/users/mossuchida/events{/privacy}","received_events_url":"https://api.github.com/users/mossuchida/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-10-31T16:57:33Z","updated_at":"2017-11-09T17:12:56Z","closed_at":null,"author_association":"NONE","body":"I got the following error.  Please let me know how to work around:\r\n\r\n2017-10-31T12:41:31.75-0400 [APP/PROC/WEB/0]ERR [Tue Oct 31 16:41:31 2017] com.ibm.diagnostics.healthcenter.loader INFO: Node Application Metrics 3.1.1.201710160434 (Agent Core 3.2.4)\r\n2017-10-31T12:41:31.87-0400 [APP/PROC/WEB/0]ERR [Tue Oct 31 16:41:31 2017] com.ibm.diagnostics.healthcenter.mqtt INFO: Connecting to broker localhost:1883\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR /home/vcap/app/node_modules/mongodb/lib/mongo_client.js:369\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR             throw err\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR             ^\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR RangeError: Maximum call stack size exceeded\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Object.stringify (native)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Function.Module._findPath (module.js:158:25)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Function.Module._resolveFilename (module.js:467:25)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Function.Module._load (module.js:417:25)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Module.require (module.js:497:17)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Module.newFunc (/home/vcap/app/node_modules/appmetrics/lib/aspect.js:101:26)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at require (internal/module.js:20:19)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Object.exports.monitor (/home/vcap/app/node_modules/appmetrics-dash/lib/appmetrics-dash.js:99:42)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Object.exports.monitor (/home/vcap/app/node_modules/appmetrics-dash/lib/appmetrics-dash.js:103:31)\r\n2017-10-31T12:41:33.47-0400 [APP/PROC/WEB/0]ERR     at Object.http.Server (/home/vcap/app/node_modules/appmetrics-dash/lib/appmetrics-dash.js:69:15)\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! Linux 4.4.0-75-generic\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! argv \"/home/vcap/app/vendor/node/bin/node\" \"/home/vcap/app/vendor/node/bin/npm\" \"start\"\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! node v6.11.4\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! npm  v3.10.10\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! code ELIFECYCLE\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! acmeair_flight@0.1.0 start: `node flightservice_app.js`\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! Exit status 1\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! \r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! Failed at the acmeair_flight@0.1.0 start script 'node flightservice_app.js'.\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! If you do, this is most likely a problem with the acmeair_flight package,\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! not with npm itself.\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! Tell the author that this fails on your system:\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR!     node flightservice_app.js\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR! You can get information on how to open an issue for this project with:\r\n2017-10-31T12:41:33.52-0400 [APP/PROC/WEB/0]ERR npm ERR!     npm bugs acmeair_flight\r\n2017-10-31T12:41:33.53-0400 [APP/PROC/WEB/0]ERR npm ERR! Or if that isn't available, you can get their info via:\r\n2017-10-31T12:41:33.53-0400 [APP/PROC/WEB/0]ERR npm ERR!     npm owner ls acmeair_flight\r\n2017-10-31T12:41:33.53-0400 [APP/PROC/WEB/0]ERR npm ERR! There is likely additional logging output above.\r\n2017-10-31T12:41:33.54-0400 [APP/PROC/WEB/0]ERR npm ERR! Please include the following file with any support request:\r\n2017-10-31T12:41:33.54-0400 [APP/PROC/WEB/0]ERR npm ERR!     /home/vcap/app/npm-debug.log\r\n"},"comment":{"url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/comments/343224550","html_url":"https://github.com/RuntimeTools/appmetrics/issues/489#issuecomment-343224550","issue_url":"https://api.github.com/repos/RuntimeTools/appmetrics/issues/489","id":343224550,"user":{"login":"mattcolegate","id":15730986,"avatar_url":"https://avatars3.githubusercontent.com/u/15730986?v=4","gravatar_id":"","url":"https://api.github.com/users/mattcolegate","html_url":"https://github.com/mattcolegate","followers_url":"https://api.github.com/users/mattcolegate/followers","following_url":"https://api.github.com/users/mattcolegate/following{/other_user}","gists_url":"https://api.github.com/users/mattcolegate/gists{/gist_id}","starred_url":"https://api.github.com/users/mattcolegate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattcolegate/subscriptions","organizations_url":"https://api.github.com/users/mattcolegate/orgs","repos_url":"https://api.github.com/users/mattcolegate/repos","events_url":"https://api.github.com/users/mattcolegate/events{/privacy}","received_events_url":"https://api.github.com/users/mattcolegate/received_events","type":"User","site_admin":false},"created_at":"2017-11-09T17:12:56Z","updated_at":"2017-11-09T17:12:56Z","author_association":"OWNER","body":"@mossuchida I've not managed to find the time to get your application working so that I can recreate it. As an interim, the stack trace looked like the failure occurred during instrumentation of MongoDB. To prove this, can you turn MongoDB instrumentation off by replacing the lines of code you added to your application in step 2 of https://developer.ibm.com/node/2017/03/23/use-appmetrics-dash-bluemix-3-easy-steps/ with the following and re-running please?\r\n```javascript\r\nvar appm = require('appmetrics');\r\nrequire('appmetrics-dash').attach({appmetrics:appm});\r\nappm.disable('mongo');\r\n```"}}
{"actor":{"display_login":"mattcolegate"}}