Closed Honri-Cerberus closed 3 years ago
have the same problem here. Here is what happen in my case
./gradlew: 39: cd: can't cd to "./ Downloading https://services.gradle.org/distributions/gradle-6.6.1-bin.zip .........10%..........20%..........30%..........40%.........50%..........60%..........70%..........80%..........90%.........100%
Welcome to Gradle 6.6.1!
Here are the highlights of this release:
For more details see https://docs.gradle.org/6.6.1/release-notes.html
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.6.1/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing The message received from the daemon indicates that the daemon has disappeared. Build request sent: Build{id=d39af34a-3c17-44da-a616-63d261f4ccd8, currentDir=/root/ukulele/ukulele} Attempting to read last messages from the daemon log... Daemon pid: 10600 log file: /root/.gradle/daemon/6.6.1/daemon-10600.out.log ----- Last 20 lines from daemon log file - daemon-10600.out.log ----- 2021-09-20T09:32:10.786+0700 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Starting executing command: Build{id=d39af34a-3c17-44da-a616-63d261f4ccd8, currentDir=/root/ukulele/ukulele} with connection: socket connection from /127.0.0.1:36169 to /127.0.0.1:36706. 2021-09-20T09:32:10.789+0700 [ERROR] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: started DaemonCommandExecution[command = Build{id=d39af34a-3c17-44da-a616-63d261f4ccd8, currentDir=/root/ukulele/ukulele}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:36169 to /127.0.0.1:36706] after 0.0 minutes of idle 2021-09-20T09:32:10.789+0700 [INFO] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Marking the daemon as busy, address: [29c6ab54-dee8-4cba-b08a-8bfb799621af port:36169, addresses:[localhost/127.0.0.1]] 2021-09-20T09:32:10.789+0700 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [29c6ab54-dee8-4cba-b08a-8bfb799621af port:36169, addresses:[localhost/127.0.0.1]] 2021-09-20T09:32:10.791+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 2021-09-20T09:32:10.792+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry. 2021-09-20T09:32:10.794+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 2021-09-20T09:32:10.795+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer 2021-09-20T09:32:10.799+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes. 2021-09-20T09:32:10.801+0700 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=d39af34a-3c17-44da-a616-63d261f4ccd8, currentDir=/root/ukulele/ukulele}. Dispatching build started information... 2021-09-20T09:32:10.801+0700 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 19: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@79036235 2021-09-20T09:32:10.813+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/chromedriver:/root/bin, SHELL=/bin/bash, SSH_TTY=/dev/pts/0, SSH_CLIENT=36.68.55.105 14006 22, TERM=xterm-256color, OLDPWD=/root/ukulele/ukulele, USER=root, LANG=C.UTF-8, XDG_SESSION_ID=1352, SSH_CONNECTION=36.68.55.105 14006 103.56.148.24 22, MAIL=/var/mail/root, LOGNAME=root, LC_CTYPE=C.UTF-8, PWD=/root/ukulele/ukulele, XDG_RUNTIMEDIR=/run/user/0, HOME=/root, SHLVL=1, =./ukulele} 2021-09-20T09:32:10.821+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection. 2021-09-20T09:32:10.821+0700 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 10600). The daemon log file: /root/.gradle/daemon/6.6.1/daemon-10600.out.log 2021-09-20T09:32:10.829+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon] Requesting daemon stop after processing Build{id=d39af34a-3c17-44da-a616-63d261f4ccd8, currentDir=/root/ukulele/ukulele} 2021-09-20T09:32:10.829+0700 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon will be stopped at the end of the build stopping after processing 2021-09-20T09:32:10.829+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Stop as soon as idle requested. The daemon is busy: true 2021-09-20T09:32:10.829+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon stop has been requested. Sleeping until state changes. 2021-09-20T09:32:10.834+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build. 2021-09-20T09:32:10.835+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=fe11284f-b290-4065-aef5-069c816429df,javaHome=/usr/lib/jvm/java-11-openjdk-amd64,daemonRegistryDir=/root/.gradle/daemon,pid=10600,idleTimeout=120000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country,-Duser.language=en,-Duser.variant] ----- End of the daemon log -----
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. Run with --scan to get full insights.
Get more help at https://help.gradle.org Error: Unable to access jarfile build/libs/ukulele.jar root@admin:~/ukulele/ukulele# cd root@admin:~# java --version openjdk 11.0.11 2021-04-20 OpenJDK Runtime Environment (build 11.0.11+9-Ubuntu-0ubuntu2.18.04) OpenJDK 64-Bit Server VM (build 11.0.11+9-Ubuntu-0ubuntu2.18.04, mixed mode) root@admin:~# cd ukulele/ root@admin:~/ukulele# cd ukulele/ root@admin:~/ukulele/ukulele# ./ukulele --stacktrace ./gradlew: 39: cd: can't cd to "./ To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.6.1/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing The message received from the daemon indicates that the daemon has disappeared. Build request sent: Build{id=8ef4423f-1ec3-4126-b29f-33943ca5226d, currentDir=/root/ukulele/ukulele} Attempting to read last messages from the daemon log... Daemon pid: 10934 log file: /root/.gradle/daemon/6.6.1/daemon-10934.out.log ----- Last 20 lines from daemon log file - daemon-10934.out.log ----- 2021-09-20T09:38:54.854+0700 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Starting executing command: Build{id=8ef4423f-1ec3-4126-b29f-33943ca5226d, currentDir=/root/ukulele/ukulele} with connection: socket connection from /127.0.0.1:35493 to /127.0.0.1:53118. 2021-09-20T09:38:54.857+0700 [ERROR] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: started DaemonCommandExecution[command = Build{id=8ef4423f-1ec3-4126-b29f-33943ca5226d, currentDir=/root/ukulele/ukulele}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:35493 to /127.0.0.1:53118] after 0.0 minutes of idle 2021-09-20T09:38:54.857+0700 [INFO] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Marking the daemon as busy, address: [bf3163b3-8bf7-4c7d-8853-71b24111e46f port:35493, addresses:[localhost/127.0.0.1]] 2021-09-20T09:38:54.857+0700 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [bf3163b3-8bf7-4c7d-8853-71b24111e46f port:35493, addresses:[localhost/127.0.0.1]] 2021-09-20T09:38:54.861+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry. 2021-09-20T09:38:54.861+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry. 2021-09-20T09:38:54.861+0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry. 2021-09-20T09:38:54.862+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer 2021-09-20T09:38:54.862+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes. 2021-09-20T09:38:54.868+0700 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=8ef4423f-1ec3-4126-b29f-33943ca5226d, currentDir=/root/ukulele/ukulele}. Dispatching build started information... 2021-09-20T09:38:54.868+0700 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 19: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@6b4ab428 2021-09-20T09:38:54.876+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: {PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/bin/chromedriver:/root/bin, SHELL=/bin/bash, SSH_TTY=/dev/pts/0, SSH_CLIENT=36.68.55.105 14006 22, TERM=xterm-256color, OLDPWD=/root/ukulele/ukulele, USER=root, LANG=C.UTF-8, XDG_SESSION_ID=1352, SSH_CONNECTION=36.68.55.105 14006 103.56.148.24 22, MAIL=/var/mail/root, LOGNAME=root, LC_CTYPE=C.UTF-8, PWD=/root/ukulele/ukulele, XDG_RUNTIMEDIR=/run/user/0, HOME=/root, SHLVL=1, =./ukulele} 2021-09-20T09:38:54.887+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection. 2021-09-20T09:38:54.887+0700 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 10934). The daemon log file: /root/.gradle/daemon/6.6.1/daemon-10934.out.log 2021-09-20T09:38:54.897+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon] Requesting daemon stop after processing Build{id=8ef4423f-1ec3-4126-b29f-33943ca5226d, currentDir=/root/ukulele/ukulele} 2021-09-20T09:38:54.897+0700 [LIFECYCLE] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Daemon will be stopped at the end of the build stopping after processing 2021-09-20T09:38:54.897+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Stop as soon as idle requested. The daemon is busy: true 2021-09-20T09:38:54.897+0700 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon stop has been requested. Sleeping until state changes. 2021-09-20T09:38:54.905+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build. 2021-09-20T09:38:54.905+0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=d7c492ff-cc97-451d-b98f-d5441e5d8a73,javaHome=/usr/lib/jvm/java-11-openjdk-amd64,daemonRegistryDir=/root/.gradle/daemon,pid=10934,idleTimeout=120000,priority=NORMAL,daemonOpts=--add-opens,java.base/java.util=ALL-UNNAMED,--add-opens,java.base/java.lang=ALL-UNNAMED,--add-opens,java.base/java.lang.invoke=ALL-UNNAMED,--add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,-XX:MaxMetaspaceSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xms256m,-Xmx512m,-Dfile.encoding=UTF-8,-Duser.country,-Duser.language=en,-Duser.variant] ----- End of the daemon log -----
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. Run with --scan to get full insights.
Get more help at https://help.gradle.org Error: Unable to access jarfile build/libs/ukulele.jar
I do not know either of your cases' specifics but a quick google search for the gradle error gives you this page. https://stackoverflow.com/questions/37171043/gradle-build-daemon-disappeared-unexpectedly-it-may-have-been-killed-or-may-hav
Try these fixes.
No response.
I also have this issue, though I'm not familiar enough with gradle to apply any of the fixes. This one seems the most promising.
I don't know how to apply this fix with the gradle wrapper. There is no gradle.properties file in the repo, and adding the line to gradle-wrapper.properties did not do the trick.
Gradle.properties is not gonna be on the repo. Look for where it resides according to your setup. https://stackoverflow.com/questions/30333837/where-to-put-the-gradle-properties-file
Thank you!
I'm now having an entirely different gradle-related problem where it won't sanitize the file path for my home directory properly, and instead breaks the path off at an '!' character (long story, Windows is bad).
Since this still happens when I change my gradle user home to something else, I don't think I'll be able to help debug this issue any further.
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.6.1/userguide/gradle_daemon.html. Daemon will be stopped at the end of the build stopping after processing
FAILURE: Build failed with an exception.
What went wrong: org/jetbrains/kotlin/cli/common/PropertiesKt
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
BUILD FAILED in 3s Error: Unable to access jarfile build\libs\ukulele.jar