I’m trying to install Axelor open-suite-webapp on my Ubuntu 23.04.
I followed both youtube guides (environement setup & deployment) and I have a lot of errors when it comes to the « gradlew clean build » step.
Here are my components : Postgresql => 14
**OpenJdk => 11 ** Tomcat => 9.0.85 Axelor => 7.2.6
When I run the gradlew I have a lot of warning & notes :
Execution optimizations have been disabled for task ‹ :modules:axelor-bank-payment:compileJava ›
/sources/open-suite-webapp/modules/axelor-open-suite/axelor-talent/src/main/java/com/axelor/apps/talent/web/AppraisalController.java uses unchecked or unsafe operations.
And the operation is always a FAILURE : FAILURE: Build failed with an exception.
What went wrong:
Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)
It seems like it’s an Out Of Memory issue so I tried to upgrade the machine memory and I also tried to run the « ./gradlew clean build -Dorg.gradle.jvmargs=-Xmx4096M » command based on what I saw on forums.
This does’t change anything and I was only able to perform a successful build when I removed the « clean » from the command but after that I copied the war file into the tomcat folder and tomcat was also generating a lot of errors.
Here a screenshots of the errors (too much logs so it doesn’t take every errors…) :
As mentionned I just followed the youtube guide, and there is no mention of modifying these files in it, so no I didn’t touch anything about these files
I tried different commands, all result in an failure :
./gradlew clean build
./gradlew clean build -Dorg.gradle.jvmargs=-Xmx4096M
./gradlew clean build -Dorg.gradle.jvmargs=-Xmx2096M
Thanks again for your answer.
This doesn’t fix the gradlew clean build step…
I just followed the guide, I don’t understand why I need to modify some files which are not specified and why I’m encountering this type of issue.
I don’t understand these error/warning messages everywhere since I just followed the guide …
Well, it is true that the guide should be followed as it is, but it is not up to date…
And sometimes, as you are not using the same build environnement as Axelor Team, you may face issue.
I also faced tons of issue for my first builds.
I am using Windows in order to build from sources.
And almost all the issues that i faced, were not documented (such as Windows Defender…).
Right now, i am lack of solutions for your issue, however i may advise you to do some cross tests, suchs as :
Try on another ubuntu version, eg: 22.04 (which, by the way is the most stable as it’s LTS).