Kibana: Unable to disable x-pack security plugin through kibana.yml

Created on 14 May 2019  路  7Comments  路  Source: elastic/kibana

Kibana: 6.7.1
Elasticsearch: 6.7.1
Ubuntu 18.04
Chrome 74.0.3729.131
Installed through apt

  • Added xpack.security.enabled: false in the /etc/kibana/kibana.yml.
  • Restarted kibana using sudo service kibana restart
  • Kibana failed with the following log entry:

May 14 12:45:39 pi kibana[10545]: {"type":"log","@timestamp":"2019-05-14T07:15:39Z","tags":["fatal","root"],"pid":10545,"message":"{ TypeError: Cannot read property 'callWithRequest' of undefined\n at getUserFn (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/get_user.js:11:33)\n at /usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/once_per_server.js:30:15\n at memoized (/usr/share/kibana/node_modules/lodash/index.js:7956:27)\n at authorizedUserPreRoutingFn (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/authorized_user_pre_routing.js:14:19)\n at /usr/share/kibana/node_modules/x-pack/plugins/reporting/server/lib/once_per_server.js:30:15\n at memoized (/usr/share/kibana/node_modules/lodash/index.js:7956:27)\n at main (/usr/share/kibana/node_modules/x-pack/plugins/reporting/server/routes/main.js:25:36)\n at Plugin.init [as externalInit] (/usr/share/kibana/node_modules/x-pack/plugins/reporting/index.js:178:7)\n at process._tickCallback (internal/process/next_tick.js:68:7)\n isBoom: true,\n isServer: true,\n data: null,\n output:\n { statusCode: 500,\n payload:\n { statusCode: 500,\n error: 'Internal Server Error',\n message: 'An internal server error occurred' },\n headers: {} },\n reformat: [Function],\n [Symbol(SavedObjectsClientErrorCode)]: 'SavedObjectsClient/generalError' }"}
May 14 12:45:39 pi kibana[10545]: FATAL TypeError: Cannot read property 'callWithRequest' of undefined
May 14 12:45:39 pi systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
May 14 12:45:39 pi systemd[1]: kibana.service: Failed with result 'exit-code'.
May 14 12:45:40 pi systemd[1]: kibana.service: Service hold-off time over, scheduling restart.
May 14 12:45:40 pi systemd[1]: kibana.service: Scheduled restart job, restart counter is at 5.
May 14 12:45:40 pi systemd[1]: Stopped Kibana.
May 14 12:45:40 pi systemd[1]: Started Kibana.

I want to disable and/or uninstall xpack security in order to use opendistro kibana security plugin

Security

Most helpful comment

Hey @Antoine-SSAG, if you wish to use OpenDistro, you'll want to use it with the OSS distributable of Kibana. We don't support turning explicitly disabling the security plugin in Kibana, the Kibana security plugin will be disabled/enabled based on whether or not security is enabled in Elasticsearch. With that being said, we recently made x-pack security part of the basic license and free: https://www.elastic.co/blog/security-for-elasticsearch-is-now-free

All 7 comments

Kibana: 6.7.1
Elasticsearch: 6.7.1
SLES12
Firefox 60.5
i have the same problem,
The only difference is that i'm on SLES 12.

My log file is :
kibana.txt

Pinging @elastic/kibana-security

Hey @Antoine-SSAG, if you wish to use OpenDistro, you'll want to use it with the OSS distributable of Kibana. We don't support turning explicitly disabling the security plugin in Kibana, the Kibana security plugin will be disabled/enabled based on whether or not security is enabled in Elasticsearch. With that being said, we recently made x-pack security part of the basic license and free: https://www.elastic.co/blog/security-for-elasticsearch-is-now-free

Hey @kobelb thanks, indeed, everything is fine now that Elastic security is free ! Thanks you for your work ^^

Is is possible to solve this problem? I need OpenDistor and APM from X-Pack(((

Is is possible to solve this problem? I need OpenDistor and APM from X-Pack(((

No, see https://github.com/elastic/kibana/issues/36535#issuecomment-494966297 above. OpenDistro code is not from Elastic and even if there's a way to hack something together that may seem to work nobody can guarantee that it won't break at any time.

Having said that you may want to check if free basic license fulfills your needs (since you want to use part of X-Pack anyway - APM).

X-Pack is very very expensive, but I need ldap auth and alerting.

Was this page helpful?
0 / 5 - 0 ratings