ROR 1.35.1 / Kibana 7.9.3 unable to patch

Hello,
I’m having an issue with patching a kibana in version 7.9.3 with free version of kib_ror 1.35.1 (no problem on higher versions though)

Attempting to transfer from file:///tmp/kib_ror
Transferring 52600511 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation complete
[[email protected]~]#
[[email protected]~]# /usr/share/kibana/node/bin/node /usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js patch
[ROR COMPAT] Received command: patch
[ROR COMPAT] Adding hooks on a few Kibana files if necessary..
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/http_server.js.patch
Applied 'http_server.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/core/server/http/http_server.js'
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/kbn_server.js.patch
Applied 'kbn_server.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/legacy/server/kbn_server.js'
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/serve.js.patch
[ROR COMPAT] ReadonlyREST encountered problems with compatibility manager script, please run manually using 'ror-tools.js'   Error: Failed to apply patch 'serve.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/cli/serve/serve.js'
    at l.e (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/filePatcher.js:1:3031)
    at /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2824
    at doWithPatcher (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:3711)
    at patchAll (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2659)
    at Object.main (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2223)
    at Object.<anonymous> (/usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js:16:10)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)```

[[email protected]~]# /usr/share/kibana/bin/kibana-plugin list --allow-root
[email protected]

So far I've tried to clean reinstall (yum remove -> rm -rf /usr/share/kibana) 
My first error was the same but with http_server.js
1 Like

Hi @nafasim will have a look, thanks for reporting this!

Issue reproduced, will work on a fix tomorrow.

This is fixed. What edition of Kibana plugin are you using? PRO/Enterprise/Free?

I’m using the free version of the plugin

OK here is a build for you

Did a clean reinstall, unfortunately, this doesn’t seem to fix

[[email protected] kibana]# /usr/share/kibana/bin/kibana-plugin install file:///home//readonlyrest_kbn_free-1.36.0-pre4_es7.9.3.zip --allow-root
Attempting to transfer from file:///home//readonlyrest_kbn_free-1.36.0-pre4_es7.9.3.zip
Transferring 55557566 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation complete
[[email protected] kibana]# /usr/share/kibana/node/bin/node /usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js patch
[ROR COMPAT] Received command: patch
[ROR COMPAT] Adding hooks on a few Kibana files if necessary..
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/http_server.js.patch
Applied 'http_server.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/core/server/http/http_server.js'
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/kbn_server.js.patch
Applied 'kbn_server.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/legacy/server/kbn_server.js'
[ROR COMPAT] found patch file /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/serve.js.patch
[ROR COMPAT] ReadonlyREST encountered problems with compatibility manager script, please run manually using 'ror-tools.js'   Error: Failed to apply patch 'serve.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/cli/serve/serve.js'
    at l.e (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/filePatcher.js:1:3031)
    at /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2824
    at doWithPatcher (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:3711)
    at patchAll (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2659)
    at Object.main (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2223)
    at Object.<anonymous> (/usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js:16:10)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)

For the sake of checking,
/usr/share/kibana/bin/kibana-plugin list --allow-root
[email protected]

I removed RoR plugin, it is indeed kibana 7.9.3 that is installed (and starts)
curl -s localhost:5601/api/status |jq ‘.version.number’
“7.9.3”

Sorry @nafasim, my mistake. This build should fix.

Hello @sscarduzio

Yes this build fixes the issue, thanks for the quick reply !

1 Like