after a fresh DHIS 2.36.4 installation, I can’t access the Users application.
I get this error message:
An error occurred in the DHIS2 application.
The following information may be requested by technical support.
TypeError: a.canCreate is not a function
at hn.userHasAuthorities (https://dhis2-redacted-url:10443/dhis-web-user/static/js/app.c2c3db7f.chunk.js:1:458197)
at routeConfig.nn.reduce.routes (https://dhis2-redacted-url:10443/dhis-web-user/static/js/app.c2c3db7f.chunk.js:1:458019)
at Array.reduce (<anonymous>)
at hn.setRouteConfig (https://dhis2-redacted-url:10443/dhis-web-user/static/js/app.c2c3db7f.chunk.js:1:457962)
at hn.componentWillReceiveProps (https://dhis2-redacted-url:10443/dhis-web-user/static/js/app.c2c3db7f.chunk.js:1:457663)
at pa (https://dhis2-redacted-url:10443/dhis-web-user/static/js/139.dba057a8.chunk.js:2:313221)
at Si (https://dhis2-redacted-url:10443/dhis-web-user/static/js/139.dba057a8.chunk.js:2:329242)
at Ci (https://dhis2-redacted-url:10443/dhis-web-user/static/js/139.dba057a8.chunk.js:2:334212)
at Fo (https://dhis2-redacted-url:10443/dhis-web-user/static/js/139.dba057a8.chunk.js:2:358124)
at Yo (https://dhis2-redacted-url:10443/dhis-web-user/static/js/139.dba057a8.chunk.js:2:358508)
---
in hn
in Connect(hn)
in t
in withRouter(Connect(hn))
in t
in div
in Tn
in t
in Gn
in a
in Unknown
in Suspense
in div
in E
in div
in H
in Q
in Y
in DHIS2RuntimeProvider
in P
in N
in R
in m
You might want to upgrade to one of the latest and supported versions. 2.36 is no longer a supported version and therefore not maintained and the issue that you are facing might have already been fixed in later versions.
There are several things you might want to check:
Is this a cache issue? If you run Maintenance (reload apps, clear application cache) in Data Administration app and then if you open in Guest mode ( Browse Chrome as a guest - Computer - Google Chrome Help) does the issue still occur?
Does this occur to all users including a superuser with ALL authority?
What changes were made that made the app crash?
Are you able to reproduce this in later versions on a clean installation? One option is to try on play.dhis2.org
Additionally, community members sharing solutions and challenges help in expanding the knowledge base and the global support so it might be worth checking other topic posts similar to the issue you posted and share your experience or comments about the solutions provided. I think the topics below are similar:
here nginx is acting as a reverse proxy, and DHIS2 (Tomcat) is listening on localhost:8080.
I think that if we change the proxy_pass directive in nginx.conf, it won’t work at all.