TheHive-Project / TheHive-Project/Cortex

Install "Build it Yourself" broken unresolved dependencies path

Open
#378 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.6k
Forks
264
PR merge metrics
No merged PRs in 30d

Description

Request Type

Bug

Work Environment
Question Answer
OS version (server) FreeBSD 12
Cortex version / git hash 4bb3f50bc12fd775549c689c59b0527fff8e2a3e
Package Type From source
Problem Description

Followed the installation instructions, section "Build it Yourself", and when running:

./sbt clean stage

I got the following output and error messages:

$ ./sbt clean stage
[info] Loading settings for project cortex-build from plugins.sbt ...                                  
[info] Loading project definition from /usr/home/cortex/sources/Cortex/project                                                                                                                                                          
[info] Loading settings for project cortex from package.sbt,debian.sbt,build.sbt,docker.sbt,rpm.sbt,version.sbt ...                                                                                                                     [info] Set current project to cortex (in build file:/usr/home/cortex/sources/Cortex/)                                                                                                                                                   [success] Total time: 0 s, completed Jul 12, 2021 11:17:08 AM   
[info] Wrote /usr/home/cortex/sources/Cortex/target/scala-2.12/cortex_2.12-3.1.1-1.pom                                                                                                                                                  
[info] Updating                                                                                                                                                                                                                         [info] Resolved  dependencies                                                                                                                                                                                                           [warn]                                        
[warn]  Note: Unresolved dependencies path:                                                                                                                                                                                             
[error] sbt.librarymanagement.ResolveException: Error downloading org.thehive-project:elastic4play_2.12:1.13.1
[error]   Not found                         
[error]   Not found                                                                                                 
[error]   not found: /home/cortex/.ivy2/local/org.thehive-project/elastic4play_2.12/1.13.1/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://dl.bintray.com/thehive-project/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom (Server re
turned HTTP response code: 403 for URL: https://dl.bintray.com/thehive-project/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom) while downloading https://dl.bintray.com/thehive-project/maven/org/thehi
ve-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   not found: https://artifacts.elastic.co/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom (Server returned
 HTTP response code: 403 for URL: https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom) while downloading https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic
4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.thehive-project/elastic4play_2.12/1.13.1/ivys/ivy.xml
[error]         at lmcoursier.CoursierDependencyResolution.unresolvedWarningOrThrow(CoursierDependencyResolution.scala:246)
[error]         at lmcoursier.CoursierDependencyResolution.$anonfun$update$34(CoursierDependencyResolution.scala:215)
[error]         at scala.util.Either$LeftProjection.map(Either.scala:573)
[error]         at lmcoursier.CoursierDependencyResolution.update(CoursierDependencyResolution.scala:215)
[error]         at sbt.librarymanagement.DependencyResolution.update(DependencyResolution.scala:60)
[error]         at sbt.internal.LibraryManagement$.resolve$1(LibraryManagement.scala:52)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$12(LibraryManagement.scala:102)
[error]         at sbt.util.Tracked$.$anonfun$lastOutput$1(Tracked.scala:69)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$20(LibraryManagement.scala:115)
[error]         at scala.util.control.Exception$Catch.apply(Exception.scala:228)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11(LibraryManagement.scala:115)
[error]         at sbt.internal.LibraryManagement$.$anonfun$cachedUpdate$11$adapted(LibraryManagement.scala:96)
[error]         at sbt.util.Tracked$.$anonfun$inputChanged$1(Tracked.scala:150)
[error]         at sbt.internal.LibraryManagement$.cachedUpdate(LibraryManagement.scala:129)
[error]         at sbt.Classpaths$.$anonfun$updateTask0$5(Defaults.scala:2947)
[error]         at scala.Function1.$anonfun$compose$1(Function1.scala:49)
[error]         at sbt.internal.util.$tilde$greater.$anonfun$$u2219$1(TypeFunctions.scala:62)
[error]         at sbt.std.Transform$$anon$4.work(Transform.scala:67)
[error]         at sbt.Execute.$anonfun$submit$2(Execute.scala:281)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.scala:19)
[error]         at sbt.Execute.work(Execute.scala:290)
[error]         at sbt.Execute.$anonfun$submit$1(Execute.scala:281)
[error]         at sbt.ConcurrentRestrictions$$anon$4.$anonfun$submitValid$1(ConcurrentRestrictions.scala:178)
[error]         at sbt.CompletionService$$anon$2.call(CompletionService.scala:37)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[error]         at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[error]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[error]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[error]         at java.lang.Thread.run(Thread.java:748)
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.thehive-project:elastic4play_2.12:1.13.1
[error] (update) sbt.librarymanagement.ResolveException: Error downloading org.thehive-project:elastic4play_2.12:1.13.1
[error]   Not found
[error]   Not found
[error]   not found: /home/cortex/.ivy2/local/org.thehive-project/elastic4play_2.12/1.13.1/ivys/ivy.xml
[error]   not found: https://repo1.maven.org/maven2/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://dl.bintray.com/thehive-project/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom (Server re
turned HTTP response code: 403 for URL: https://dl.bintray.com/thehive-project/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom) while downloading https://dl.bintray.com/thehive-project/maven/org/thehi
ve-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   not found: https://artifacts.elastic.co/maven/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   download error: Caught java.io.IOException: Server returned HTTP response code: 403 for URL: https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom (Server returned
 HTTP response code: 403 for URL: https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom) while downloading https://dl.bintray.com/scalaz/releases/org/thehive-project/elastic
4play_2.12/1.13.1/elastic4play_2.12-1.13.1.pom
[error]   not found: https://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/org.thehive-project/elastic4play_2.12/1.13.1/ivys/ivy.xml
[error] Total time: 20 s, completed Jul 12, 2021 11:17:28 AM

I'm not familiar with Cortex sources or how dependencies are handled, but it looks to me as if some dependency cannot be fetched from the expected public URL?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by inspecting the dependency and repository settings referenced by package.sbt, build.sbt, and plugins.sbt, then reproduce the failure with ./sbt clean stage. Trace resolution of org.thehive-project:elastic4play_2.12:1.13.1 and verify which configured repository is expected to provide it. Done means the documented source build resolves dependencies and completes staging.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.