Issue with Settings App after upgrade to 2.22

Hello,

I am having trouble with the Settings App after upgrade from 2.21 to 2.22.

When I click on Apps and on Settings, the page continues to load for hours (see snapshot below) but it never displays the Settings page.

I have cleared cache and switched to Tomcat 8 but it didn’t make a difference. Meanwhile, nothing shows up in tomcat/logs

The interesting part is that when I roll the server back to dhis2.21 the settings App loads fine but not with 2.22.

I am using Apache server with Tomcat 7.0.67 and Java 8

dhis2 build version: 21775
I will appreciate any help.

Thanks,

Ese

Inline image 1

image

Hi Ese,

Please look for errors in your browser console (under Developer Tools) and report back.

Knut

image

···

On Sat, Jan 23, 2016 at 1:59 PM, Ese Egerega egerega@gmail.com wrote:

Hello,

I am having trouble with the Settings App after upgrade from 2.21 to 2.22.

When I click on Apps and on Settings, the page continues to load for hours (see snapshot below) but it never displays the Settings page.

I have cleared cache and switched to Tomcat 8 but it didn’t make a difference. Meanwhile, nothing shows up in tomcat/logs

The interesting part is that when I roll the server back to dhis2.21 the settings App loads fine but not with 2.22.

I am using Apache server with Tomcat 7.0.67 and Java 8

dhis2 build version: 21775
I will appreciate any help.

Thanks,

Ese


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

Thanks for responding Knut.

This is the error log from developer tools:

Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection
Stack trace:
r@http://localhost/dhis/dhis-web-settings/settings-app.js:7:19119
a/<@http://localhost/dhis/dhis-web-settings/settings-app.js:30:2327
a@http://localhost/dhis/dhis-web-settings/settings-app.js:30:2280
e@http://localhost/dhis/dhis-web-settings/settings-app.js:30:3032
y</<.value@http://localhost/dhis/dhis-web-settings/settings-app.js:30:4631
_</<.value/<@http://localhost/dhis/dhis-web-settings/settings-app.js:23:6209
[138]</A/</c@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:2:4722
[138]</A/<@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:2:4839
[52]</h@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:1:14553
browser-polyfill.min.js:2:5023

Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection
Stack trace:
r@http://localhost/dhis/dhis-web-settings/settings-app.js:7:19119
a/<@http://localhost/dhis/dhis-web-settings/settings-app.js:30:2327
a@http://localhost/dhis/dhis-web-settings/settings-app.js:30:2280
e@http://localhost/dhis/dhis-web-settings/settings-app.js:30:3032
y</<.value@http://localhost/dhis/dhis-web-settings/settings-app.js:30:4631
_</<.value/<@http://localhost/dhis/dhis-web-settings/settings-app.js:23:6209
[138]</A/</c@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:2:4722
[138]</A/<@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:2:4839
[52]</h@http://localhost/dhis/dhis-web-settings/browser-polyfill.min.js:1:14553
browser-polyfill.min.js:2:5023

Failed to load system settings: Object { readyState: 4, getResponseHeader: .ajax/v.getResponseHeader(), getAllResponseHeaders: .ajax/v.getAllResponseHeaders(), setRequestHeader: .ajax/v.setRequestHeader(), overrideMimeType: .ajax/v.overrideMimeType(), statusCode: .ajax/v.statusCode(), abort: .ajax/v.abort(), state: .Deferred/d.state(), always: .Deferred/d.always(), promise: .Deferred/d.promise(), 10 more… } settings-app.js:1:2778

GET http://localhost/dhis/api/systemSettings 500 (Internal Server Error)

Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection(…)(anonymous function) @ browser-polyfill.min.js:2
browser-polyfill.min.js:2 Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection(…)(anonymous function) @ browser-polyfill.min.js:2

noshade=“noshade”>

Apache Tomcat/7.0.67

"setRequestHeader: (a,b)state: ()status: 500statusCode: (a)statusText: "Internal Server Error"success: ()proto: Object
Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection(…)
Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection(…)

