RoR 1.33.0 Kibana 7.14.0 patch gives error

Hi,
When trying to patch 1.33.0 on Kibana 7.14.0 we get the below error:

[TST root@xxx.yyy kibana]$ ./bin/kibana-plugin install file:///data/readonlyrest_kbn_enterprise-1.33.0_es7.14.0.zip
Attempting to transfer from file:///data/readonlyrest_kbn_enterprise-1.33.0_es7.14.0.zip
Transferring 26556920 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Plugin installation complete
[TST root@xxx.yyy kibana]$ node/bin/node plugins/readonlyrestkbn/ror-tools.js patch
[ROR COMPAT] Received command: patch
[ROR COMPAT] Adding hooks on a few Kibana files if necessary..
[ROR COMPAT] ReadonlyREST encountered problems with compatibility manager script, please run manually using 'ror-tools.js'   Error: ENOENT: no such file or directory, scandir '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/'
    at Proxy.readdirSync (fs.js:1043:3)
    at doWithPatcher (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:3418)
    at patchAll (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2625)
    at Object.main (/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/kibanaPatcher.js:1:2189)
    at Object.<anonymous> (/usr/share/kibana/plugins/readonlyrestkbn/ror-tools.js:16:10)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/patches_for_kbn_distribution/'
}

We checked, the directory /usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/ exists, but the subdirectory patches_for_kbn_distribution doesn’t exist.

Please advise.

Hi @ronald.vanboven,
I reproduced, unforutnately. It was a build script bug. Will provide the fix tonight.

1.33.1 released with fixes. Please download it from the download page.

Yep, fixes it. Thanks.

1 Like

Hi @sscarduzio, could it be that these kind of problems were reintroduced with 1.35.1 and kibana 7.15.1?

[ROR COMPAT] ReadonlyREST encountered problems with compatibility manager script, please run manually using 'ror-tools.js'   Error: Failed to apply patch 'http_server.js.patch' to '/usr/share/kibana/plugins/readonlyrestkbn/kibana/patchers/../../../../src/core/server/http/http_server.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:1072:14)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
at Module.load (internal/modules/cjs/loader.js:937:32)
at Function.Module._load (internal/modules/cjs/loader.js:778:12)

Thx!

Regards, Arjen

We are trying with 1.36.0 now.

Regards, Arjen

Which unfortunately didn’t work as well…

Regards, Arjen

Hi @abuising, thanks for reporting. Let me have a look!

1 Like

Ah thx! I also created a new topic for this error.

Thanks & regards,
Arjen

1 Like