{"action":"created","issue":{"url":"https://api.github.com/repos/sirensolutions/sentinl/issues/494","repository_url":"https://api.github.com/repos/sirensolutions/sentinl","labels_url":"https://api.github.com/repos/sirensolutions/sentinl/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/sirensolutions/sentinl/issues/494/comments","events_url":"https://api.github.com/repos/sirensolutions/sentinl/issues/494/events","html_url":"https://github.com/sirensolutions/sentinl/issues/494","id":339453708,"node_id":"MDU6SXNzdWUzMzk0NTM3MDg=","number":494,"title":"Kibana fails to start on installing sentinl-6.2.4.zip","user":{"login":"bananth2008","id":29598332,"node_id":"MDQ6VXNlcjI5NTk4MzMy","avatar_url":"https://avatars3.githubusercontent.com/u/29598332?v=4","gravatar_id":"","url":"https://api.github.com/users/bananth2008","html_url":"https://github.com/bananth2008","followers_url":"https://api.github.com/users/bananth2008/followers","following_url":"https://api.github.com/users/bananth2008/following{/other_user}","gists_url":"https://api.github.com/users/bananth2008/gists{/gist_id}","starred_url":"https://api.github.com/users/bananth2008/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bananth2008/subscriptions","organizations_url":"https://api.github.com/users/bananth2008/orgs","repos_url":"https://api.github.com/users/bananth2008/repos","events_url":"https://api.github.com/users/bananth2008/events{/privacy}","received_events_url":"https://api.github.com/users/bananth2008/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-07-09T13:39:38Z","updated_at":"2018-07-09T14:07:21Z","closed_at":null,"author_association":"NONE","body":"1. **Sentinl and Kibana version** \r\n\r\n- Kibana version - 6.2.4\r\n- Sentinl Version 6.2.4\r\n\r\n2. **Issue description**\r\n\r\n- Unable to install sentinl plugin. Kibana does not start and goes into a loop- trying to start and stop\r\n- Find attached part of the stacktrace\r\n\r\n_Jul  9 13:25:29 ip-172-31-23-18 systemd[1]: kibana.service: Failed with result 'exit-code'.\r\nJul  9 13:25:29 ip-172-31-23-18 systemd[1]: kibana.service: Service hold-off time over, scheduling restart.\r\nJul  9 13:25:29 ip-172-31-23-18 systemd[1]: Stopped Kibana.\r\nJul  9 13:25:29 ip-172-31-23-18 systemd[1]: Started Kibana.\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]: {\"type\":\"error\",\"@timestamp\":\"2018-07-09T13:25:31Z\",\"tags\":[\"fatal\"],\"pid\":6062,\"level\":\"fatal\",\"error\":{\"message\":\"EPERM: operation not permitted, chmod '/usr/share/kibana/plugins/sentinl/node_modules/phantomjs-prebuilt/bin/phantomjs'\",\"name\":\"Error\",\"stack\":\"Error: EPERM: operation not permitted, chmod '/usr/share/kibana/plugins/sentinl/node_modules/phantomjs-prebuilt/bin/phantomjs'\\n    at Error (native)\\n    at fs.chmodSync (fs.js:1177:18)\\n    at PluginPack.exports.default [as _provider] (/usr/share/kibana/plugins/sentinl/index.js:53:3)\\n    at PluginPack.getPluginSpecs (/usr/share/kibana/src/plugin_discovery/plugin_pack/plugin_pack.js:50:25)\\n    at MergeMapSubscriber.find$.mergeMap [as project] (/usr/share/kibana/src/plugin_discovery/find_plugin_specs.js:47:39)\\n    at MergeMapSubscriber._tryNext (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:125:21)\\n    at MergeMapSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:115:12)\\n    at MergeMapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at RefCountSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\\n    at RefCountSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at Subject.next (/usr/share/kibana/node_modules/rxjs/src/Subject.ts:61:17)\\n    at ConnectableSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\\n    at ConnectableSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at MergeAllSubscriber.OuterSubscriber.notifyNext (/usr/share/kibana/node_modules/rxjs/src/OuterSubscriber.ts:13:22)\\n    at InnerSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/InnerSubscriber.ts:17:17)\\n    at InnerSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at CatchSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\\n    at CatchSubscrib\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]: er.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at MergeMapSubscriber.notifyNext (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:151:24)\\n    at InnerSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/InnerSubscriber.ts:17:17)\\n    at InnerSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\\n    at CatchSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\",\"code\":\"EPERM\"},\"message\":\"EPERM: operation not permitted, chmod '/usr/share/kibana/plugins/sentinl/node_modules/phantomjs-prebuilt/bin/phantomjs'\"}\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]: FATAL { Error: EPERM: operation not permitted, chmod '/usr/share/kibana/plugins/sentinl/node_modules/phantomjs-prebuilt/bin/phantomjs'\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at Error (native)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at fs.chmodSync (fs.js:1177:18)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at PluginPack.exports.default [as _provider] (/usr/share/kibana/plugins/sentinl/index.js:53:3)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at PluginPack.getPluginSpecs (/usr/share/kibana/src/plugin_discovery/plugin_pack/plugin_pack.js:50:25)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeMapSubscriber.find$.mergeMap [as project] (/usr/share/kibana/src/plugin_discovery/find_plugin_specs.js:47:39)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeMapSubscriber._tryNext (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:125:21)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeMapSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:115:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeMapSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at RefCountSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at RefCountSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at Subject.next (/usr/share/kibana/node_modules/rxjs/src/Subject.ts:61:17)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at ConnectableSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at ConnectableSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeAllSubscriber.OuterSubscriber.notifyNext (/usr/share/kibana/node_modules/rxjs/src/OuterSubscriber.ts:13:22)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at InnerSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/InnerSubscriber.ts:17:17)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at InnerSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at CatchSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at CatchSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at MergeMapSubscriber.notifyNext (/usr/share/kibana/node_modules/rxjs/src/operator/mergeMap.ts:151:24)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at InnerSubscriber._next (/usr/share/kibana/node_modules/rxjs/src/InnerSubscriber.ts:17:17)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at InnerSubscriber.Subscriber.next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:95:12)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:     at CatchSubscriber.Subscriber._next (/usr/share/kibana/node_modules/rxjs/src/Subscriber.ts:135:22)\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:   errno: -1,\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:   code: 'EPERM',\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:   syscall: 'chmod',\r\nJul  9 13:25:31 ip-172-31-23-18 kibana[6062]:   path: '/usr/share/kibana/plugins/sentinl/node_modules/phantomjs-prebuilt/bin/phantomjs' }\r\nJul  9 13:25:31 ip-172-31-23-18 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE\r\nJul  9 13:25:31 ip-172-31-23-18 systemd[1]: kibana.service: Unit entered failed state.\r\nJul  9 13:25:31 ip-172-31-23-18 systemd[1]: kibana.service: Failed with result 'exit-code'._\r\n\r\n3. **Reproducing the issue step-by-step**\r\n\r\n- The configuration is as follows\r\n\r\nsentinl:\r\n  settings:\r\n    email:\r\n      active: true\r\n      user: xxxx\r\n      password: xxxx\r\n      host: xxx\r\n      ssl: true\r\n    report:\r\n      active: true\r\n      engine: 'horseman'\r\n      phantomjs_path: '/usr/local/bin/phantomjs'\r\n      chrome_path: '/usr/bin/chromium'\r\n\r\n4. **Additional details**\r\n\r\n- Tried without phantomjs_path parameter and chrome_path parameter. The same error comes.\r\n- Tried giving all permissions to kibana/plugins folder. Same error comes\r\n- Tried installing pahntomjs_prebuilt seperately with a different value for phantomjs_path parameter (refer above), still the same error comes.\r\n- While installing the plugin,the following is displayed\r\n\r\nExtraction complete\r\nOptimizing and caching browser bundles...\r\n[sentinl] fail to make report engine executable: ENOENT: no such file or directry, scandir '/usr/share/kibana/plugins/sentinl/node_modules/puppeteer/.local-chomium'!\r\nPlugin installation complete\r\n\r\nWe have recently moved from version 6.2.2 to version 6.2.4.  \r\nThanks in advance for your help!\r\n\r\nRegards,\r\nBhavani\r\n"},"comment":{"url":"https://api.github.com/repos/sirensolutions/sentinl/issues/comments/403491673","html_url":"https://github.com/sirensolutions/sentinl/issues/494#issuecomment-403491673","issue_url":"https://api.github.com/repos/sirensolutions/sentinl/issues/494","id":403491673,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzQ5MTY3Mw==","user":{"login":"havlan","id":18334546,"node_id":"MDQ6VXNlcjE4MzM0NTQ2","avatar_url":"https://avatars3.githubusercontent.com/u/18334546?v=4","gravatar_id":"","url":"https://api.github.com/users/havlan","html_url":"https://github.com/havlan","followers_url":"https://api.github.com/users/havlan/followers","following_url":"https://api.github.com/users/havlan/following{/other_user}","gists_url":"https://api.github.com/users/havlan/gists{/gist_id}","starred_url":"https://api.github.com/users/havlan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/havlan/subscriptions","organizations_url":"https://api.github.com/users/havlan/orgs","repos_url":"https://api.github.com/users/havlan/repos","events_url":"https://api.github.com/users/havlan/events{/privacy}","received_events_url":"https://api.github.com/users/havlan/received_events","type":"User","site_admin":false},"created_at":"2018-07-09T14:07:21Z","updated_at":"2018-07-09T14:07:21Z","author_association":"COLLABORATOR","body":"I think think the user kibana needs access. I ran into something like this.\r\n\r\n```\r\nsudo -u kibana ./bin/kibana-plugin install ...\r\n```\r\nI can't recall if this resolved everything. Maybe add your user to the kibana group, chown the plugin if installing from file.\r\n"}}
{"actor":{"display_login":"havlan"}}