linux-on-ibm-z / docs

A collection of instructions and tutorials to help you get your favorite software up and running on Linux on z
147 stars 58 forks source link

build_kibana.sh fails on RHEL 8.3 #52

Closed pholm07 closed 2 years ago

pholm07 commented 2 years ago

HEAD is now at dd4d112 New version: 1.15.4. Submodule 'vendor' (https://github.com/google/re2) registered for path 'vendor' Cloning into '/opt/install-kibana/install/node-re2/vendor'... Submodule path 'vendor': checked out 'b83705e2d297f21b0805202bac86c935670634f8' npm WARN lifecycle re2@1.15.4~install: cannot run in wd re2@1.15.4 install-from-cache --artifact build/Release/re2.node --host-var RE2_DOWNLOAD_MIRROR (wd=/opt/install-kibana/install/node-re2) added 141 packages from 131 contributors and audited 141 packages in 1.292s

4 packages are looking for funding run npm fund for details

found 12 vulnerabilities (3 low, 1 moderate, 8 high) run npm audit fix to fix them, or npm audit for details gzip: build/Release/re2.node: No such file or directory

The script install-from-cache is found in wd=/opt/install-kibana/install/node-re2/node_modules/.bin. Running the script manually from that location works, but later when doing 'yarn kbn bootstrap --oss' that command fails with yarn run v1.22.18 $ node scripts/kbn bootstrap --oss info [bazel_tools] installing Bazel tools ERROR [bootstrap] failed: ERROR Error: [bazel_tools] an error occurred when installing the Bazel tools. Please make sure you have access to npm globally installed modules on your $PATH at installBazelTools (/opt/install-kibana/install/kibana/packages/kbn-pm/dist/index.js:48173:13) at processTicksAndRejections (internal/process/task_queues.js:93:5) at async Object.run (/opt/install-kibana/install/kibana/packages/kbn-pm/dist/index.js:8906:5) at async runCommand (/opt/install-kibana/install/kibana/packages/kbn-pm/dist/index.js:59437:5) at async Module.run (/opt/install-kibana/install/kibana/packages/kbn-pm/dist/index.js:238:3) error Command failed with exit code 1.

aborkar-ibm commented 2 years ago

Hi,

We were not able to reproduce this issue. Have you tried installing using script - Step 1 of Build Instruction

pholm07 commented 2 years ago

Hi, This is what happens when I use the build_kibana.sh script. Please find logs in the logs directory attached. /Peter

On Mon, Apr 18, 2022 at 12:33 PM aborkar-ibm @.***> wrote:

Hi,

We were not able to reproduce this issue. Have you tried installing using script (Step 1 of Build Instruction https://github.com/linux-on-ibm-z/docs/wiki/Building-Kibana

— Reply to this email directly, view it on GitHub https://github.com/linux-on-ibm-z/docs/issues/52#issuecomment-1101299092, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJZ673GSDMZHGXFCYQ336ZDVFU27DANCNFSM5TNSMDZQ . You are receiving this because you authored the thread.Message ID: @.***>

-- Sent from my smartphone

Peter Holm

+46-707 620 629

pholm07 commented 2 years ago

I was running the build script under root. Once I changed to run it under a non-root but sudo enabled user the script worked successfully. Maybe that should be pointed out. Sorry to have taken your time. / Peter

aborkar-ibm commented 2 years ago

Good to know that the script worked for you. We do mention using of standard permission user in our General Notes in the build instructions.