Hi Guys, I am trying to build datahub-frontend wit...
# troubleshoot
b
Hi Guys, I am trying to build datahub-frontend with the below command. ./gradlew datahub frontenddist -x yarnTest -x yarnLint Build gets jinxed at a certain point. I could see this error while executing FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory Thank you in advance for your kind suggestions.
b
Hey,
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
do you have enough memory to run this?
b
I have executed the below command node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))' It has given the output 2096. can you tell whether any recommended memory needed to run the frontend?
I have upgraded memory of node to 5gb, but gradle failed to build. The issue as follows. Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating <===========--> 87% EXECUTING [1h 59m 46s] Failed to compile. EIO: i/o error, lstat '/mnt/c/Users/Vinothini/Datahub/sourcecode/datahub/datahub-web-react/node_modules/merge-stream/index.js' error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Task datahub web reactyarnQuickBuild FAILED
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task 'datahub web reactyarnQuickBuild'.
Process 'command '/mnt/c/Users/Vinothini/Datahub/sourcecode/datahub/datahub-web-react/.gradle/yarn/yarn-v1.22.0/bin/yarn'' 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 BUILD FAILED in 2h 4m 51s 81 actionable tasks: 22 executed, 59 up-to-date Thank you in advance for the suggestions on the issue.
b
could you run it with --stacktrace
1h 59m 46s
is really long time
it should run ~30 mins
b
I have run it with --stacktrace. And the result exception is below. Seeking help arroud this. Thank you
b
Facing the same issue. @bulky-electrician-72362 Can you please guide as to how we can resolve this? Thanks in advance.
a
@best-umbrella-88325 the later is different isssue: try`./gradlew clean build`
and build again
b
@bulky-electrician-72362 Thanks for the response. Even for frontend, do we need to issue the ./gradlew clean build command or the other command mentioned in the documentation..
Copy code
./gradlew :datahub-frontend:dist -x yarnTest -x yarnLint
a
looking at your error it seems something is up with the build path