Problems starting DHIS with 2.20

Hi devs,
I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:

* ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit
  at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)

Any advice on what might be causing this? I even tried "downgrading" the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.

Olav

220 startup issue.txt (13.3 KB)

Hi Olav

Are you using the latest 2.20? there was some fixes related to this yesterday

···

On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:

Hi devs,

I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:

  • ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit

      at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
    

Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.

Olav


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


Morten

Thanks Morten, unfortunately I still get the same problem with the latest 2.20 build.

Olav

···

On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:

Hi devs,

I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:

  • ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit

      at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
    

Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.

Olav


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


Morten

Is the database something you can share? the error you are getting is very strange…

···

On Wed, Aug 19, 2015 at 4:16 AM, Olav Poppe olav.poppe@me.com wrote:

Olav

Thanks Morten, unfortunately I still get the same problem with the latest 2.20 build.

  1. aug. 2015 kl. 12.34 skrev Morten Olav Hansen mortenoh@gmail.com:

Hi Olav

Are you using the latest 2.20? there was some fixes related to this yesterday


Morten


Morten

On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:

Hi devs,

I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:

  • ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit

      at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
    

Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.

Olav


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 Morten, will send it to you privately.

Olav

···

On Wed, Aug 19, 2015 at 4:16 AM, Olav Poppe olav.poppe@me.com wrote:

Olav

Thanks Morten, unfortunately I still get the same problem with the latest 2.20 build.

  1. aug. 2015 kl. 12.34 skrev Morten Olav Hansen mortenoh@gmail.com:

Hi Olav

Are you using the latest 2.20? there was some fixes related to this yesterday


Morten


Morten

On Tue, Aug 18, 2015 at 4:41 PM, Olav Poppe olav.poppe@me.com wrote:

Hi devs,

I’m having problems upgrading a database from 2.19 to 2.20. I get the follow error during startup (full stack trace of error attached), between stage 5 and 6 of the routine:

  • ERROR 2015-08-15 18:39:48,458 org.hibernate.TransientObjectException: object references an unsaved transient instance - save the transient instance before flushing: org.hisp.dhis.organisationunit.OrganisationUnit

      at org.hibernate.engine.internal.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:249)
    

Any advice on what might be causing this? I even tried “downgrading” the database to 2.19 (after trying to start it with 2.20), and it then starts without issues - so seems limited to 2.20.

Olav


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