Hi All, I was trying to build the datahub frontend...
# troubleshoot
a
Hi All, I was trying to build the datahub frontend but getting failure message as below. ./gradlew datahub frontenddist Configuration on demand is an incubating feature. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'datahub'.
Could not resolve all artifacts for configuration ':classpath'.
> Could not resolve com.linkedin.pegasusgradle plugins29.22.16. Required by: project : > Could not resolve com.linkedin.pegasusgradle plugins29.22.16. > Could not get resource 'https://packages.confluent.io/maven/com/linkedin/pegasus/gradle-plugins/29.22.16/gradle-plugins-29.22.16.pom'. > Could not GET 'https://packages.confluent.io/maven/com/linkedin/pegasus/gradle-plugins/29.22.16/gradle-plugins-29.22.16.pom'. > Connection reset > Could not resolve com.linkedin.pegasusgradle plugins29.22.16. > Could not get resource 'https://linkedin.jfrog.io/artifactory/open-source/com/linkedin/pegasus/gradle-plugins/29.22.16/gradle-plugins-29.22.16.pom'. > Could not GET 'https://linkedin.jfrog.io/artifactory/open-source/com/linkedin/pegasus/gradle-plugins/29.22.16/gradle-plugins-29.22.16.pom'. > Connection reset
📖 1
🔍 1
✅ 1
l
Hey there 👋 I'm The DataHub Community Support bot. I'm here to help make sure the community can best support you with your request. Let's double check a few things first: ✅ There's a lot of good information on our docs site: www.datahubproject.io/docs, Have you searched there for a solution? ✅ button ✅ It's not uncommon that someone has run into your exact problem before in the community. Have you searched Slack for similar issues? ✅ button Did you find a solution to your issue? ❌ Sorry you weren't able to find a solution. I'm sending you some tips on info you can provide to help the community troubleshoot. Whenever you feel your issue is solved, please react ✅ to your original message to let us know!
m
Check your firewall or proxy. Doesn't look like you have connection to different repos
a
Hi @modern-artist-55754 , thanks for looking into this . I had checked the FW and it looks good . I am able to connect to 'https://packages.confluent.io/' and 'https://linkedin.jfrog.io/' from server. Is there any other connectivity that I need to check . It would be helpful if you can help to pinpoint the issue. Appreciate your help and support.
m
Your terminal might have a different proxy setting. It is best to talk to your corporate IT
a
We do not have any proxy in our side . It would be good if anyone can let me know what all connectivity needs to be checked so that we can debug further.
a
@dazzling-yak-93039 might have some insight here
a
Sometimes temporary downtimes of those resources happen, are you still seeing the issue?
a
Hi @dazzling-yak-93039, yes, we are still facing this issue.
e
Hi, I came across a similar issue, because we are not allowed to visit outside website on jenkins servers. Can I specify an internal artifactory? I add a maven repo in /repositories.gradle, it seems not working.
a
HI @echoing-alligator-27984, Did you mean after adding the repo , it still did not work ?
m
Where did you run gradle build? In the same computer that you can access maven repo from web browser? This is network issue from your computer not datahub specific problem, talk to your network admin
e
@adorable-megabyte-63781 Thanks for reply, I tried again, actually it works, but it still download jdk from github, not from internal repo.
Copy code
* What went wrong:
A problem occurred evaluating project ':metadata-service:restli-servlet-impl'.
> Could not resolve all dependencies for configuration ':metadata-service:restli-servlet-impl:dataModel'.
   > Failed to calculate the value of task ':metadata-service:restli-servlet-impl:compileJava' property 'javaCompiler'.
      > Unable to download toolchain matching these requirements: {languageVersion=11, vendor=any, implementation=vendor-specific}
         > Could not GET 'https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.19+7/OpenJDK11U-jdk_x64_linux_hotspot_11.0.19_7.tar.gz'.
            > Connection reset
Can I make it download jdk from internal repo?
@modern-artist-55754 I run it on the jenkins server of my company, it is not allowed to visit outside network on the server, so I cannot download jdk from github.
a
Also it there a way to download the repo locally and refer it while building the gradle build ?
e
@adorable-megabyte-63781 @modern-artist-55754 I configured an internal maven repo, and some dependencies are downloaded from it, but the JDK still download from github, which is forbidden, so I don't know if it is specified specially.
a
@echoing-alligator-27984, can you please share the configuration so that I can try from my side as well.
m
@echoing-alligator-27984 there might be something in https://docs.gradle.org/current/userguide/toolchains.html
My gradle knowledge is not that great. But your problem is related to auto-download and auto-detect in the javaToolsChain
e
I just added a maven repo in repositories.gradle, thanks @modern-artist-55754
a
I think there were some issue with resource https://packages.confluent.io/maven/com/linkedin/pegasus/gradle-plugins/29.22.16/gradle-plugins-29.22.16.pom because when I was trying to browse the path I could not found pegasus directory itself . If anyone found any solution then please let me know so that I can give a try with that .