Installing new test DHIS2 system on MS Windows - 404

Hi James,

Further to my reply. I have also tried to run DHIS2 Live as it seems like a simpler way to get started.

I installed JRE as instructed, downloaded DHIS2 Live and ran the executable Jar file.

It started but then gave me a ‘503’ error in the browser.

I have looked through the logs and the first thing that seems to be incorrect is this message.

  • ERROR 2018-05-04 17:27:20,529 Dispatcher initialization failed (CommonsLogger.java [Thread-2])

Unable to load configuration. - bean - jar:file:/home/lars/dev/live/webapps/dhis/WEB-INF/lib/struts2-core-2.3.32.jar!/struts-default.xml:105:150

I have attached the log; there are a few startup attempts at 17:27, 17:45, 18:11 and 18:16 so there is a lot of replication of the same errors.

Are there some files missing ?

THANKS and all best,

Claire

Claire F Brereton FACS CEng GAICD MPH

UQ Child Health Research Centre

Ph: +61 419 901107

Skype: clairebrereton

Email: claire.brereton@uq.edu.au

twitter
Twitter: clairebre

ORCID
ORCID 0000-0001-8686-4237

dhis.log (51.3 KB)

4 Likes

@Knut_Staring/ @bobj - are you able to assist @clairebre with this issue, please?

Best,
James.

3 Likes

@Knut_Staring
@bobj

Hi I reinstalled and still get the ‘503’ error.
I attach the log file.
It doesn’t seem to pick up line starts so I have gone through and put in breaks at the *WARN messages to make it a bit easier to read.dhis20190401CB.log (51.3 KB)

Thanks for your help,
Claire

3 Likes

Hello Claire,
Sorry to see you are having many issues - most lately with DHIS2 Live, it seems? I just had a brief look at dhis.conf, and it seems to be a bit particular, in that it is set up to assume that you have Postgres installed and have created a user “dhis” with password “dhis” which is the owner of an empty database called “dev”. Does that description fit your setup?

4 Likes

Hi @Knut_Staring, according to the instructions in the documentation there is a built in database in DHIS2 Live and all you need is JRE installed for it to work. So I installed JRE.

From
https://docs.dhis2.org/master/en/implementer/html/dhis2_implementation_guide_full.html
which James pointed me to.

4 Likes

Hi @clairebre,

I would request you install PostgreSQL 9.6 or higher in your system and try using the instructions @Knut_Staring has shared. @Lars had shared some release notes you can check out on 2.31 upgrade notes that specifies the use of PostgreSQL 9.6 or higher version.

I will also try it out on my machine and see if it’s successful based on the information offered. Kindly let us know if this works out well.

Best,
James.

3 Likes

Hi @clairebre, unfortunately I am not sure the instructions are accurate anymore (have not had time to fully explore this), so for recent versions of DHIS2 the best approach may be to install Postgres 10 or 11:
https://www.openscg.com/bigsql/postgresql/installers.jsp/

4 Likes

Yes I have had a few issues – but working through them is how you learn so I am OK with that as long as I have support at hand
:blush: Are you based in Oslo Knut?

Claire F Brereton FACS CEng GAICD MPH

UQ Child Health Research Centre

Ph: +61 419 901107

Skype: clairebrereton

Email: claire.brereton@uq.edu.au

twitter
Twitter: clairebre

ORCID
ORCID 0000-0001-8686-4237

4 Likes

Hi Claire, I was in Oslo before (and will visit again in a week), but currently working for WHO in Geneva.

Regards,

Knut

4 Likes

Hi Claire

I suspect that dhis2 live may in fact no longer work with current versions of DHIS2, not least because that as of 2.29 DHIS2 requires postgresql so the embedded H2 database may no longer work.

I am the original author of dhis2-live (nearly 10 years ago) and I am not sure I would recommend it. I have not used it myself for many years. I believe Knut probably used it more than most for tests and demos and the like. Probably it is end of life now unless there is a champion wanting to revive it.

I think for now, if you want to run dhis2 on windows you will get more mileage out of putting the pieces together “manually” rather than the (admittedly convenient) bundling that dhis2-live offers.

I am sure there are quite a few people who are working with DHIS2 on windows in our community who could share some instructions of what they do. Its not that difficult but just needs somebody to share their tried and tested recipe(s) … unfortunately I am not one of them at the moment :-(. I am thinking people like Knut.

Best,
Bob

4 Likes

Thanks Bob.

I really appreciate the heads up.

I will have a quick look at Knut’s instructions for getting DHIS2 Live to work and then I will revert to the full installation instructions
which were sent to me by Shurajit Dhutta.

http://dhis-2.blogspot.com/

I have already hit an issue with these instructions and have asked for support on this. It was whilst I was reading support material
that I came across the DHIS2-Live option and decided to try it out to see whether I could get a faster start.

I have installations in progress on two machines so I will try one with DHIS2-Live and keep going with debugging the ‘manual’ option
on the other. I have no interest in reviving DHIS2-Live if it is end of life., rather I just want to get a working setup that I can use to set up prototype Children’s Environmental Health Indicators for the Pacific Islands.

All best and thanks again for reaching out,

Claire

4 Likes

Hi Claire,

I still use DHIS2 Live with postgres occassionally and it does work, you just have to modify the conf file to point to the database you have created in postgres. That being said, as bob suggested it is better to get it up and running via tomcat if possible. When you start up tomcat do you get a message that the server has started up in XXX ms

4 Likes

宠惩Ɣ

dhis.log (51.3 KB)

3 Likes

Pet punishment?

3 Likes

Not sure I understand!

p.s. when I installed PostGres I selected the ‘Australia’ rather than the default – would that make any difference?

Thanks,

Claire

4 Likes

Hi Claire,

I use DHIS2 live for my development work on 2.30. Only difference is I’m using a old DHIS2 live version I got I think from 2.28 and update the war file from the latest with PostgreSQL which works perfectly.

4 Likes

also here is the localhost log from tomcat which looks relevant localhost.2019-01-13.log (67.3 KB)

3 Likes

Hey hi James,

Im also facing the same problem while installing DHIS2 2.30 on windows and unable to open the localhost:8080/dhis. It give error 404 as for claire. I’ve crosschecked all variables environment set and all are double checked. Im using tomcat 9 and postgre11 and everything has been done as per the instructions from DHIS2.org but still its not getting to work.

Please help if there is some special changes which needs to be made in tomcat /dhis webfiles. Im unable to find any solution on net so far for this issue.

Early reply would be highly appreciated.

Thanks in advance.

5 Likes

Hello Claire,

I was just going through the posts and saw your issues with the DHIS. Im also facing the same issues while installing on windows and getting the same error and i guess everywhere on internet there is no solution to this problem.

So if you have any luck getting it resolved please help share the knowledge with me to get this working.

Thanks in advance again.
Rahull

5 Likes

HI @usfreak13,

Sorry for the challenge faced.

Have you checked the instructions from Installing DHIS2 on a Windows Local Server - try this and let me know where you get stuck from; and Can’t Login after restoring sample database?

Also, kindly check that the port 8080 was not taken by another application you are using in your machine; maybe another instance of tomcat - (Are you able to share the Catalina logs for us to check out the error?)

For versions 2.30 upwards, you have to “CREATE EXTENSION postgis;” as a superuser in your db; (psql -d dhis2 --username=dhis2 -c "CREATE EXTENSION postgis") and restart the application.

Check these options out and let us know if they sort you out.

Best,
James.

4 Likes