Getting this error when running `docker-compose -f...
# troubleshoot
b
Getting this error when running
docker-compose -f docker-compose.dev.yml up
view error log in thread šŸ™
Copy code
INFO:
      ########### EXT COMPILER OPTIMIZATION ###########
      INFO: Platform      :
        Architecture: aarch64
        Compiler    : clang
      
      CPU baseline  :
        Requested   : 'min'
        Enabled     : none
        Flags       : none
        Extra checks: none
      
      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : none
        Generated   : none
      INFO: CCompilerOpt.cache_flush[817] : write cache to path -> /private/var/folders/ly/hvy7j1y530sgvwgxlvnylfp80000gn/T/pip-install-xsepp6c3/numpy_943ecabf411646f5b3a18bf4af89ce4b/build/temp.macosx-10.14-arm64-3.8/ccompiler_opt_cache_ext.py
      INFO:
      ########### CLIB COMPILER OPTIMIZATION ###########
      INFO: Platform      :
        Architecture: aarch64
        Compiler    : clang
      
      CPU baseline  :
        Requested   : 'min'
        Enabled     : none
        Flags       : none
        Extra checks: none
      
      CPU dispatch  :
        Requested   : 'max -xop -fma4'
        Enabled     : none
        Generated   : none
      INFO: CCompilerOpt.cache_flush[817] : write cache to path -> /private/var/folders/ly/hvy7j1y530sgvwgxlvnylfp80000gn/T/pip-install-xsepp6c3/numpy_943ecabf411646f5b3a18bf4af89ce4b/build/temp.macosx-10.14-arm64-3.8/ccompiler_opt_cache_clib.py
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

Ɨ Encountered error while trying to install package.
╰─> numpy

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

> Task :metadata-ingestion:runPreFlightScript FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':metadata-ingestion:runPreFlightScript'.
> Process 'command 'scripts/datahub_preflight.sh'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings>
This is on an M1 Mac btw
e
could you use docker/dev.sh or copy the docker-compose command in it? You need more than just docker-compose.dev.yml to bring up datahub
b
k I'll try that
thanks
Will this allow me to make edits to datahub-web-react and see my changes?
@early-lamp-41924 got this error when running
docker/dev-without-neo4j.sh
Copy code
Creating datahub-frontend-react    ... error

ERROR: for datahub-frontend-react  Cannot start service datahub-frontend-react: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "datahub-frontend/bin/playBinary": stat datahub-frontend/bin/playBinary: no such file or directory: unknown

ERROR: for datahub-frontend-react  Cannot start service datahub-frontend-react: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "datahub-frontend/bin/playBinary": stat datahub-frontend/bin/playBinary: no such file or directory: unknown
ERROR: Encountered errors while bringing up the project.
e
Yes. So for dev deploys, you need to have build artifacts locally
which means you need to run ./gradlew datahub frontendbuild
and ./gradlew metadata servicewar:build
before running the above command!
b
k
So I would need to build the frontend every time I make a change and re-run the sh script?
@early-lamp-41924 error from
./gradlew :datahub-frontend:build
Copy code
The build folder is ready to be deployed.

Find out more about deployment here:

  <https://cra.link/deployment>

Done in 51.75s.

> Task :datahub-web-react:distZip
> Task :datahub-frontend:unzipAssets
> Task :datahub-frontend:moveAssets NO-SOURCE
> Task :datahub-frontend:createPlayBinaryAssetsJar
> Task :datahub-frontend:createPlayBinaryDistributionJar
> Task :datahub-frontend:createPlayBinaryDistributionJar FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':datahub-frontend:createPlayBinaryDistributionJar'.
> Could not copy MANIFEST.MF to '/Users/benmarte/Documents/github/raft/df-datahub/datahub-frontend/build/tmp/createPlayBinaryDistributionJar/MANIFEST.MF'.
   > Could not resolve all files for configuration ':datahub-frontend:playRun'.
      > Could not download play-guice_2.11.jar (com.typesafe.play:play-guice_2.11:2.6.18)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/play/play-guice_2.11/2.6.18/play-guice_2.11-2.6.18.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/play/play-guice_2.11/2.6.18/play-guice_2.11-2.6.18.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download play-docs_2.11.jar (com.typesafe.play:play-docs_2.11:2.6.18)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/play/play-docs_2.11/2.6.18/play-docs_2.11-2.6.18.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/play/play-docs_2.11/2.6.18/play-docs_2.11-2.6.18.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download play-akka-http-server_2.11.jar (com.typesafe.play:play-akka-http-server_2.11:2.6.18)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/play/play-akka-http-server_2.11/2.6.18/play-akka-http-server_2.11-2.6.18.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/play/play-akka-http-server_2.11/2.6.18/play-akka-http-server_2.11-2.6.18.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download play-server_2.11.jar (com.typesafe.play:play-server_2.11:2.6.18)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/play/play-server_2.11/2.6.18/play-server_2.11-2.6.18.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/play/play-server_2.11/2.6.18/play-server_2.11-2.6.18.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download akka-http-core_2.11.jar (com.typesafe.akka:akka-http-core_2.11:10.0.13)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/akka/akka-http-core_2.11/10.0.13/akka-http-core_2.11-10.0.13.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/akka/akka-http-core_2.11/10.0.13/akka-http-core_2.11-10.0.13.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download akka-parsing_2.11.jar (com.typesafe.akka:akka-parsing_2.11:10.0.13)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/akka/akka-parsing_2.11/10.0.13/akka-parsing_2.11-10.0.13.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/akka/akka-parsing_2.11/10.0.13/akka-parsing_2.11-10.0.13.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download guice-assistedinject.jar (com.google.inject.extensions:guice-assistedinject:4.1.0)
         > Could not get resource '<https://plugins.gradle.org/m2/com/google/inject/extensions/guice-assistedinject/4.1.0/guice-assistedinject-4.1.0.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/google/inject/extensions/guice-assistedinject/4.1.0/guice-assistedinject-4.1.0.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download play-doc_2.11.jar (com.typesafe.play:play-doc_2.11:1.8.1)
         > Could not get resource '<https://plugins.gradle.org/m2/com/typesafe/play/play-doc_2.11/1.8.1/play-doc_2.11-1.8.1.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/com/typesafe/play/play-doc_2.11/1.8.1/play-doc_2.11-1.8.1.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download parboiled-java.jar (org.parboiled:parboiled-java:1.1.7)
         > Could not get resource '<https://plugins.gradle.org/m2/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/org/parboiled/parboiled-java/1.1.7/parboiled-java-1.1.7.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download asm-analysis.jar (org.ow2.asm:asm-analysis:5.0.3)
         > Could not get resource '<https://plugins.gradle.org/m2/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/org/ow2/asm/asm-analysis/5.0.3/asm-analysis-5.0.3.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download asm-util.jar (org.ow2.asm:asm-util:5.0.3)
         > Could not get resource '<https://plugins.gradle.org/m2/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/org/ow2/asm/asm-util/5.0.3/asm-util-5.0.3.jar>'. Received status code 522 from server: Origin Connection Time-out
      > Could not download asm-tree.jar (org.ow2.asm:asm-tree:5.0.3)
         > Could not get resource '<https://plugins.gradle.org/m2/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar>'.
            > Could not GET '<https://plugins.gradle.org/m2/org/ow2/asm/asm-tree/5.0.3/asm-tree-5.0.3.jar>'. Received status code 522 from server: Origin Connection Time-out

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at <https://help.gradle.org>

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See <https://docs.gradle.org/5.6.4/userguide/command_line_interface.html#sec:command_line_warnings>

BUILD FAILED in 4m 3s
111 actionable tasks: 34 executed, 77 up-to-date
I get this error on my windows computer when trying to run the same commands:
Copy code
ERROR: for datahub-frontend-react  Cannot start service datahub-frontend-react: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "datahub-frontend/bin/playBinary": stat datahub-frontend/bin/playBinary: no such file or directory: unknown

ERROR: for datahub-frontend-react  Cannot start service datahub-frontend-react: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "datahub-frontend/bin/playBinary": stat datahub-frontend/bin/playBinary: no such file or directory: unknown
ERROR: Encountered errors while bringing up the project.
e
Are there any connectivity issues with gradle?
Seems like it is failing to download dependencies
That last one should go away after building as mentioned above