{"action":"opened","issue":{"url":"https://api.github.com/repos/floragunncom/search-guard-kibana-plugin/issues/120","repository_url":"https://api.github.com/repos/floragunncom/search-guard-kibana-plugin","labels_url":"https://api.github.com/repos/floragunncom/search-guard-kibana-plugin/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/floragunncom/search-guard-kibana-plugin/issues/120/comments","events_url":"https://api.github.com/repos/floragunncom/search-guard-kibana-plugin/issues/120/events","html_url":"https://github.com/floragunncom/search-guard-kibana-plugin/issues/120","id":347428381,"node_id":"MDU6SXNzdWUzNDc0MjgzODE=","number":120,"title":"Plugin installation stucks on \"Optimizing and caching browser bundles...\" ","user":{"login":"sylmarch","id":11892658,"node_id":"MDQ6VXNlcjExODkyNjU4","avatar_url":"https://avatars1.githubusercontent.com/u/11892658?v=4","gravatar_id":"","url":"https://api.github.com/users/sylmarch","html_url":"https://github.com/sylmarch","followers_url":"https://api.github.com/users/sylmarch/followers","following_url":"https://api.github.com/users/sylmarch/following{/other_user}","gists_url":"https://api.github.com/users/sylmarch/gists{/gist_id}","starred_url":"https://api.github.com/users/sylmarch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sylmarch/subscriptions","organizations_url":"https://api.github.com/users/sylmarch/orgs","repos_url":"https://api.github.com/users/sylmarch/repos","events_url":"https://api.github.com/users/sylmarch/events{/privacy}","received_events_url":"https://api.github.com/users/sylmarch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-03T14:54:22Z","updated_at":"2018-08-03T14:54:22Z","closed_at":null,"author_association":"NONE","body":"Installation of Searchguard Kibana plugin stucks on \"Optimizing and caching browser bundles...\" messages for hours.\r\n\r\nHowever, the installation seems to work.\r\n\r\nI think https://docs.search-guard.com/latest/kibana-plugin-installation should be improved to reference possible kibana-plugin stucks and give some advices.\r\n\r\nMy version :\r\n- Kibana : version 6.3.2\r\n- Searchguard Kibana plugin: search-guard-kibana-plugin-6.3.2-14-beta-1.zip\r\n\r\n\r\nHereby some advices:\r\n\r\nChange Kibana settings (log into a file and disable X-Pack features) :\r\n\r\n\r\nStart plugin installation\r\n```\r\n$ cat kibana.yml\r\n...\t\r\n# log into a file (don't forget to configure logrotate)\r\nlogging.dest: /path/to/my/log/file/kibana.log\r\n\r\n[...]\r\n\r\n# disable X-Pack features\r\nxpack.apm.enabled: false\r\nxpack.graph.enabled: false\r\nxpack.grokdebugger.enabled: false\r\nxpack.ml.enabled: false\r\nxpack.monitoring.enabled: false\r\nxpack.reporting.enabled: false\r\nxpack.searchprofiler.enabled: false\r\nxpack.security.enabled: false\r\n\r\n[...]\r\n```\r\n\r\nCheck logs plugin installation :\r\n```\r\n$ tail -f /path/to/my/log/file/kibana.log | sed -r -e 's/^.*\"@timestamp\":\"([^\"]+)\".*,\"message\":\"(.*)\"(,\"prevState\":.*)$/\\1 | \\2/g' -e 's/^.*\"@timestamp\":\"([^\"]+)\".*,\"message\":\"(.*)\"}$/\\1 | \\2/g'\r\n2018-08-03T12:41:19Z | uiSettings.enabled is deprecated and is no longer used\r\n2018-08-03T12:41:30Z | Optimizing and caching bundles for stateSessionStorageRedirect, status_page, timelion, dashboardViewer, searchguard-login, searchguard-customerror, searchguard-multitenancy, searchguard-configuration and kibana. This may take a few minutes\r\n2018-08-03T12:44:02Z | Optimization of bundles for stateSessionStorageRedirect, status_page, timelion, dashboardViewer, searchguard-login, searchguard-customerror, searchguard-multitenancy, searchguard-configuration and kibana complete in 151.97 seconds\r\n2018-08-03T12:44:02Z | Plugin initialization disabled.\r\n```\r\n\r\nExit the plugin installation script with \"Ctrl+C\".\r\n\r\nThen, check if plugin Searchguard is installed.\r\n```\r\n$ bin/kibana-plugin list\r\nsearchguard@6.3.2-14-beta-1\r\n```\r\n\r\nFinally, start Kibana server and check logs:\r\n```\r\n$ cat /path/to/my/log/file/kibana.log | sed -r -e 's/^.*\"@timestamp\":\"([^\"]+)\".*,\"message\":\"(.*)\"(,\"prevState\":.*)$/\\1 | \\2/g' -e 's/^.*\"@timestamp\":\"([^\"]+)\".*,\"message\":\"(.*)\"}$/\\1 | \\2/g'\r\n2018-08-03T13:06:13Z | Status changed from uninitialized to green - Ready\r\n2018-08-03T13:06:13Z | Status changed from uninitialized to yellow - Waiting for Elasticsearch\r\n[...]\r\n2018-08-03T13:06:13Z | Status changed from uninitialized to yellow - Initialising Search Guard authentication plugin.\r\n2018-08-03T13:06:13Z | Status changed from yellow to yellow - Search Guard session management enabled.\r\n2018-08-03T13:06:13Z | Status changed from yellow to yellow - Search Guard copy JWT params disabled\r\n2018-08-03T13:06:13Z | Status changed from yellow to yellow - Search Guard multitenancy disabled\r\n2018-08-03T13:06:13Z | Status changed from yellow to yellow - Routes for Search Guard configuration GUI registered. This is an Enterprise feature.\r\n2018-08-03T13:06:13Z | Status changed from yellow to yellow - Search Guard system routes registered.\r\n2018-08-03T13:06:13Z | Status changed from yellow to green - Search Guard plugin initialised.\r\n2018-08-03T13:06:13Z | Status changed from uninitialized to green - Ready\r\n2018-08-03T13:06:13Z | Server running at https://my-kibana-backend-server:5601\r\n2018-08-03T13:06:15Z | Status changed from yellow to green - Ready\r\n2018-08-03T13:06:15Z | Imported license information from Elasticsearch for the [data] cluster: mode: basic | status: active\r\n2018-08-03T13:06:15Z | Status changed from yellow to green - Ready\r\n[...]\r\n```\r\n\r\nI think Searchguard plugin is correctly installed because the login page with searchguard appears on URL `https://my-kibana-reverse-proxy-url:5601` (backend server is accessed through a reverse proxy).\r\n\r\nDoes it exist a way to be sure that all Searchguard Kibana features have been successfully installed?"}}
{"actor":{"display_login":"sylmarch"}}