Without the write permission of the kibana directory, how to launch kibana properly

Hi, I don't have the write permission of the kibana-8.7.1 directory, but my group want me to finish the deployment of kibana. I specify the config directory by using the environment variable KBN_PATH_CONF.

And when I tried to launch kibana, with path.data set as /home/phoebus3/XIAOL/test/elk-deployment/C2/data/elk/kibana, I got quite a few errors:

Oct 05 16:13:45 [ctlpc9.aps.anl.gov](http://ctlpc9.aps.anl.gov/) kibana[1100326]: [2023-10-05T16:13:45.753-05:00][ERROR][plugins.interactiveSetup.verification] Failed to write verification code to /home/phoebus3/XIAOL/test/elk-deployment/C2/elk-zip/kibana-8.7.1/data/verification_code: EACCES: permission denied, open '/home/phoebus3/XIAOL/test/elk-deployment/C2/elk-zip/kibana-8.7.1/data/verification_code'.

Oct 06 11:39:09 [ctlpc9.aps.anl.gov](http://ctlpc9.aps.anl.gov/) kibana[2165054]: [2023-10-06T11:39:09.335-05:00][ERROR][plugins.screenshotting] Error: EACCES: permission denied, mkdtemp '/home/phoebus3/XIAOL/test/elk-deployment/C2/elk-zip/kibana-8.7.1/data/chromium-XXXXXX' Oct 06 11:39:09 kibana[2165054]: at Object.mkdtempSync (node:fs:2797:3) Oct 06 11:39:09 kibana[2165054]: at new HeadlessChromiumDriverFactory (/home/phoebus3/XIAOL/test/elk-deployment/C2/elk-zip/kibana-8.7.1/x-pack/plugins/screenshotting/server/browsers/chromium/driver_factory/index.js:62:36) Oct 06 11:39:09 kibana[2165054]: at /home/phoebus3/XIAOL/test/elk-deployment/C2/elk-zip/kibana-8.7.1/x-pack/plugins/screenshotting/server/plugin.js:46:14 Oct 06 11:39:09 kibana[2165054]: at runMicrotasks (<anonymous>) Oct 06 11:39:09 kibana[2165054]: at processTicksAndRejections (node:internal/process/task_queues:96:5)

It seems that kiban was still trying to write contents inside its own directory and ignored the path.data. I wonder how to solve this problem and launch kibana properly without the write permission inside the kibana directory. Thanks a lot for your help.

Best,
Lingran

I've found the previous similar issue here , and the solution here. I think kibana 8.9 has solved this problem but I've not tested yet.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.