che icon indicating copy to clipboard operation
che copied to clipboard

Error building che-theia

Open yujiri8 opened this issue 2 years ago • 5 comments

Summary

I am having mysterious build errors building che-theia (which I am trying to do in order to investigate if I can add plugins that way, see #21566). The problem occurs during the yarn install step (I have tried either running build.sh or just running yarn directly, same result). I will attach logs.

Relevant information

stdout.txt stderr.txt

OS: Fedora 36 in QEMU npm: 8.3.1 node: 16.14.0 che-theia repository version: main branch (commit 2975fe868e9589bbd353d878de2fb34d36a013b4)

yujiri8 avatar Jul 20 '22 06:07 yujiri8

you may try

$ SKIP_TEST=true yarn install

benoitf avatar Jul 20 '22 08:07 benoitf

Well, skipping the tests did suppress that error. I'm now getting an error about unsupported digital envelope routines. This is an error I previous saw with some other JS projects, and managed to fix by downgrading to node 14, but this time either version of node gives the same error. This is unlikely to have anything to do with che, but I'll paste it anyway

ghost avatar Jul 20 '22 17:07 ghost

Oops, uploaded the wrong file. Here are the real ones stdout.txt stderr.txt

ghost avatar Jul 20 '22 17:07 ghost

It seems this is some Webpack issue. @yujiri8 Can you try the following workaround: export NODE_OPTIONS=--openssl-legacy-provider See https://github.com/webpack/webpack/issues/14532#issuecomment-947012063

azatsarynnyy avatar Jul 26 '22 20:07 azatsarynnyy

Oh yeah, I found that thread and tried that option, but the result is that node immediately exits with /usr/bin/node: --openssl-legacy-provider is not allowed in NODE_OPTIONS

ghost avatar Jul 26 '22 22:07 ghost

I have pulled the latest changes and still cannot build it with the same issue.

ghost avatar Aug 14 '22 08:08 ghost

Hello @yujiri8 I can't reproduce the mentioned problem by building it locally. The build is green on the CI https://github.com/eclipse-che/che-theia/actions/workflows/next-build.yml as well.

I'm thinking if that problem can be platform-specific... Some time ago, I had a problem related to digital envelope routines. It turned out it was reproducible on a machine with FIPS enabled.

azatsarynnyy avatar Aug 17 '22 15:08 azatsarynnyy

I suspect it's fedora specific, because I remember reading some other discussion about this error message where a solution was proposed but it didn't seem to work for people on fedora. I suppose this should be closed as it's unlikely that this issue is really che's fault.

ghost avatar Aug 18 '22 00:08 ghost