ODK Aggregate is a Java server that stores, analyzes, and presents survey data collected using ODK Collect. Contribute and make the world a better place! ✨🗄✨
I ran ./gradlew appRunWar command inside the aggregate folder and the following error appeared.
user@ip:~/aggregate$ ./gradlew appRunWar
FAILURE: Build failed with an exception.
What went wrong:
Could not determine java version from '11.0.10'.
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.
user@ip:~/aggregate$ cd gradle/
user@ip:~/aggregate/gradle$ ls
wrapper
user@ip:~/aggregate/gradle$ cd wrapper/
user@ip:~/aggregate/gradle/wrapper$ ls
gradle-wrapper.jar gradle-wrapper.properties
user@ip:~/aggregate/gradle/wrapper$ sudo nano gradle-wrapper.properties
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.
#### Expected behavior
The ODK Aggregate server is running on `<my_private_ip_address>:8080`.
#### Other information
I have a hypothesis (ODK Aggregate server must use Java version 8 to run). Is it correct?
Software and hardware versions
OS: Ubuntu 18.04.5 LTS Java version: 11.0.10 Tomcat version: 9.0.44 PostgreSQL version: 10.16 MySQL version: 5.7.33 Git LFS version: 2.13.2 Docker version: 20.10.5 Docker Compose version: 1.28.5
Problem description
Could not determine java version from '11.0.10' (after running
./gradlew appRunWar
command)Steps to reproduce the problem
I followed this documentation https://github.com/getodk/aggregate to install ODK Aggregate on a private server. Everything was fine until this section https://github.com/getodk/aggregate#building-and-running-the-project.
I ran
./gradlew appRunWar
command inside the aggregate folder and the following error appeared.FAILURE: Build failed with an exception.
What went wrong: Could not determine java version from '11.0.10'.
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
I found this link https://stackoverflow.com/questions/54358107/gradle-could-not-determine-java-version-from-11-0-2 then I changed the gradle distribution url to version 5.4.1
Before (original from ODK Aggregate repository):
After:
I ran again
./gradlew appRunWar
command then another error (A problem occurred configuring root project 'aggregate'.
) appeared.Welcome to Gradle 5.4.1!
Here are the highlights of this release:
For more details see https://docs.gradle.org/5.4.1/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'aggregate'.
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 27s