OVVL-HSO / OVVL-Server

https://ovvl.org/
9 stars 1 forks source link

Build is failing, any ideas? #5

Open guerilla7 opened 4 years ago

guerilla7 commented 4 years ago

See debug log from my test system:

2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] What went wrong: 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':bootRun'. 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command 'C:\Program Files\XXXMachine\JDK\11\bin\java.exe'' finished with non-zero exit value 1 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Try: 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights. 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 2020-08-23T14:48:52.702-0700 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] 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.6/userguide/command_line_interface.html#sec:command_line_warnings 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 2020-08-23T14:48:52.702-0700 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 8s 2020-08-23T14:48:52.702-0700 [LIFECYCLE] [org.gradle.internal.buildevents.TaskExecutionStatisticsReporter] 5 actionable tasks: 1 executed, 4 up-to-date 2020-08-23T14:48:52.703-0700 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Completing Build operation 'Run build' 2020-08-23T14:48:52.703-0700 [DEBUG] [org.gradle.internal.operations.DefaultBuildOperationExecutor] Build operation 'Run build' completed 2020-08-23T14:48:52.707-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-supplier (C:\Users\I86XXXX.gradle\caches\6.6\md-supplier) 2020-08-23T14:48:52.707-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-supplier (C:\Users\I86XXXX.gradle\caches\6.6\md-supplier). 2020-08-23T14:48:52.708-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\fileContent) 2020-08-23T14:48:52.708-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\fileContent). 2020-08-23T14:48:52.710-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (C:\OVVL-Server\OVVL-Server-master.gradle\buildOutputCleanup) 2020-08-23T14:48:52.710-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (C:\OVVL-Server\OVVL-Server-master.gradle\buildOutputCleanup). 2020-08-23T14:48:52.711-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for execution history cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\executionHistory) 2020-08-23T14:48:52.712-0700 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache executionHistory.bin (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\executionHistory\executionHistory.bin) 2020-08-23T14:48:52.712-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on execution history cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\executionHistory). 2020-08-23T14:48:52.714-0700 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] Configuration Cache (C:\OVVL-Server\OVVL-Server-master.gradle\configuration-cache) has last been fully cleaned up 0 hours ago 2020-08-23T14:48:52.714-0700 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Configuration Cache (C:\OVVL-Server\OVVL-Server-master.gradle\configuration-cache) was closed 0 times. 2020-08-23T14:48:52.714-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for cache directory md-rule (C:\Users\I86XXXX.gradle\caches\6.6\md-rule) 2020-08-23T14:48:52.714-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on cache directory md-rule (C:\Users\I86XXXX.gradle\caches\6.6\md-rule). 2020-08-23T14:48:52.730-0700 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 2020-08-23T14:48:52.737-0700 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 8, disk reads: 4 (avg: 0.001 secs, total: 0.004 secs) 2020-08-23T14:48:52.751-0700 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 4 resolution results binary files in 0.035 secs 2020-08-23T14:48:52.751-0700 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles 2020-08-23T14:48:52.751-0700 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles 2020-08-23T14:48:52.752-0700 [DEBUG] [org.gradle.cache.internal.DefaultPersistentDirectoryStore] VCS Checkout Cache (C:\OVVL-Server\OVVL-Server-master.gradle\vcs-1) has last been fully cleaned up 0 hours ago 2020-08-23T14:48:52.752-0700 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (C:\OVVL-Server\OVVL-Server-master.gradle\vcs-1) was closed 0 times. 2020-08-23T14:48:52.752-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for checksums cache (C:\OVVL-Server\OVVL-Server-master.gradle\checksums) 2020-08-23T14:48:52.752-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on checksums cache (C:\OVVL-Server\OVVL-Server-master.gradle\checksums). 2020-08-23T14:48:52.753-0700 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\fileHashes) 2020-08-23T14:48:52.753-0700 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\fileHashes). 2020-08-23T14:48:52.753-0700 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS metadata (C:\OVVL-Server\OVVL-Server-master.gradle\6.6\vcsMetadata-1) was closed 0 times. 2020-08-23T14:48:52.762-0700 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build. 2020-08-23T14:48:53.458-0700 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@14b9e978 2020-08-23T14:48:53.458-0700 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 17: dispatching class org.gradle.launcher.daemon.protocol.CloseInput 2020-08-23T14:48:53.459-0700 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Success[value=org.gradle.launcher.exec.BuildActionResult@3d97a632] from daemon DaemonInfo{pid=35416, address=[6253a127-5b23-4d99-a07b-cd8611759b53 port:1152, addresses:[/127.0.0.1]], state=Idle, lastBusy=1598219281657, context=DefaultDaemonContext[uid=ffdf0b5f-29a3-4c0e-b850-5e140976f744,javaHome=C:\Program Files\XXXMachine\JDK\11,daemonRegistryDir=C:\Users\I8XXXX.gradle\daemon,pid=35416,idleTimeout=10800000,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=windows-1252,-Duser.country=US,-Duser.language=en,-Duser.variant]} (build should be done). 2020-08-23T14:48:53.459-0700 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished 2020-08-23T14:48:53.460-0700 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop 2020-08-23T14:48:53.461-0700 [LIFECYCLE] [org.gradle.launcher.cli.DebugLoggerWarningAction]

MexHigh commented 4 years ago

What version of gradle are you using? Some features of the OVVL-Server are currently incompatible with the latest version of gradle. We are using v5.0.

guerilla7 commented 4 years ago

What version of gradle are you using? Some features of the OVVL-Server are currently incompatible with the latest version of gradle. We are using v5.0.

Gradle 6.6

Build time: 2020-08-10 22:06:19 UTC Revision: d119144684a0c301aea027b79857815659e431b9

Kotlin: 1.3.72 Groovy: 2.5.12 Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020 JVM: 11.0.6 (Debian 11.0.6+10-post-Debian-1) OS: Linux 5.4.0-kali3-amd64 amd64

Let me downgrade and try it again, thank you

guerilla7 commented 4 years ago

@MexHigh

Switched to Gradle 5.0 but "gradle bootRun" still failing, snippet:

19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] What went wrong: 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':bootRun'. 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > Process 'command '/usr/lib/jvm/java-11-openjdk-amd64/bin/java'' finished with non-zero exit value 1 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Try: 19:59:29.010 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights. 19:59:29.012 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 19:59:29.012 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 19:59:29.012 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 19:59:29.012 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 4s

MexHigh commented 4 years ago

Have you set the environmental variables for the MongoDB connection? OVVL-Server needs a MongoDB running and the connection URI is passed over environmental variable. You also need to set a JWT secret, which can be chosen freely.

export MONGODB_CONNECTION=mongodb://localhost:27017/ovvl-db
export OVVL_JWT_SECRET=something123

I know, this proceedure is not well documented, but it's on our todo list.

MexHigh commented 4 years ago

Any progress on this?

guerilla7 commented 4 years ago

Nope. Would love to contribute write better documentation for initial setup and prepapring depedencies, etc.

MexHigh commented 4 years ago

The OVVL project is currently on hold. I'll ping you as soon as we are continuing.

An option for an easier deployment like a Docker image bundeling all necessary services to run OVVL would be nice. PRs are always welcome.