Cannot load Form Create Standard Report

Hi,

I am using DHIS2 version 2.34.1 but create standard report form cannot be loaded. Can anyone help me?

  1. Is it a new system or upgraded one?

  2. Do you have access to tomcat logs?

  3. Do you get any additional information when you click this with developer-tools option enabled

Dear @jthomas,
Thank you for your replay.
It is anew system, yes I have access to tomcat logs, and sorry I didn’t understand what do you mean by the third point.

  • Can you share the tomcat log during this issue.

  • Regarding the third point - Chrome / Firefox has a feature called Developer-tools. you can enable that like below. and then you may get more information on what’s happening during that time.

At console tab right side, you may be getting some error

The console tab gives me this error

Does it make any difference if you open the page in an incognito window (Press ctrl-shift-n then enter the URL and try again)?
I just want to establish whether this is a cache issue.

Please post the tomcat logs at around the time of the page load.

1 Like

@jthomas @Edward_Robinson I tried to open the page in an incognito window but the same issue remains. Here is the tomcat logs during this issue.

0:0:0:0:0:0:0:1 - - [29/Oct/2020:16:32:46 +0800] “GET /dhis/api/reportTables?paging=false&fields=id%2Cname HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [29/Oct/2020:16:33:09 +0800] “GET /dhis/api/reports?fields=displayName%2Ctype%2Cid%2CreportTable%5Bid%2CdisplayName%2CreportParams%2CrelativePeriods%5D%2CreportParams%2CrelativePeriods%2Caccess&page=1&pageSize=50 HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [29/Oct/2020:16:33:09 +0800] “GET /dhis/api/reportTables?paging=false&fields=id%2Cname HTTP/1.1” 304 -

Nothing so far suspicious in your console logs.

Tomcat logs is hinting 304 error. Are you using nginx?

  1. How about you send us complete tomcat logs.

  2. Restart dhis2 once to see it’s not a one-time issue.

I think the 304 is just a report that there was no need to get the resources again - they are cached.
I would clear the browser cache completely, then check the logs, but agree, we would need more of the log - perhaps restart the server, access reports and post the logs from the beginning of that server restart.

1 Like

Dear @jthomas and @Edward_Robinson ,

No, I don’t use nginx. I restart dhis2 but the issue remains. I also clear the browser cache and restart the server but the issue still remains.
Here is the complete tomcat logs:

