Install axelor lastest version 7.0.4 on ubuntu 22.04 (VPS)

Hello all,
I’m trying to install axelor on ubuntu vps server.
I have followed the steps on axelor youtube channel
I have followed the steps here : Axelor 5.3.3 installation - #22 par BlueSky
But i"m still getting error message when i try to build the app

with ./gradlew clean build or with ./gradlew -x test build

The error message is related to gradle

root@ubuntu:/tmp/axelor-source/axelor-erp# ./gradlew -x test build
Starting a Gradle Daemon, 1 busy Daemon could not be reused, use --status for de tails
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=472f1f54-5c82-42be-a3c8-b7069de26007, currentDir=/t mp/axelor-source/axelor-erp}
Attempting to read last messages from the daemon log…
Daemon pid: 71830
log file: /root/.gradle/daemon/7.5.1/daemon-71830.out.log
----- Last 20 lines from daemon log file - daemon-71830.out.log -----
2023-07-01T16:02:14.062+0000 [DEBUG] [org.gradle.launcher.daemon.server.Synchron izedDispatchConnection] thread 15: received class org.gradle.launcher.daemon.pro tocol.Build
2023-07-01T16:02:14.062+0000 [DEBUG] [org.gradle.launcher.daemon.server.DefaultD aemonConnection] thread 15: Received non-IO message from client: Build{id=472f1f 54-5c82-42be-a3c8-b7069de26007, currentDir=/tmp/axelor-source/axelor-erp}
2023-07-01T16:02:14.063+0000 [INFO] [org.gradle.launcher.daemon.server.DefaultIn comingConnectionHandler] Received command: Build{id=472f1f54-5c82-42be-a3c8-b706 9de26007, currentDir=/tmp/axelor-source/axelor-erp}.
2023-07-01T16:02:14.063+0000 [DEBUG] [org.gradle.launcher.daemon.server.DefaultI ncomingConnectionHandler] Starting executing command: Build{id=472f1f54-5c82-42b e-a3c8-b7069de26007, currentDir=/tmp/axelor-source/axelor-erp} with connection: socket connection from /127.0.0.1:37059 to /127.0.0.1:33160.
2023-07-01T16:02:14.065+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonSt ateCoordinator] Command execution: started DaemonCommandExecution[command = Buil d{id=472f1f54-5c82-42be-a3c8-b7069de26007, currentDir=/tmp/axelor-source/axelor- erp}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:37 059 to /127.0.0.1:33160] after 0.0 minutes of idle
2023-07-01T16:02:14.066+0000 [INFO] [org.gradle.launcher.daemon.server.DaemonReg istryUpdater] Marking the daemon as busy, address: [465e6088-3f19-49aa-bddd-91c3 e2971402 port:37059, addresses:[localhost/127.0.0.1]]
2023-07-01T16:02:14.066+0000 [DEBUG] [org.gradle.launcher.daemon.registry.Persis tentDaemonRegistry] Marking busy by address: [465e6088-3f19-49aa-bddd-91c3e29714 02 port:37059, addresses:[localhost/127.0.0.1]]
2023-07-01T16:02:14.066+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockM anager] Waiting to acquire exclusive lock on daemon addresses registry.
2023-07-01T16:02:14.067+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockM anager] Lock acquired on daemon addresses registry.
2023-07-01T16:02:14.072+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockM anager] Releasing lock on daemon addresses registry.
2023-07-01T16:02:14.073+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonSt ateCoordinator] resetting idle timer
2023-07-01T16:02:14.073+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonSt ateCoordinator] daemon is running. Sleeping until state changes.
2023-07-01T16:02:14.078+0000 [INFO] [org.gradle.launcher.daemon.server.exec.Star tBuildOrRespondWithBusy] Daemon is about to start building Build{id=472f1f54-5c8 2-42be-a3c8-b7069de26007, currentDir=/tmp/axelor-source/axelor-erp}. Dispatching build started information…
2023-07-01T16:02:14.080+0000 [DEBUG] [org.gradle.launcher.daemon.server.Synchron izedDispatchConnection] thread 17: dispatching org.gradle.launcher.daemon.protoc ol.BuildStarted@1298bf37
2023-07-01T16:02:14.091+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.Est ablishBuildEnvironment] Configuring env variables: [PATH, LESSCLOSE, XDG_DATA_DI RS, TERM, MOTD_SHOWN, LANG, DBUS_SESSION_BUS_ADDRESS, XDG_SESSION_ID, XDG_SESSIO N_TYPE, LOGNAME, PWD, XDG_SESSION_CLASS, _, SHELL, LESSOPEN, SSH_TTY, SSH_CLIENT , OLDPWD, USER, SSH_CONNECTION, LS_COLORS, XDG_RUNTIME_DIR, HOME, SHLVL]
2023-07-01T16:02:14.095+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.Log ToClient] About to start relaying all logs to the client via the connection.
2023-07-01T16:02:14.096+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogT oClient] The client will now receive all logging from the daemon (pid: 71830). T he daemon log file: /root/.gradle/daemon/7.5.1/daemon-71830.out.log
2023-07-01T16:02:14.098+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogA ndCheckHealth] Starting build in new daemon [memory: 1.9 GiB]
2023-07-01T16:02:14.106+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.Exe cuteBuild] The daemon has started executing the build.
2023-07-01T16:02:14.106+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.Exe cuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=38b1f60 7-1440-44b5-81d5-3e1b488f76d9,javaHome=/usr/lib/jvm/java-8-openjdk-amd64,daemonR egistryDir=/root/.gradle/daemon,pid=71830,idleTimeout=10800000,priority=NORMAL,d aemonOpts=-Xmx2g,-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 hav e 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.

Hello,

The error may be related to the gradle Out of Memory, Java heap space error.
So for that, you can use this command « ./gradlew clean build -Dorg.gradle.jvmargs=-Xmx4096M » to build the project. Please feel comfortable reaching out to me if you encounter any additional difficulties.

If required here are the installation guide docs: Quick Tutorial :: Axelor Documentation

or you can check the below video links for installation

[FR - WINDOWS] Installation guide from sources • Axelor

[FR - UBUNTU] Installation guide from sources • Axelor

[EN - UBUNTU] Deployment guide war • Axelor

[FR - WINDOWS] Environment installation guide • Axelor

[FR - UBUNTU] Environment configuration guide • Axelor

Regards,

Thank you @bma-axelor,
I tried again and now i got this error message.

root@ubuntu:~/sources/open-suite-webapp# ./gradlew clean build -Dorg.gradle.jvmargs=-Xmx1096M
Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‹ axelor-erp ›.

Could not resolve all files for configuration ‹ :classpath ›.
Could not resolve com.axelor:axelor-gradle:6.1.3.
Required by:
project : > com.axelor.app:com.axelor.app.gradle.plugin:6.1.3
No matching variant of com.axelor:axelor-gradle:6.1.3 was found. The consumer was configured to find a runtime of a library compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute ‹ org.gradle.plugin.api-version › with value ‹ 7.5.1 › but:
- Variant ‹ apiElements › capability com.axelor:axelor-gradle:6.1.3 declares a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares an API of a component compatible with Java 11 and the consumer needed a runtime of a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about org.gradle.plugin.api-version (required ‹ 7.5.1 ›)
- Variant ‹ runtimeElements › capability com.axelor:axelor-gradle:6.1.3 declares a runtime of a library, packaged as a jar, and its dependencies declared externally:
- Incompatible because this component declares a component compatible with Java 11 and the consumer needed a component compatible with Java 8
- Other compatible attribute:
- Doesn’t say anything about org.gradle.plugin.api-version (required ‹ 7.5.1 ›)

  • 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.

BUILD FAILED in 12s
2 actionable tasks: 2 up-to-date

Hello,

Building the latest version of AOS 7 requires upgrading the technical layers and respecting all the following prerequisites:

  • JAVA 11 is now the minimum required to build and run the application
  • Tomcat 9: Apache Tomcat version 8.5 is no longer supported.
  • Minimum PostgreSQL 12 is now required.
  • Grade 7

Regards

Thank you @PakMax ,
I have updated java from java 8 to java 11.
This is what i got :

root@ubuntu:~/sources/open-suite-webapp# ./gradlew clean build -Dorg.gradle.jvmargs=-Xmx1096M
Starting a Gradle Daemon, 1 busy and 2 incompatible Daemons could not be reused, use --status for details
The message received from the daemon indicates that the daemon has disappeared.
Build request sent: Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp}
Attempting to read last messages from the daemon log…
Daemon pid: 37028
log file: /root/.gradle/daemon/7.5.1/daemon-37028.out.log
----- Last 20 lines from daemon log file - daemon-37028.out.log -----
2023-07-07T12:14:52.173+0000 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 17: received class org.gradle.launcher.daemon.protocol.Build
2023-07-07T12:14:52.173+0000 [DEBUG] [org.gradle.launcher.daemon.server.DefaultDaemonConnection] thread 17: Received non-IO message from client: Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp}
2023-07-07T12:14:52.174+0000 [INFO] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Received command: Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp}.
2023-07-07T12:14:52.175+0000 [DEBUG] [org.gradle.launcher.daemon.server.DefaultIncomingConnectionHandler] Starting executing command: Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp} with connection: socket connection from /127.0.0.1:41599 to /127.0.0.1:60236.
2023-07-07T12:14:52.179+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] Command execution: started DaemonCommandExecution[command = Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp}, connection = DefaultDaemonConnection: socket connection from /127.0.0.1:41599 to /127.0.0.1:60236] after 0.0 minutes of idle
2023-07-07T12:14:52.180+0000 [INFO] [org.gradle.launcher.daemon.server.DaemonRegistryUpdater] Marking the daemon as busy, address: [66f3f98f-1d1a-48a9-a5e6-42e504d21658 port:41599, addresses:[localhost/127.0.0.1]]
2023-07-07T12:14:52.180+0000 [DEBUG] [org.gradle.launcher.daemon.registry.PersistentDaemonRegistry] Marking busy by address: [66f3f98f-1d1a-48a9-a5e6-42e504d21658 port:41599, addresses:[localhost/127.0.0.1]]
2023-07-07T12:14:52.185+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Waiting to acquire exclusive lock on daemon addresses registry.
2023-07-07T12:14:52.185+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Lock acquired on daemon addresses registry.
2023-07-07T12:14:52.186+0000 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on daemon addresses registry.
2023-07-07T12:14:52.187+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] resetting idle timer
2023-07-07T12:14:52.187+0000 [DEBUG] [org.gradle.launcher.daemon.server.DaemonStateCoordinator] daemon is running. Sleeping until state changes.
2023-07-07T12:14:52.190+0000 [INFO] [org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy] Daemon is about to start building Build{id=8644c4fe-6821-4dc0-9aab-3ec3fe110200, currentDir=/root/sources/open-suite-webapp}. Dispatching build started information…
2023-07-07T12:14:52.194+0000 [DEBUG] [org.gradle.launcher.daemon.server.SynchronizedDispatchConnection] thread 19: dispatching org.gradle.launcher.daemon.protocol.BuildStarted@2593bd80
2023-07-07T12:14:52.197+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment] Configuring env variables: [PATH, LESSCLOSE, XDG_DATA_DIRS, TERM, MOTD_SHOWN, LANG, DBUS_SESSION_BUS_ADDRESS, XDG_SESSION_ID, XDG_SESSION_TYPE, LOGNAME, PWD, XDG_SESSION_CLASS, _, SHELL, LESSOPEN, SSH_TTY, SSH_CLIENT, OLDPWD, USER, SSH_CONNECTION, LS_COLORS, XDG_RUNTIME_DIR, HOME, SHLVL]
2023-07-07T12:14:52.206+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.LogToClient] About to start relaying all logs to the client via the connection.
2023-07-07T12:14:52.207+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogToClient] The client will now receive all logging from the daemon (pid: 37028). The daemon log file: /root/.gradle/daemon/7.5.1/daemon-37028.out.log
2023-07-07T12:14:52.215+0000 [INFO] [org.gradle.launcher.daemon.server.exec.LogAndCheckHealth] Starting build in new daemon [memory: 1 GiB]
2023-07-07T12:14:52.225+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has started executing the build.
2023-07-07T12:14:52.225+0000 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] Executing build with daemon context: DefaultDaemonContext[uid=5f6ac4e8-bbbe-424f-b4ca-ce9d38697d61,javaHome=/usr/lib/jvm/java-11-openjdk-amd64,daemonRegistryDir=/root/.gradle/daemon,pid=37028,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.base/java.util=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.prefs/java.util.prefs=ALL-UNNAMED,–add-opens,java.base/java.nio.charset=ALL-UNNAMED,–add-opens,java.base/java.net=ALL-UNNAMED,–add-opens,java.base/java.util.concurrent.atomic=ALL-UNNAMED,-Xmx1096M,-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
    root@ubuntu:~/sources/open-suite-webapp# java --version
    openjdk 11.0.19 2023-04-18
    OpenJDK Runtime Environment (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1)
    OpenJDK 64-Bit Server VM (build 11.0.19+7-post-Ubuntu-0ubuntu122.04.1, mixed mode, sharing)
    root@ubuntu:~/sources/open-suite-webapp#