I encounter problems patching RoR version 1.60.0 for Kibana:
[ROR COMPAT] ReadonlyREST encountered problems during patching: Error: Failed to apply patch 'get_document_payload.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../node_modules/@kbn/reporting-plugin/server/routes/common/jobs/get_document_payload.js'
at c.e (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/filePatcher.js:1:3684)
at /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2938
at doWithPatcher (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:4254)
at patchAll (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2762)
at Object.main (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2279)
at Object.<anonymous> (/usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js:16:10)
at Module._compile (node:internal/modules/cjs/loader:1358:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
at Module.load (node:internal/modules/cjs/loader:1208:32)
at Module._load (node:internal/modules/cjs/loader:1024:12)
Version of Kibana used: 8.15.1
It works perfectly with 1.59.0.
I was unable to replicate this issue. The initial patching problem raised suspicions. From what I recall, one probable cause could be the failure to unpatch Kibana before applying the patch. Can you verify whether these upgrading steps were followed? https://docs.readonlyrest.com/kibana#upgrading?
I even tried it with an uninstalled Kibana, so the directory containing the plugins is completely gone before trying it.
The failure to patch might have been a special case where we came from Kibana 8.13.2 with RoR plugin 1.57.3 via Kibana 8.15.1 with RoR plugin 1.59.0 to RoR plugin 1.60.0.
After a clean install of Kibana the patching at least worked, but after that, Kibana doesn’t start anymore.
I will try with a real clean machine or something like that if it then still doesn’t work.
Could you provide full Kibana and es logs and kibana.yml, readonlyrest.yml, and elasticsearch.yml configs? You can send it as a private message or via email.
Sep 24 11:01:09 kibana2 kibana[2984]: [2024-09-24T11:01:09.730+02:00][DEBUG][plugins-discovery] Successfully discovered plugin "readonlyrestkbn" at "/usr/share/kibana/plugins/readonlyrestkbn"
Sep 24 11:01:30 kibana2 systemd[1]: kibana.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- An ExecStart= process belonging to unit kibana.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Sep 24 11:01:30 kibana2 systemd[1]: kibana.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit kibana.service has entered the 'failed' state with result 'exit-code'.
Did you properly set the permission and ownership to the directory: /usr/share/kibana something when we do things manually we set the ownership to root and not to the kibana user and therefore the service does not start properly.
What you can do to have more details on your issue is to start kibana manually in your terminal, like this:
# ## start a shell as kibana user
su -s /bin/bash kibana
# ## lauch kibana in debug mod and see what it says:
/usr/share/kibana/bin/kibana -c /etc/kibana.yml