0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:28 +0800] “GET /dhis/ HTTP/1.1” 302 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:28 +0800] “GET /dhis/dhis-web-commons-about/redirect.action HTTP/1.1” 302 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:29 +0800] “GET /dhis/dhis-web-commons/security/login.action HTTP/1.1” 200 5410
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:29 +0800] “GET /dhis/api/staticContent/logo_front HTTP/1.1” 302 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:31 +0800] “POST /dhis/dhis-web-commons-security/login.action HTTP/1.1” 302 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:32 +0800] “GET /dhis/dhis-web-commons-about/redirect.action HTTP/1.1” 302 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:32 +0800] “GET /dhis/dhis-web-dashboard/ HTTP/1.1” 200 2523
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:32 +0800] “GET /dhis/api/34/userSettings HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/report?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/reportTable?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/eventChart?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/chart?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/eventReport?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/userGroup?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/me/authorization HTTP/1.1” 200 2165
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/system/info HTTP/1.1” 200 1376
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/userSettings HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/map?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/dashboard?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/schemas/organisationUnit?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:33 +0800] “GET /dhis/api/34/apps HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/me?fields=%3Aall%2CorganisationUnits%5Bid%5D%2CuserGroups%5Bid%5D%2CuserCredentials%5B%3Aall%2C!user%2CuserRoles%5Bid%5D HTTP/1.1” 200 3729
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/attributes?fields=%3Aall%2CoptionSet%5B%3Aall%2Coptions%5B%3Aall%5D%5D&paging=false HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/me HTTP/1.1” 200 3729
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/systemSettings/applicationTitle HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/dimensions?fields=id,displayName~rename(name),dimensionType,dataDimensionType&order=displayName:asc&paging=false HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/me/dashboard HTTP/1.1” 200 58
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/dashboards?fields=id%2Cname%2CdisplayName%2Cdescription%2CdisplayDescription%2Cfavorite%2Cuser%5Bid%2CdisplayName~rename(name)%5D%2Ccreated%2ClastUpdated%2Caccess%2CdashboardItems%5Bid%5D&paging=false HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/dhis-web-commons/menu/getModules.action HTTP/1.1” 200 5780
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/userDataStore/dashboard HTTP/1.1” 200 18
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:34 +0800] “GET /dhis/api/34/staticContent/logo_banner HTTP/1.1” 404 98
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:35 +0800] “GET /dhis/api/34/userDataStore/dashboard HTTP/1.1” 200 18
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:35 +0800] “GET /dhis/api/34/userDataStore/dashboard/controlBarRows HTTP/1.1” 200 1
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:38 +0800] “GET /dhis/api/schemas/organisationUnit?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:38 +0800] “GET /dhis/api/me/authorization HTTP/1.1” 200 2165
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/me?fields=%3Aall%2CorganisationUnits%5Bid%5D%2CuserGroups%5Bid%5D%2CuserCredentials%5B%3Aall%2C!user%2CuserRoles%5Bid%5D HTTP/1.1” 200 3729
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/schemas/dataApprovalLevel?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/schemas/dataSet?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/schemas/report?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/schemas/reportTable?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/schemas/organisationUnitGroupSet?fields=apiEndpoint%2Cname%2CdisplayName%2Cauthorities%2Csingular%2Cplural%2Cshareable%2Cmetadata%2Cklass%2CidentifiableObject%2Ctranslatable%2Cproperties%5Bhref%2Cwritable%2Ccollection%2CcollectionName%2Cname%2CpropertyType%2Cpersisted%2Crequired%2Cmin%2Cmax%2Cordered%2Cunique%2Cconstants%2Cowner%2CitemPropertyType%2CtranslationKey%2CembeddedObject%5D HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/system/info HTTP/1.1” 200 1381
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/attributes?fields=%3Aall%2CoptionSet%5B%3Aall%2Coptions%5B%3Aall%5D%5D&paging=false HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/userSettings HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/apps HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/userSettings HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/periodTypes HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/dataSets?fields=id%2CdisplayName%2CformType&paging=false HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/organisationUnits?fields=id%2CdisplayName%2Cpath%2Cchildren%3A%3AisNotEmpty%2CmemberCount&paging=false&level=1 HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/system/info HTTP/1.1” 200 1381
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/me/dashboard HTTP/1.1” 200 58
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/dhis-web-commons/menu/getModules.action HTTP/1.1” 200 5780
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/me HTTP/1.1” 200 3729
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:39 +0800] “GET /dhis/api/staticContent/logo_banner HTTP/1.1” 404 98
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:41 +0800] “GET /dhis/api/reports?fields=displayName%2Ctype%2Cid%2CreportTable%5Bid%2CdisplayName%2CreportParams%2CrelativePeriods%5D%2CreportParams%2CrelativePeriods%2Caccess&page=1&pageSize=50 HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:41 +0800] “GET /dhis/api/reportTables?paging=false&fields=id%2Cname HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:41 +0800] “GET /dhis/dhis-web-reports/service-worker.js HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:15:42 +0800] “GET /dhis/api/reportTables?paging=false&fields=id%2Cname HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:16:49 +0800] “GET /dhis/api/reports?fields=displayName%2Ctype%2Cid%2CreportTable%5Bid%2CdisplayName%2CreportParams%2CrelativePeriods%5D%2CreportParams%2CrelativePeriods%2Caccess&page=1&pageSize=50 HTTP/1.1” 304 -
0:0:0:0:0:0:0:1 - - [30/Oct/2020:04:16:49 +0800] “GET /dhis/api/reportTables?paging=false&fields=id%2Cname HTTP/1.1” 304 -

On the surface, I don’t see any issues there at all - the 304s are simply confirming that the client has a copy of the content and doesn’t have to get a new copy (they would be 200s otherwise). There are a few 200s and the only 404s are for the logo banner which won’t cause issues.
The log you’re posting, is the http access log. I think the catalina log would be useful to highlight any other underlying issues that could be causing this. Reboot the server, then access the reporting app, then on the server look for the log catalina.out log file and post the log entries from around the time the server was started up.

Also, it would be useful to see your server.xml config file (exclude any sensitive data such as passwords for java key stores if you use them)… and finally your dhis.conf file (without passwords).

1 Like

Dear @Edward_Robinson,

Here is the catalina.out logs:

