Hi everyone! I have been running into an issue. I...
# troubleshoot
c
Hi everyone! I have been running into an issue. I was able to successfully run a local Front-End Datahub version on my Linux system a few days ago, but now I am back at square one 😞 I was able to successfully build several components, but one of the last steps in the local development guide is not working for me. System: NAME=“Fedora Linux” VERSION=“36 (Server Edition)” ID=fedora VERSION_ID=36 following the following guide: https://datahubproject.io/docs/developers Here is a list of what was built successfully: 1. I removed my entire datahub directory and pulled again: git clone https://github.com/jgdallas/datahub.git 2. ./gradlew --version ------------------------------------------------------------ Gradle 6.9.2 ------------------------------------------------------------ 3. ./gradlew clean BUILD SUCCESSFUL in 31s 4. ./gradlew build Many tests ran, some skipped, I did see this for the datahub-web-react: yarnInstall
Copy code
> Task :datahub-web-react:yarnInstall
info fsevents@2.3.2: The platform "linux" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info fsevents@1.2.13: The platform "linux" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning " > @cypress/webpack-preprocessor@5.8.0" has unmet peer dependency "@babel/core@^7.0.1".
....
Removing for brevity here :-)
....
I am also uploading the final results of the build When I attempt the following I keep hitting this error: in the datahub directory…
Copy code
./gradlew quickstart
FAILURE: Build failed with an exception. * What went wrong: Task ‘quickstart’ not found in root project ‘datahub’.
a
Hi @cuddly-butcher-39945, just to confirm- you rebuilt after the fresh pull?
and you are running the quickstart command from the parent directory?
@echoing-airport-49548 might be able to help you here
c
Hey @astonishing-answer-96712, I was actually unable to build after a fresh pull. I am running a ./gradlew check command right now, but I have still not been able to get ./gradlew quickstart to run. I am running everything from the root datahub folder. I keep seeing this:
Copy code
> Configure project :smoke-test
Root directory:  /home/jgarza/Development/datahub

FAILURE: Build failed with an exception.

