freyacodes / ukulele

Simple self-contained Discord music bot
MIT License
157 stars 75 forks source link

Error: Unable to access jarfile build\libs\ukulele.jar #25

Closed Honri-Cerberus closed 3 years ago

Honri-Cerberus commented 3 years ago

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.

BUILD FAILED in 3s Error: Unable to access jarfile build\libs\ukulele.jar

ChanifRusydi commented 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.

FAILURE: Build failed with an exception.

OtterBoops commented 3 years ago

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.

OtterBoops commented 3 years ago

No response.

Nekkowe commented 3 years ago

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.

OtterBoops commented 3 years ago

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

Nekkowe commented 3 years ago

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.