Unhandled promise rejection Error: Can not add a Model without id to a ModelCollection(…)(anonymous function) @ browser-polyfill.min.js:2
jquery.min.js:4 GET http://hivcare.fghin.org.ng/dhis/api/systemSettings 500 (Internal Server Error)k.cors.a.crossDomain.send @ jquery.min.js:4n.extend.ajax @ jquery.min.js:4(anonymous function) @ Api.js:130_ @ browser-polyfill.min.js:2l.value @ Api.js:123l.value @ Api.js:73i.value @ SystemSettings.js:67(anonymous function) @ settings-app.js:68Fe.AnonymousObserver.t.next @ rx.all.js:1777Fe.internals.AbstractObserver.t.onNext @ rx.all.js:1711Fe.Subject.Wt.onNext @ rx.all.js:10185(anonymous function) @ Action.js:50_ @ browser-polyfill.min.js:2(anonymous function) @ Action.js:49(anonymous function) @ settings-app.js:145c @ browser-polyfill.min.js:2(anonymous function) @ browser-polyfill.min.js:2h @ browser-polyfill.min.js:1

Failed to load system settings: Object {readyState: 4, responseText: “Apache Tomcat/7.0.67 - Error re…hade”>

Apache Tomcat/7.0.67

", status: 500, statusText: “Internal Server Error”}abort: (a)always: ()complete: ()done: ()error: ()fail: ()getAllResponseHeaders: ()getResponseHeader: (a)overrideMimeType: (a)pipe: ()progress: ()promise: (a)readyState: 4responseText: "Apache Tomcat/7.0.67 - Error report

HTTP Status 500 - Request processing failed; nested exception is org.hibernate.type.SerializationException: could not deserialize


type Exception report

message Request processing failed; nested exception is org.hibernate.type.SerializationException: could not deserialize

description The server encountered an internal error that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.hibernate.type.SerializationException: could not deserialize↵    org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:977)↵    org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:856)↵    javax.servlet.http.HttpServlet.service(HttpServlet.java:624)↵    org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:841)↵    javax.servlet.http.HttpServlet.service(HttpServlet.java:731)↵    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)↵    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)↵    org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:88)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:64)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:140)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filt…g.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filter.CorsFilter.doFilter(CorsFilter.java:88)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filter.CustomAuthenticationFilter.doFilter(CustomAuthenticationFilter.java:64)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:140)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.hisp.dhis.security.filter.AutomaticAccessFilter.doFilter(AutomaticAccessFilter.java:115)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:57)↵    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)↵    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)↵    org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)↵    org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)↵    org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)↵    org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)↵    org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)↵    org.springframework.web.filter.ShallowEtagHeaderFilter.doFilterInternal(ShallowEtagHeaderFilter.java:82)↵    org.hisp.dhis.servlet.filter.ExcludableShallowEtagHeaderFilter.doFilterInternal(ExcludableShallowEtagHeaderFilter.java:102)↵    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)↵    org.springframework.orm.hibernate4.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:151)↵    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)↵    org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:85)↵    org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)↵

note The full stack trace of the root cause is available in the Apache Tomcat/7.0.67 logs.


Apache Tomcat/7.0.67

"setRequestHeader: (a,b)state: ()status: 500statusCode: (a)statusText: "Internal Server Error"success: ()proto: Object(anonymous function) @ settings-app.js:99c @ browser-polyfill.min.js:2(anonymous function) @ browser-polyfill.min.js:2h @ browser-polyfill.min.js:1

image

···

On Sat, Jan 23, 2016 at 2:52 PM, Knut Staring knutst@gmail.com wrote:

Hi Ese,

Please look for errors in your browser console (under Developer Tools) and report back.

Knut

On Sat, Jan 23, 2016 at 1:59 PM, Ese Egerega egerega@gmail.com wrote:

Hello,

I am having trouble with the Settings App after upgrade from 2.21 to 2.22.

When I click on Apps and on Settings, the page continues to load for hours (see snapshot below) but it never displays the Settings page.

I have cleared cache and switched to Tomcat 8 but it didn’t make a difference. Meanwhile, nothing shows up in tomcat/logs

The interesting part is that when I roll the server back to dhis2.21 the settings App loads fine but not with 2.22.

I am using Apache server with Tomcat 7.0.67 and Java 8

dhis2 build version: 21775
I will appreciate any help.

Thanks,

Ese


Mailing list: https://launchpad.net/~dhis2-users

Post to : dhis2-users@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-users

More help : https://help.launchpad.net/ListHelp

Knut Staring

Dept. of Informatics, University of Oslo

Norway: +4791880522

Skype: knutstar

http://dhis2.org

This should have produced a log on your server (it should give what we call
a stack trace), can you have a look in your catalina.out file and send us
the error that is produced during loading of the settings app?

···

On Sat, Jan 23, 2016 at 11:17 PM, Ese Egerega <egerega@gmail.com> wrote:

GET http://localhost/dhis/api/systemSettings 500 (Internal Server Error)

