Hello, trying to rebuild `datahub-frontend-react` ...
# all-things-deployment
v
Hello, trying to rebuild
datahub-frontend-react
getting:
Copy code
=> [base 2/3] RUN addgroup -S datahub && adduser -S datahub -G datahub                                                                                               2.5s
 => [base 3/3] RUN apk --no-cache --update-cache --available upgrade     && apk --no-cache add curl openjdk8-jre                                                     35.7s
 => [prod-build 2/4] RUN apk --no-cache --update-cache --available upgrade     && apk --no-cache add perl openjdk8                                                   12.2s
 => [prod-build 3/4] COPY . datahub-src                                                                                                                              36.7s
 => ERROR [prod-build 4/4] RUN cd datahub-src     && ./gradlew :datahub-web-react:build -x test -x yarnTest -x yarnLint     && ./gradlew :datahub-frontend:dist -P  145.2s
------
 > [prod-build 4/4] RUN cd datahub-src     && ./gradlew :datahub-web-react:build -x test -x yarnTest -x yarnLint     && ./gradlew :datahub-frontend:dist -PenableEmber=false -PuseSystemNode=true -x test -x yarnTest -x yarnLint     && cp datahub-frontend/build/distributions/datahub-frontend.zip ../datahub-frontend.zip     && cd .. && rm -rf datahub-src && unzip datahub-frontend.zip:
#12 0.753 Downloading <https://services.gradle.org/distributions/gradle-6.9.2-bin.zip>
#12 1.874 ......................................................................................................
#12 7.578
#12 7.578 Welcome to Gradle 6.9.2!
...
#12 105.4 > Configure project :smoke-test
#12 105.4 Root directory:  /datahub-src
#12 140.3
#12 140.3 > Task :datahub-web-react:distTar NO-SOURCE
#12 142.2 > Task :datahub-web-react:nodeSetup FAILED
#12 142.2
#12 142.2 FAILURE: Build failed with an exception.
#12 142.2 * What went wrong:
#12 142.2 Execution failed for task ':datahub-web-react:nodeSetup'.
#12 142.2 > Could not resolve all files for configuration ':datahub-web-react:detachedConfiguration1'.
#12 142.2    > Could not find org.nodejs:node:16.8.0.
#12 142.2      Searched in the following locations:
#12 142.2        - <https://plugins.gradle.org/m2/org/nodejs/node/16.8.0/node-16.8.0.pom>
#12 142.2        - file:/root/.m2/repository/org/nodejs/node/16.8.0/node-16.8.0.pom
#12 142.2        - <https://repo.maven.apache.org/maven2/org/nodejs/node/16.8.0/node-16.8.0.pom>
#12 142.2        - <https://packages.confluent.io/maven/org/nodejs/node/16.8.0/node-16.8.0.pom>
#12 142.2        - <https://linkedin.jfrog.io/artifactory/open-source/org/nodejs/node/16.8.0/node-16.8.0.pom>
#12 142.2        - <https://nodejs.org/dist/v16.8.0/node-v16.8.0-linux-aarch64.tar.gz>
#12 142.2      Required by:
#12 142.2          project :datahub-web-react
Is that version of nodejs no longer available? If so where should I change it? Thanks!
l
@bulky-soccer-26729 ^
b
hey Greg! how are you rebuilding datahub-frontend-react? also are you per chance on an M1 macbook?
v
Yes, exactly, M1!
b
okay gotcha makes sense! what command are you running to restart?
v
Copy code
docker-compose -f docker-compose-without-neo4j-m1.quickstart.yml up -d
There are also problems resolving
com.linkedin.pegasus:gradle-plugins
ext.pegasusVersion = '27.7.18' seels like obsolete, probably gradle settings should be updated.
h
I'm having the same issue, and yes I'm also using an M1
v
@helpful-london-56362 As a workaround try to upgrade versions in
build.gradle