{"action":"closed","issue":{"url":"https://api.github.com/repos/jhuckaby/Cronicle/issues/49","repository_url":"https://api.github.com/repos/jhuckaby/Cronicle","labels_url":"https://api.github.com/repos/jhuckaby/Cronicle/issues/49/labels{/name}","comments_url":"https://api.github.com/repos/jhuckaby/Cronicle/issues/49/comments","events_url":"https://api.github.com/repos/jhuckaby/Cronicle/issues/49/events","html_url":"https://github.com/jhuckaby/Cronicle/issues/49","id":278261292,"node_id":"MDU6SXNzdWUyNzgyNjEyOTI=","number":49,"title":"Cronicle crashes when trying to add a new server","user":{"login":"mpatel-cpi","id":23645479,"node_id":"MDQ6VXNlcjIzNjQ1NDc5","avatar_url":"https://avatars3.githubusercontent.com/u/23645479?v=4","gravatar_id":"","url":"https://api.github.com/users/mpatel-cpi","html_url":"https://github.com/mpatel-cpi","followers_url":"https://api.github.com/users/mpatel-cpi/followers","following_url":"https://api.github.com/users/mpatel-cpi/following{/other_user}","gists_url":"https://api.github.com/users/mpatel-cpi/gists{/gist_id}","starred_url":"https://api.github.com/users/mpatel-cpi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpatel-cpi/subscriptions","organizations_url":"https://api.github.com/users/mpatel-cpi/orgs","repos_url":"https://api.github.com/users/mpatel-cpi/repos","events_url":"https://api.github.com/users/mpatel-cpi/events{/privacy}","received_events_url":"https://api.github.com/users/mpatel-cpi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-11-30T20:36:31Z","updated_at":"2018-07-04T21:35:51Z","closed_at":"2018-07-04T21:35:51Z","author_association":"NONE","body":"<!-- Please provide the following information for your Cronicle issue. -->\r\n<!-- The more details I have, the more likely I can solve the problem. -->\r\n<!-- These HTML comments will not be visible in your bug report, so you can leave them in. -->\r\n\r\n## Summary\r\n\r\nCronicle crashes when trying to add new a new server.\r\n\r\n## Steps to reproduce the problem\r\n\r\n<!-- Please tell me exactly how, so I can reproduce it on my end -->\r\n1. New setup of Cronicle on 2 hosts\r\n2. Changed the \"Master Group\" regex to allow for both hosts to be master eligible\r\n3. Start Cronicle on both hosts\r\n4. When the UI loads click \"Add Server...\" in the \"Admin -> Servers\" section\r\n\r\n## Your Setup\r\n\r\n<!-- Tell me more about your Cronicle setup... -->\r\nI was trying a multi-master setup of Cronicle:\r\n1. Installed Cronicle on 2 EC2 hosts that are publicly accessible\r\n2. Using a share NFS storage to store Cronicle data\r\n\r\n### Operating system and version?\r\n\r\n<!-- e.g. CentOS 7.2, Ubuntu 16, OS X 10.12.4, etc. -->\r\nUbuntu 16.04\r\n\r\n### Node.js version?\r\n\r\n<!-- e.g. 6.9.1, etc. -->\r\nv4.2.6\r\n\r\n### Cronicle software version?\r\n\r\n<!-- See bottom-right corner of web interface. -->\r\n0.7.5\r\n\r\n### Are you using a multi-server setup, or just a single server?\r\nTrying to setup a multi-master setup\r\n\r\n### Are you using the filesystem as back-end storage, or S3/Couchbase?\r\nFilesystem\r\n\r\n### Can you reproduce the crash consistently?\r\nYes, see stack trace below.\r\n\r\n## Log Excerpts\r\n\r\n<!-- Please provide a crash log, and/or any other log excerpts you consider relevant. -->\r\n\r\nErrors show in Chrome dev tools console:\r\n```\r\nPOST https://eu-qa-cronicle-master-1.ev-chargepoint.com:3013/api/app/add_server net::ERR_EMPTY_RESPONSE\r\n\r\nWebSocket connection to 'wss://eu-qa-cronicle-master-1.xyz.com:3013/socket.io/?EIO=3&transport=websocket' failed: Error in connection establishment: net::ERR_CONNECTION_CLOSE\r\n```\r\n\r\nContents of logs/crash.log:\r\n```\r\nThu Nov 30 2017 20:20:00 GMT+0000 (UTC)\r\nTypeError: this is not a typed array.\r\n    at Function.from (native)\r\n    at module.exports.Class.create.post (/opt/cronicle/node_modules/pixl-request/request.js:231:41)\r\n    at module.exports.Class.create.json (/opt/cronicle/node_modules/pixl-request/request.js:112:15)\r\n    at /opt/cronicle/lib/api/admin.js:78:17\r\n    at /opt/cronicle/lib/api.js:354:6\r\n    at /opt/cronicle/node_modules/pixl-server-storage/storage.js:216:4\r\n    at /opt/cronicle/node_modules/pixl-server-storage/engines/Filesystem.js:273:4\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)\r\n\r\nThu Nov 30 2017 20:37:34 GMT+0000 (UTC)\r\nTypeError: this is not a typed array.\r\n    at Function.from (native)\r\n    at module.exports.Class.create.post (/opt/cronicle/node_modules/pixl-request/request.js:231:41)\r\n    at module.exports.Class.create.json (/opt/cronicle/node_modules/pixl-request/request.js:112:15)\r\n    at /opt/cronicle/lib/api/admin.js:78:17\r\n    at /opt/cronicle/lib/api.js:354:6\r\n    at /opt/cronicle/node_modules/pixl-server-storage/storage.js:216:4\r\n    at /opt/cronicle/node_modules/pixl-server-storage/engines/Filesystem.js:273:4\r\n    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)\r\n```\r\n<!-- Thank you for helping to make Cronicle better! -->\r\n"}}
{"actor":{"display_login":"jhuckaby"}}