* What went wrong:
Task 'quickstart' not found in root project 'datahub'.
I also ran a ./gradlew tasks command and did not see quickstart (not sure if this is supposed to be present).
Copy code
Build tasks
-----------
assemble - Assembles the outputs of this project.
bootBuildImage - Builds an OCI image of the application using the output of the bootJar task
bootJar - Assembles an executable jar archive containing the main classes and their dependencies.
bootJarMainClassName - Resolves the name of the application's main class for the bootJar task.
bootRunMainClassName - Resolves the name of the application's main class for the bootRun task.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
classes - Assembles main classes.
clean - Deletes the build directory.
generateGitProperties - Generate a git.properties file.
generateSwaggerCode - Generates a source code from the OpenAPI specification.
integTestClasses - Assembles integ test classes.
integTestGeneratedDataTemplateClasses - Assembles integ test generated data template classes.
jar - Assembles a jar archive containing the main classes.
javadocJar - Assembles a jar archive containing the main javadoc.
mainGeneratedDataTemplateClasses - Assembles main generated data template classes.
mainGeneratedRestClasses - Assembles main generated rest classes.
sourcesJar - Assembles a jar archive containing the main sources.
testClasses - Assembles test classes.
testGeneratedDataTemplateClasses - Assembles test generated data template classes.
war - Generates a war archive with all the compiled classes, the web-app content and the libraries.
…And I am also seeing this error: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘metadata ingestioninstallDev’.
Process ’command ‘bash’' 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 7.0. Use ‘--warning-mode all’ to show the individual deprecation warnings. See https://docs.gradle.org/6.9.2/userguide/command_line_interface.html#sec:command_line_warnings @echoing-airport-49548 , I am also available for a screen share whenever you have time. THanks!!!
a
that’s extremely odd- is there any chance it could have been deleted during another operation? I saw you used “clean”- have you run other stuff in that dir?
c
nothing else to explicitly delete anything from that directory: Here is a directory listing:
Copy code
/home/jgarza/Development/datahub
[jgarza@fedora datahub]$ ll
total 132
drwxr-xr-x.  3 jgarza jgarza   135 Mar 19 12:24 ..
drwxr-xr-x.  5 jgarza jgarza    92 Mar 19 12:24 .github
drwxr-xr-x.  4 jgarza jgarza    70 Mar 19 12:24 contrib
drwxr-xr-x.  2 jgarza jgarza    23 Mar 19 12:24 datahub-kubernetes
drwxr-xr-x. 30 jgarza jgarza  4096 Mar 19 12:24 docker
drwxr-xr-x. 20 jgarza jgarza  4096 Mar 19 12:24 docs
drwxr-xr-x.  5 jgarza jgarza    51 Mar 19 12:24 gradle
drwxr-xr-x.  3 jgarza jgarza    28 Mar 19 12:24 metadata-dao-impl
drwxr-xr-x.  6 jgarza jgarza    95 Mar 19 12:24 metadata-events
drwxr-xr-x.  3 jgarza jgarza    28 Mar 19 12:24 metadata-ingestion-modules
drwxr-xr-x.  3 jgarza jgarza    18 Mar 19 12:24 metadata-integration
drwxr-xr-x.  7 jgarza jgarza   130 Mar 19 12:24 metadata-jobs
drwxr-xr-x. 15 jgarza jgarza  4096 Mar 19 12:24 metadata-service
drwxr-xr-x.  4 jgarza jgarza   119 Mar 19 12:24 perf-test
drwxr-xr-x. 35 jgarza jgarza  4096 Mar 19 12:35 .
drwxr-xr-x.  5 jgarza jgarza    65 Mar 19 12:35 buildSrc
drwxr-xr-x.  6 jgarza jgarza    75 Mar 19 12:35 .gradle
drwxr-xr-x.  5 jgarza jgarza  4096 Mar 19 19:38 smoke-test
drwxr-xr-x.  7 jgarza jgarza  4096 Mar 20 10:16 docs-website
drwxr-xr-x. 12 jgarza jgarza  4096 Mar 20 10:22 metadata-ingestion
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 10:22 li-utils
drwxr-xr-x.  5 jgarza jgarza    62 Mar 20 10:37 metadata-models
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 10:37 metadata-utils
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 10:37 metadata-models-validator
drwxr-xr-x.  9 jgarza jgarza   146 Mar 20 10:37 datahub-frontend
drwxr-xr-x.  9 jgarza jgarza  4096 Mar 20 13:32 datahub-web-react
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 13:46 test-models
drwxr-xr-x.  6 jgarza jgarza    97 Mar 20 13:46 datahub-ranger-plugin
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 13:46 ingestion-scheduler
drwxr-xr-x.  4 jgarza jgarza    50 Mar 20 13:46 datahub-upgrade
drwxr-xr-x.  6 jgarza jgarza    98 Mar 20 13:46 metadata-models-custom
drwxr-xr-x.  4 jgarza jgarza    67 Mar 20 13:46 datahub-graphql-core
drwxr-xr-x.  5 jgarza jgarza    75 Mar 20 13:47 entity-registry
drwxr-xr-x.  5 jgarza jgarza   117 Mar 20 13:51 metadata-io
drwxr-xr-x.  8 jgarza jgarza   163 Mar 20 14:00 .git
-rw-r--r--.  1 jgarza jgarza   132 Mar 19 12:24 .gitattributes
-rw-r--r--.  1 jgarza jgarza   312 Mar 19 12:24 .dockerignore
-rw-r--r--.  1 jgarza jgarza 11365 Mar 19 12:24 LICENSE
-rw-r--r--.  1 jgarza jgarza  1107 Mar 19 12:24 .gitignore
-rw-r--r--.  1 jgarza jgarza    46 Mar 19 12:24 CODEOWNERS
-rw-r--r--.  1 jgarza jgarza 10304 Mar 19 12:24 README.md
-rw-r--r--.  1 jgarza jgarza 15205 Mar 19 12:24 NOTICE
-rw-r--r--.  1 jgarza jgarza 12338 Mar 19 12:24 build.gradle
-rw-r--r--.  1 jgarza jgarza   533 Mar 19 12:24 gradle.properties
-rwxr-xr-x.  1 jgarza jgarza  5960 Mar 19 12:24 gradlew
-rw-r--r--.  1 jgarza jgarza  2942 Mar 19 12:24 gradlew.bat
-rw-r--r--.  1 jgarza jgarza    70 Mar 19 12:24 lombok.config
-rw-r--r--.  1 jgarza jgarza  1752 Mar 19 12:24 settings.gradle
-rw-r--r--.  1 jgarza jgarza   429 Mar 19 12:24 repositories.gradle
e
Hey @cuddly-butcher-39945 can you tell me what you’re trying to accomplish? Truth be told, I don’t often run the
./gradlew build
command. How were you deploying DataHub locally before you started running into this issue?
c
Hey @echoing-airport-49548 I am trying to run a local version of datahub-web-react so I can test out some user interface changes. Basically I am trying to add an entity card and a button to link to a Jira issue collector.
So, I would like to be able to see those UI changes take effect, then re-build the Docker Image, push to my ECR instance on AWS and pull down as part of a deployment.
e
Got it
If you’re just trying to change the frontend, I would run the following commands
./gradlew datahub-web-react:build -x test -x yarnTest -x lint -x yarnLint -x testQuick
and
./gradlew datahub-frontend:dist -x test -x yarnTest -x lint -x yarnLint -x testQuick
is that what you’ve been doing?
c
Let me try that. Thanks!
But, wouldn’t I need the GMS available so I can login?
Thanks @echoing-airport-49548, both of those scripts worked. I know it’s late, I will follow up on the #office-hours tomorrow to figure out what else I need to do to see the UI. This is what I see, but I’m still not sure what to do next. The project was built assuming it is hosted at /assets/. You can control this with the homepage field in your package.json. The build folder is ready to be deployed.