31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/9.0.38
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Sep 10 2020 08:20:30 UTC
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 9.0.38.0
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Windows 10
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 10.0
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: C:\Program Files\Java\jre1.8.0_261
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 1.8.0_261-b12
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Oracle Corporation
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2
31-Oct-2020 07:00:38.256 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\temp
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\conf\logging.properties
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dfile.encoding=UTF8
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: exit
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: abort
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xms128m
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Xmx512m
31-Oct-2020 07:00:38.271 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The Apache Tomcat Native library which allows using OpenSSL was not found on the java.library.path: [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre1.8.0_261\bin;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\DTS\Binn;C:\Program Files (x86)\Microsoft SQL Server\150\DTS\Binn;C:\Program Files\Java\jdk1.8.0_261\bin;C:\Program Files\PuTTY;C:\Windows\ServiceProfiles\LocalService\AppData\Local\Microsoft\WindowsApps;.]
31-Oct-2020 07:00:38.756 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler [“http-nio-8080”]
31-Oct-2020 07:00:39.365 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [1340] milliseconds
31-Oct-2020 07:00:39.396 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
31-Oct-2020 07:00:39.396 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.38]
31-Oct-2020 07:00:39.443 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\dhis.war]
31-Oct-2020 07:01:06.335 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
31-Oct-2020 07:02:05.263 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\dhis.war] has finished in [85,820] ms
31-Oct-2020 07:02:05.263 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\docs]
31-Oct-2020 07:02:05.294 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\docs] has finished in [31] ms
31-Oct-2020 07:02:05.310 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\manager]
31-Oct-2020 07:02:05.373 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\manager] has finished in [63] ms
31-Oct-2020 07:02:05.373 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\ROOT]
31-Oct-2020 07:02:05.404 INFO [main] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory [C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps\ROOT] has finished in [31] ms
31-Oct-2020 07:02:05.404 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler [“http-nio-8080”]
31-Oct-2020 07:02:05.419 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [86056] milliseconds

and here the server.xml config file:

server_config.docx (15.9 KB)

and here is the dhis.conf file:

connection.dialect = org.hibernate.dialect.PostgreSQLDialect
connection.driver_class = org.postgresql.Driver
connection.url = jdbc:postgresql:dhis2
connection.username = dhis
connection.password = ****
connection.schema = update
encryption.password = ****
server.base.url = http://localhost:8080/dhis

Note:
I tried to download DHIS2 2.29 and DHIS2 2.35 to check if it will work or not, for the DHIS2 2.29 the create a standard report process it works well. However, for DHIS2 2.35 it did not work as DHIS2 2.34.1. But I want to figure out why this issue happens so I can use the update version with DHIS2.

Thank you for your time and help.

@jthomas @Edward_Robinson, any other ideas how to solve this issue in DHIS2 2.34.1 or DHIS2 2.35? can you tag anyone who might know how to solve it?

Hello @SaadAlmageedy I still think it’s a minor configuration/network related issue. You an check out play dhis2 2.35 it works actually.

  1. Did you by any chance downgraded dhis2 war file before getting this problem?

  2. Can you give the IP Address instead of localhost in the dhis2.conf ?
    (eg: 192.168.56.251:8080/dhis)

  3. Where did you place the war file? can you tell the location under tomcat

I may have a chance to take a closer look later today.
In the mean time, please output the results of these commands:

where java
java -version

1 Like

Hello @jthomas, Yes, I know that the create standard report works on play dhis2 2.35, that’s why I got confused and the answers for your questions are:
1- No I didn’t.
2- The same issue happens when I change to the IP address.
3- this is the path for the war file “C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9_DHIS2\webapps”

1 Like

Hello @Edward_Robinson,
The result for the commends are:

where java
C:\Program Files (x86)\Common Files\Oracle\Java\javapath\java.exe
C:\Program Files\Java\jdk1.8.0_261\bin\java.exe

java -version
java version “1.8.0_261”
Java™ SE Runtime Environment (build 1.8.0_261-b12)
Java HotSpot™ 64-Bit Server VM (build 25.261-b12, mixed mode)

1 Like

Hello @SaadAlmageedy so few things note here is

  1. What’s the RAM of your system, can we try increasing JAVA_OPTS to a bit higher values than 128 and 512

export JAVA_OPTS='-Xmx2048m -Xms1024m'

  1. You are using windows, and Oracle Java perhaps. Is it possible to use openJDK as it’s the recommended and probably tested one, Install OpenJDK and change the paths temporarily to see whether issue is related to that.

1 Like

Hi @jthomas I did what you asked but unfortunately the issue is still remaining.

  1. The RAM is 8GB, and I increased the JAVA_OPTS to 512 but still.
  2. I downloaded openJDK and change the paths but still.

Can you share me the following parameters from setenv.bat from your tomcat

export JAVA_HOME='/usr/lib/jvm/java-1.8.0-openjdk-amd64/' export JAVA_OPTS='-Xmx2500m -Xms2000m'