Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] HG hubble build fail #513

Closed
1 task done
haohao0103 opened this issue Aug 25, 2023 · 1 comment · Fixed by #543
Closed
1 task done

[Bug] HG hubble build fail #513

haohao0103 opened this issue Aug 25, 2023 · 1 comment · Fixed by #543
Labels
bug Something isn't working dependencies Pull requests that update a dependency file duplicate This issue or pull request already exists hubble hugegraph-hubble

Comments

@haohao0103
Copy link
Contributor

Bug Type (问题类型)

exception / error (异常报错)

Before submit

  • I had searched in the issues and found no similar issues.

Environment (环境信息)

  • Server Version: v1.0.0
  • Toolchain Version: v1.0.0

Expected & Actual behavior (期望与实际表现)

build cmd:
mvn clean package

error msg:
main:
[exec] Current OS is Mac OS X
[exec] Executing 'bash' with arguments:
[exec] './dist.sh'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'bash' with arguments:
'./dist.sh'

The ' characters around the executable and arguments are
not part of the command.
[exec] yarn install v1.22.19
[exec] [1/4] Resolving packages...
[exec] success Already up-to-date.
[exec] Done in 0.58s.
[exec] yarn run v1.22.19
[exec] $ react-app-rewired build && npm run license
[exec] The following changes are being made to your tsconfig.json file:
[exec] - compilerOptions.paths must not be set (aliased imports are not supported)
[exec]
[exec] Creating an optimized production build...
[exec] [webpack.Progress] 0% compiling
[exec] [webpack.Progress] 10% building 0/0 modules 0 active
[exec] [webpack.Progress] 10% building 0/1 modules 1 active multi /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/src/index.tsx
[exec] [webpack.Progress] 10% building 1/1 modules 0 active
[exec] Error: error:0308010C:digital envelope routines::unsupported
[exec] at new Hash (node:internal/crypto/hash:69:19)
[exec] at Object.createHash (node:crypto:138:10)
[exec] at module.exports (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/util/createHash.js:135:53)
[exec] at NormalModule._initBuildHash (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:417:16)
[exec] at handleParseError (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:471:10)
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:503:5
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:358:12
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:373:3
[exec] at iterateNormalLoaders (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:214:10)
[exec] at iterateNormalLoaders (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:221:10)
[exec] [webpack.Progress] 10% building 1/2 modules 1 active /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/react-scripts/node_modules/babel-loader/lib/index.js??ref--6-oneOf-1!/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/eslint-loader/dist/cjs.js??ref--5-0!/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/src/index.tsx
[exec] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[exec] /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/react-scripts/scripts/build.js:19
[exec] throw err;
[exec] ^
[exec]
[exec] Error: error:0308010C:digital envelope routines::unsupported
[exec] at new Hash (node:internal/crypto/hash:69:19)
[exec] at Object.createHash (node:crypto:138:10)
[exec] at module.exports (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/util/createHash.js:135:53)
[exec] at NormalModule._initBuildHash (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:417:16)
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:452:10
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/webpack/lib/NormalModule.js:323:13
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:367:11
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:233:18
[exec] at context.callback (/xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/loader-runner/lib/LoaderRunner.js:111:13)
[exec] at /xxx/xx//hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-fe/node_modules/react-scripts/node_modules/babel-loader/lib/index.js:59:103 {
[exec] opensslErrorStack: [ 'error:03000086:digital envelope routines::initialization error' ],
[exec] library: 'digital envelope routines',
[exec] reason: 'unsupported',
[exec] code: 'ERR_OSSL_EVP_UNSUPPORTED'
[exec] }
[exec]
[exec] Node.js v20.5.1
[exec] error Command failed with exit code 1.

I have asked gpt:
image

I modified it according to gpt's suggestions, and now it can work. Because I am not very good at the front end, please help to confirm whether there is a better plan or suggestion

Vertex/Edge example (问题点 / 边数据举例)

null

Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)

No response

@haohao0103 haohao0103 added the bug Something isn't working label Aug 25, 2023
@imbajin
Copy link
Member

imbajin commented Aug 25, 2023

@haohao0103 seems downgrade node version or specify param is useful, refer #391, but we should do them in script?

@liuxiaocs7 , we could refer this PR apache/incubator-hugegraph#2277 to check/install proper yarn env & avoid hard code dist.sh in maven pom?

@imbajin imbajin added duplicate This issue or pull request already exists dependencies Pull requests that update a dependency file hubble hugegraph-hubble labels Aug 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file duplicate This issue or pull request already exists hubble hugegraph-hubble
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants