I was wondering if someone could help point me to where I might be getting things incorrectly. I am setting up a fresh installation of DHIS (40) on an Ubuntu 23 server, following instructions from official documentation. It seems like my server is starting and then getting stuck somewhere in Deploying the web app and eventually not creating the required his tables. Here are my configurations and log files as well.
The info you provided is great; however, you can see that the first image is only a snapshot of the start of the Catalina.out log so it’s not clear what happens after “Deploying web application archive”. Could you share the remaining of the log without including sensitive/authentication info?
If you are using Java 17 then this has been addressed by @tkipkurgat in the weekly server meetup:
Finally, another community member recently faced an issue with the installation but it turned out to be permissions issue, please double check that the user has the right permissions:
Thanks for your feedback. That was the entire log file, it appeared that the server got stuck at deploying the webapp. I was on Java 17. I have since reset the machine is setting up another instance of dhis2.
As shown in the screenshot I shared, my server remained stuck at the “deploying web app stage”. After several unsuccessful restarts, I decided to destroy the machine and set up a new server using the same software versions but with the following changes:
Upgraded memory to 4GB. Initially, I was running on a 1GM memory.
Created a new dhis user using the command:
sudo useradd -d /home/dhis -m dhis -s /bin/false.
Initially, my dhis user was a sudoer. I highly suspect this is where the issue was.