-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed) #39
Comments
I don't see how this could be an issue of the Docker image. Have you inspected the container after it died? Especially the
|
@jangrewe |
@jangrewe |
So that's not the container dying, as it's always still |
Did you try, as instructed by Gradle:
|
I see, your |
Following the advice for this post fixed the issue for me: https://stackoverflow.com/a/47027943 Sounds like Gradle needs more memory than Docker is willing to give it. |
@oliverspryn how would one increase the allowed memory when I'm using this in gitlab ci? is there any menu options? or any other way? |
As @mj-daft mentioned, the non-ascii GITLAB_USER_NAME may cause this issue. After add "export GITLAB_USER_NAME=GHOST" in before_script, i workaround this issue
|
add unicode support to docker image may fix this issue |
Running the gradle commands with --no-daemon solved this issue for me. Example: |
I'm facing this issue and none of the above works for me. Anyone that can assist, please?
Don't know what else to try * Exception is:
org.gradle.launcher.daemon.client.DaemonDisappearedException: Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
at org.gradle.launcher.daemon.client.DaemonClient.handleDaemonDisappearance(DaemonClient.java:242)
at org.gradle.launcher.daemon.client.DaemonClient.monitorBuild(DaemonClient.java:218)
at org.gradle.launcher.daemon.client.DaemonClient.executeBuild(DaemonClient.java:179)
at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:54)
at org.gradle.launcher.daemon.client.SingleUseDaemonClient.execute(SingleUseDaemonClient.java:37)
at org.gradle.launcher.cli.RunBuildAction.run(RunBuildAction.java:52)
at org.gradle.internal.Actions$RunnableActionAdapter.execute(Actions.java:207)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:402)
at org.gradle.launcher.cli.CommandLineActionFactory$ParseAndBuildAction.execute(CommandLineActionFactory.java:375)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:37)
at org.gradle.launcher.cli.ExceptionReportingAction.execute(ExceptionReportingAction.java:23)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:368)
at org.gradle.launcher.cli.CommandLineActionFactory$WithLogging.execute(CommandLineActionFactory.java:298)
at org.gradle.launcher.Main.doAction(Main.java:36)
at org.gradle.launcher.bootstrap.EntryPoint.run(EntryPoint.java:45)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.launcher.bootstrap.ProcessBootstrap.runNoExit(ProcessBootstrap.java:60)
at org.gradle.launcher.bootstrap.ProcessBootstrap.run(ProcessBootstrap.java:37)
at org.gradle.launcher.GradleMain.main(GradleMain.java:23)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:30)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
* Get more help at https://help.gradle.org
ERROR: Job failed: exit code 1 |
Searched around and it seems like because I use |
Hi, I'm using gradle wrapper, so I updated to 5.5.1 version in gradle-wrapper.properties. After this I ran I also added This solved my issue |
Downgrade gradle to version 5.3
This fixed the issue for me. |
This thread helped me solve the issue. Apparently, it's a low-level memory problem - the execution machine isn't able to allocate enough memory for the heap. I've removed the |
FAILURE: Build failed with an exception.
What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org
The text was updated successfully, but these errors were encountered: