Dhis2.30 Failing to start

Dear Members,
My DHIS2.30 is failing to start. This is a clean install not an upgrade. Please look at the enclosed log and assist.

I installed 2.28 on the same server with no problems. I know this is not a new error to most of you.

The error is: Error creating bean with name ‘org.hisp.dhis.schema.PropertyIntrospectorService’: Unsatisfied dependency expressed through field ‘sessionFactory’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘sessionFactory’ defined in URL [jar:file:/home/dhis/tomcat-dhis/webapps/dhis/WEB-INF/lib/dhis-support-hibernate-2.30.jar!/META-INF/dhis/beans.xml]: Invocation of init method failed; nested exception is java.lang.OutOfMemoryError: GC overhead limit exceeded

at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)

at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)

at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1201)

See enclosed file for a complete log.

Thank you in advance.

localhost.2018-08-23.log (29.5 KB)

···

Name: Kabango Malewezi

Jhpiego, City Center, Lilongwe, Malawi

Mobile: +265 (0) 88 4 245 431

skype: kabango.malewezi

Hi there,

It may not be related to this at all, but have you made sure to install the PostGIS extension, required from 2.30?

https://github.com/dhis2/dhis2-releases/blob/master/releases/2.30/README.md

···

Knut Staring

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

No, looks like the problem is out of memory.

You need to tweak your memory settings somehow/somewhere. Where
exactly depends on how much RAM you have free on the machine and what
other processes might be running and using memory and how you have
setup tomcat.

Possibly you need to increase the size of Xmx (heap space) in your
java options. Or you might need to remove or scale back something
else which is running on your machine.

···

On 23 August 2018 at 15:50, Knut Staring <knutst@gmail.com> wrote:

Hi there,

It may not be related to this at all, but have you made sure to install the
PostGIS extension, required from 2.30?

https://github.com/dhis2/dhis2-releases/blob/master/releases/2.30/README.md

On Thu, Aug 23, 2018 at 4:46 PM Kabango Malewezi <kmalewezi@gmail.com> > wrote:

Dear Members,
My DHIS2.30 is failing to start. This is a clean install not an upgrade.
Please look at the enclosed log and assist.
I installed 2.28 on the same server with no problems. I know this is not a
new error to most of you.

The error is: Error creating bean with name
'org.hisp.dhis.schema.PropertyIntrospectorService': Unsatisfied dependency
expressed through field 'sessionFactory'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'sessionFactory' defined in URL
[jar:file:/home/dhis/tomcat-dhis/webapps/dhis/WEB-INF/lib/dhis-support-hibernate-2.30.jar!/META-INF/dhis/beans.xml]:
Invocation of init method failed; nested exception is
java.lang.OutOfMemoryError: GC overhead limit exceeded
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:749)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:189)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1201)

See enclosed file for a complete log.

Thank you in advance.

--

Name: Kabango Malewezi

Jhpiego, City Center, Lilongwe, Malawi

Mobile: +265 (0) 88 4 245 431

skype: kabango.malewezi

_______________________________________________
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

Department of Information, Evidence and Research
World Health Organization, Geneva, Switzerland
Office: +41 22 791 3683 Mob1: +33 6 4434 2931 Mob2: +47 9188 0522
Skype: knutstar

_______________________________________________
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

Thanks, I’ll look into it.

···

Name: Kabango Malewezi

Jhpiego, City Center, Lilongwe, Malawi

Mobile: +265 (0) 88 4 245 431

skype: kabango.malewezi

Thanks for the advice it worked out. It was indeed memory. I did not allocate enough memory to Java.

Kabango

···

Name: Kabango Malewezi

Jhpiego, City Center, Lilongwe, Malawi

Mobile: +265 (0) 88 4 245 431

skype: kabango.malewezi

A post was merged into an existing topic: DHIS2- TompCat Issue(Java heap space) caused by out of memeory error