apache / incubator-hugegraph-toolchain

HugeGraph toolchain - include a series useful graph modules
https://hugegraph.apache.org/
Apache License 2.0
82 stars 87 forks source link

[Bug] Hubble image build fails after introduce front-end download proxy #584

Open liuxiaocs7 opened 4 months ago

liuxiaocs7 commented 4 months ago

Bug Type (问题类型)

None

Before submit

Environment (环境信息)

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

https://github.com/hugegraph/actions/actions/runs/8103879676

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

No response

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

No response

dosubot[bot] commented 4 months ago

It seems like you've got this under control, if you want help or have specific questions, let me know what I can do for you!

#### About Dosu This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot.
liuxiaocs7 commented 4 months ago

related: https://github.com/yarnpkg/yarn/issues/4890

The highest voting comment:

image
liuxiaocs7 commented 1 month ago

https://github.com/apache/incubator-hugegraph-toolchain/actions/runs/9116353718/job/25114755444?pr=604

[INFO] --- frontend-maven-plugin:1.14.2:yarn (yarn install) @ hubble-dist ---
[INFO] Running 'yarn install --network-timeout 600000' in /home/runner/work/incubator-hugegraph-toolchain/incubator-hugegraph-toolchain/hugegraph-hubble/hubble-dist/../hubble-fe
[INFO] yarn install v1.22.21
[INFO] [1/4] Resolving packages...
[INFO] [2/4] Fetching packages...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] error Error: getaddrinfo ENOTFOUND registry.nlark.com
[INFO]     at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26)
[INFO] error Error: getaddrinfo ENOTFOUND registry.nlark.cominfo Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...
[INFO] info There appears to be trouble with your network connection. Retrying...

refer: https://stackoverflow.com/questions/39592908/error-getaddrinfo-enotfound-registry-npmjs-org-registry-npmjs-org443

liuxiaocs7 commented 1 month ago

@dosu-bot Please analyze the causes of the above problems and provide solutions

dosubot[bot] commented 1 month ago

The getaddrinfo ENOTFOUND registry.nlark.com error you're encountering during the yarn install process suggests a DNS resolution issue, where the domain registry.nlark.com cannot be found. This could be due to several reasons, including network connectivity issues, incorrect registry configuration, or DNS settings. Here's how to address the problem:

  1. Verify and Update DNS Settings: Ensure your DNS settings are correctly configured. Consider using a public DNS like Google's 8.8.8.8 or Cloudflare's 1.1.1.1.

  2. Check Yarn Registry Configuration: Use yarn config set registry https://registry.npmjs.org/ to set the registry to a known, reliable one. This step ensures Yarn attempts to fetch packages from the correct source.

  3. Clear Yarn Cache: Run yarn cache clean to clear any potentially corrupted cache that might be causing issues.

  4. Review and Update Dependencies: Check your package.json for any dependencies that might be pointing to registry.nlark.com and update them to use a more reliable registry.

  5. Check Network Connectivity: Ensure your internet connection is stable and that registry.nlark.com is not blocked by any firewall or network policy.

  6. Disable Proxy/VPN Temporarily: If you're using a proxy or VPN, disable it temporarily to check if it's causing the DNS resolution issue.

  7. Update Yarn: Ensure you're using the latest version of Yarn by running npm install -g yarn.

If these steps do not resolve the issue, it might be due to a temporary problem with the registry itself, in which case waiting for a resolution or contacting the registry's support might be necessary.

#### Details **Sources** - [hugegraph-hubble/hubble-fe/package.json](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-fe/package.json) - [hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/options/HubbleOptions.java](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/hubble-be/src/main/java/org/apache/hugegraph/options/HubbleOptions.java) - [hugegraph-client/assembly/travis/conf/gremlin-server.yaml](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-client/assembly/travis/conf/gremlin-server.yaml) - [hugegraph-hubble/package.json](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/package.json) - [content/en/docs/changelog/hugegraph-1.3.0-release-notes.md](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/changelog/hugegraph-1.3.0-release-notes.md) - [content/en/docs/changelog/hugegraph-1.2.0-release-notes.md](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/changelog/hugegraph-1.2.0-release-notes.md) - [content/en/docs/quickstart/hugegraph-hubble.md](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/quickstart/hugegraph-hubble.md) - [hugegraph-hubble/Dockerfile](https://github.com/apache/incubator-hugegraph-toolchain/blob/master/hugegraph-hubble/Dockerfile)
**About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.

To continue the conversation, mention @dosu.