BobVanB
(Bob van Bokkem)
May 27, 2026, 10:24am
1
We get a plugin error during the build of Kibana
#7 1.230 Attempting to transfer from https://api.beshu.tech/download/kbn?email=[MASKED]&edition=kbn_universal&token=[MASKED]&esVersion=9.4.1&pluginVersion=1.69.1
#7 1.232 Picked up proxy http://nsdc-proxy.kvk.nl:8080 from environment variable.
#7 3.008 Transferring 61682450 bytes.
#7 39.87 Transfer complete
#7 39.87 Retrieving metadata from plugin archive
#7 41.63 Extracting plugin archive
#7 48.18 Extraction complete
#7 48.20 Plugin installation complete
#7 49.66 /usr/share/kibana/node/glibc-217/bin/node:1
#7 49.66 ELF
#7 49.66 ^
#7 49.66
#7 49.66 SyntaxError: Invalid or unexpected token
#7 49.66 at wrapSafe (node:internal/modules/cjs/loader:1743:18)
#7 49.66 at Module._compile (node:internal/modules/cjs/loader:1786:20)
#7 49.66 at Object..js (node:internal/modules/cjs/loader:1943:10)
#7 49.66 at Module.load (node:internal/modules/cjs/loader:1533:32)
#7 49.66 at Module._load (node:internal/modules/cjs/loader:1335:12)
#7 49.66 at wrapModuleLoad (node:internal/modules/cjs/loader:255:19)
#7 49.66 at Module.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:154:5)
#7 49.66 at node:internal/main/run_main_module:33:47
Dockerfile part
FROM docker.elastic.co/kibana/kibana:9.4.1
...cert stuff...
USER kibana
ENV NODE_EXTRA_CA_CERTS=/etc/pki/tls/certs/ca-bundle.crt
RUN echo -n "${ROR_ACTIVATION_KEY}" > "/usr/share/kibana/ROR_ACTIVATION_KEY.txt" \
&& NODE=$(find . -name node -type f -executable) \
&& ./bin/kibana-plugin install \
"https://api.beshu.tech/download/kbn?email=${ROR_EMAIL}&edition=kbn_universal&token=${ROR_TOKEN}&esVersion=9.4.1&pluginVersion=1.69.1" \
&& ${NODE} plugins/readonlyrestkbn/ror-tools.js patch --I_UNDERSTAND_AND_ACCEPT_KBN_PATCHING=yes \
&& ./bin/kibana --optimize
All variables are filled. Before this i build the elasticsearch image and that worked fine.
Is this enough for you to find with the above error?
With kind regards,
Bob van Bokkem
Chamber of Commerce.
coutoPL
(Mateusz Kołodziejczyk)
May 27, 2026, 10:36am
2
Hi @BobVanB
Probably this is the reason:
> docker run -ti docker.elastic.co/kibana/kibana:9.4.1 bash
bash-5.1$ find /usr/share/kibana -name node -type f -executable -print
/usr/share/kibana/node/glibc-217/bin/node
/usr/share/kibana/node/default/bin/node
Just do it like this:
RUN echo -n "${ROR_ACTIVATION_KEY}" > "/usr/share/kibana/ROR_ACTIVATION_KEY.txt" \
&& ./bin/kibana-plugin install \
"https://api.beshu.tech/download/kbn?email=${ROR_EMAIL}&edition=kbn_universal&token=${ROR_TOKEN}&esVersion=9.4.1&pluginVersion=1.69.1" \
&& /usr/share/kibana/node/default/bin/node plugins/readonlyrestkbn/ror-tools.js patch --I_UNDERSTAND_AND_ACCEPT_KBN_PATCHING=yes \
&& ./bin/kibana --optimize
BobVanB
(Bob van Bokkem)
May 27, 2026, 10:56am
3
I did not see that, i will get back to you if that was the solution. Thank you.
I am glad i showed you my Dockerfile, i can confirm that your solution works.
Thank you again and sorry for your time.
sscarduzio
(Simone Scarduzio)
June 1, 2026, 9:20am
5
Can we promote this to public topic? Or is there sensitive info? @BobVanB @coutoPL
coutoPL
(Mateusz Kołodziejczyk)
June 1, 2026, 10:17am
6
I don’t see any sensitive info in the logs above.
@BobVanB WDYT?
BobVanB
(Bob van Bokkem)
September 10, 2026, 4:36am
7
Sorry, for the late reply. But no its not sensitive
I just updated to 9.5.3 with 1.71.0 and this is my new Dockerfile for kibana
ARG KBN_VERSION=undefined
FROM docker.elastic.co/kibana/kibana:$KBN_VERSION
ARG ES_VERSION \
ROR_VERSION \
ROR_EMAIL \
ROR_TOKEN \
ROR_ACTIVATION_KEY
USER kibana
ENV NODE_EXTRA_CA_CERTS=/etc/pki/tls/certs/ca-bundle.crt
RUN echo -n "${ROR_ACTIVATION_KEY}" > "/usr/share/kibana/ROR_ACTIVATION_KEY.txt" \
&& ./bin/kibana-plugin install \
"https://api.beshu.tech/download/kbn?email=${ROR_EMAIL}&edition=kbn_universal&token=${ROR_TOKEN}&esVersion=${ES_VERSION}&pluginVersion=${ROR_VERSION}" \
&& I_UNDERSTAND_AND_ACCEPT_KBN_PATCHING=yes node/glibc-217/bin/node plugins/readonlyrestkbn/ror-tools.js patch \
&& ./bin/kibana --optimize