--
Morten

Hi Morten,

I used tail /catalina.out -f to see the log real-time but nothing shows up when loading the settings app. I have copied everything in catalina.out file below.

Between, after hours of loading the settings app, the pages displays D2 initialization error: Unable to get schemas from the DHIS2 API

Jan 23, 2016 5:02:36 PM org.apache.catalina.core.StandardServer await
INFO: A valid shutdown command was received via the shutdown port. Stopping the Server instance.
Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [“http-bio-8080”]
Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler [“ajp-bio-8009”]
Jan 23, 2016 5:02:36 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina

  • INFO 2016-01-23 17:02:36,833 De-registering jdbc driver: org.postgresql.Driver@4c019ec8 (StartupListener.java [localhost-startStop-2])
    Jan 23, 2016 5:02:36 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/dhis] appears to have started a thread named [com.google.inject.internal.util.$Finalizer] but has failed to stop it. This is very likely to create a memory leak.
    Jan 23, 2016 5:02:36 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/dhis] appears to have started a thread named [GT authority factory disposer] but has failed to stop it. This is very likely to create a memory leak.
    Jan 23, 2016 5:02:36 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
    SEVERE: The web application [/dhis] appears to have started a thread named [WeakCollectionCleaner] but has failed to stop it. This is very likely to create a memory leak.
    Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler [“http-bio-8080”]
    Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol stop
    INFO: Stopping ProtocolHandler [“ajp-bio-8009”]
    Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler [“http-bio-8080”]
    Jan 23, 2016 5:02:36 PM org.apache.coyote.AbstractProtocol destroy
    INFO: Destroying ProtocolHandler [“ajp-bio-8009”]
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Server version: Apache Tomcat/7.0.67
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Server built: Dec 7 2015 13:07:11 UTC
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Server number: 7.0.67.0
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: OS Name: Linux
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: OS Version: 3.13.0-36-generic
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Architecture: amd64
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Java Home: /usr/lib/jvm/java-8-oracle/jre
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: JVM Version: 1.8.0_66-b17
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: JVM Vendor: Oracle Corporation
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: CATALINA_BASE: /home/ubuntu/tomcat-dhis
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: CATALINA_HOME: /home/ubuntu/tomcat-dhis
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Djava.util.logging.config.file=/home/ubuntu/tomcat-dhis/conf/logging.properties
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Xmx7500m
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Xms3000m
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Djava.endorsed.dirs=/home/ubuntu/tomcat-dhis/endorsed
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Dcatalina.base=/home/ubuntu/tomcat-dhis
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Dcatalina.home=/home/ubuntu/tomcat-dhis
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.VersionLoggerListener log
    INFO: Command line argument: -Djava.io.tmpdir=/home/ubuntu/tomcat-dhis/temp
    Jan 23, 2016 5:02:42 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
    Jan 23, 2016 5:02:42 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler [“http-bio-8080”]
    Jan 23, 2016 5:02:42 PM org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler [“ajp-bio-8009”]
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 648 ms
    Jan 23, 2016 5:02:42 PM org.apache.catalina.core.StandardService startInternal
    INFO: Starting service Catalina
    Jan 23, 2016 5:02:42 PM org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.67
    Jan 23, 2016 5:02:42 PM org.apache.catalina.startup.HostConfig deployWAR
    INFO: Deploying web application archive /home/ubuntu/apache-tomcat-7.0.67/webapps/dhis.war
    Jan 23, 2016 5:02:48 PM org.apache.catalina.startup.TldConfig execute
    INFO: 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.
  • INFO 2016-01-23 17:02:53,301 System property dhis2.home not set (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2016-01-23 17:02:53,305 Environment variable DHIS2_HOME points to /home/ubuntu/config (DefaultLocationManager.java [localhost-startStop-1])
  • INFO 2016-01-23 17:02:54,714 Hibernate configuration loaded, using dialect: org.hibernate.dialect.PostgreSQLDialect (DefaultHibernateConfigurationProvider.java [localhost-startStop-1])
  • INFO 2016-01-23 17:03:24,486 File store configured with provider ‘filesystem’ and container ‘files’. (JCloudsFileResourceContentStore.java [localhost-startStop-1])
  • INFO 2016-01-23 17:03:24,594 Scheduled task with key: fileResourceCleanupTask and cron: 0 0 2 * * ? (SpringScheduler.java [localhost-startStop-1])
  • INFO 2016-01-23 17:03:26,348 Detected apps: [] (DefaultAppManager.java [localhost-startStop-1])
  • INFO 2016-01-23 17:03:26,875 Listeners registered are [org.hisp.dhis.sms.listener.DataValueSMSListener@7369a633, org.hisp.dhis.sms.listener.J2MEDataValueSMSListener@777e8ab, org.hisp.dhis.sms.listener.UnregisteredSMSListener@49376276, org.hisp.dhis.sms.listener.DHISMessageAlertListener@687532ed, org.hisp.dhis.sms.listener.TrackedEntityRegistrationSMSListener@561359ee] (SmsConsumerThread.java [localhost-startStop-1])
  • INFO 2016-01-23 17:03:26,884 Found the following message senders: [org.hisp.dhis.message.EmailMessageSender@5dec916e, org.hisp.dhis.sms.SmsMessageSender@1ccf3a40] (DefaultMessageService.java [localhost-startStop-1])
···

On Sat, Jan 23, 2016 at 5:49 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

On Sat, Jan 23, 2016 at 11:17 PM, Ese Egerega egerega@gmail.com wrote:

GET http://localhost/dhis/api/systemSettings 500 (Internal Server Error)

This should have produced a log on your server (it should give what we call a stack trace), can you have a look in your catalina.out file and send us the error that is produced during loading of the settings app?


Morten

Dear Morten, Knut;

Am thinking that the problem has to do with my database. I just setup a new instance of dhis2 on the same server and the Settings Apps worked fine. It stopped working again once I connected to the old database.

The database was originally on dhis 2.18 and over time I upgraded to 2.19 and then to 2.20 and 2.21 and I ran the upgrade scripts at each level so am wondering what could be wrong with the database?

Thanks,

Ese

···

On Sat, Jan 23, 2016 at 5:49 PM, Morten Olav Hansen mortenoh@gmail.com wrote:

On Sat, Jan 23, 2016 at 11:17 PM, Ese Egerega egerega@gmail.com wrote:

GET http://localhost/dhis/api/systemSettings 500 (Internal Server Error)

This should have produced a log on your server (it should give what we call a stack trace), can you have a look in your catalina.out file and send us the error that is produced during loading of the settings app?


Morten

Dear Ese,

I had a similar issue and enabling code cache flashing resolved my issue; the application was behaving as if there was a memory leak.

In your setenv.sh, modify the java_opts as follows export JAVA_OPTS=‘-Xmx7500m -Xms4000m -XX:+UseCodeCacheFlushing’ and/or modify the respective java_opts environmental system variable to enable code flushing.

Alternately you can increase the size of reserved code cache but this was a temporary fix for me. You can read more about code cache tuning here: https://docs.oracle.com/javase/8/embedded/develop-apps-platforms/codecache.htm

PS: Tomcat 8 was giving me more frequent ‘freezes’, I had to ‘run’ back to ver 7

I hope this helps,

Ali

image

···

On Sat, Jan 23, 2016 at 3:59 PM, Ese Egerega egerega@gmail.com wrote:

Hello,

I am having trouble with the Settings App after upgrade from 2.21 to 2.22.

When I click on Apps and on Settings, the page continues to load for hours (see snapshot below) but it never displays the Settings page.

I have cleared cache and switched to Tomcat 8 but it didn’t make a difference. Meanwhile, nothing shows up in tomcat/logs

The interesting part is that when I roll the server back to dhis2.21 the settings App loads fine but not with 2.22.

I am using Apache server with Tomcat 7.0.67 and Java 8

dhis2 build version: 21775
I will appreciate any help.

Thanks,

Ese


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Thanks a lot Ali.

A workaround for me was to setup a new instance of 2.22 and then I imported the meta-data and values from the instance with Settings App issue. This was a bit of a challenge because I had to recreate most of the tracker programs.

-Ese

image

···

On Sat, Jan 23, 2016 at 3:59 PM, Ese Egerega egerega@gmail.com wrote:

Hello,

I am having trouble with the Settings App after upgrade from 2.21 to 2.22.

When I click on Apps and on Settings, the page continues to load for hours (see snapshot below) but it never displays the Settings page.

I have cleared cache and switched to Tomcat 8 but it didn’t make a difference. Meanwhile, nothing shows up in tomcat/logs

The interesting part is that when I roll the server back to dhis2.21 the settings App loads fine but not with 2.22.

I am using Apache server with Tomcat 7.0.67 and Java 8

dhis2 build version: 21775
I will appreciate any help.

Thanks,

Ese


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

1 Like