Hi Nico, This particular migration appears to be related to workflow, and a previous thread mentions that it could be caused by configurable workflow being enabled for an initial build, but not enabled for your latest build? That seems unusual if this is a completely fresh install... have you enabled/disabled configurable workflow during the build/deploy process at all? The migration could have failed during fresh_install for some spurious reason as well, so repairing/starting again isn't a bad idea.
If this is a truly scratch install and your database is considered throwaway, then I'd recommend 1. running [dspace]/bin/dspace database repair (this will inspect and attempt to repair failed flyway migrations) 2. if no luck confirming that configurable workflow is as you want it (enabled/disabled/configured) and delete the DSpace database, recreate and perform fresh install again The thread I'm referring to is at https://groups.google.com/d/msg/dspace-tech/oYFQHUSNhiY/vc-AcM7aFAAJ Hope this helps! Cheers Kim On Wednesday, January 25, 2017 at 2:56:56 PM UTC+13, Nico Schwab wrote: > > Hi kim, > > I was wrong, I found this on mi dspace log: > > java.sql.SQLException: Flyway migration error occurred > at > org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:666) > at > org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:574) > at > org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:550) > at org.dspace.core.Context.<clinit>(Context.java:94) > at > org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:74) > at > org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31) > at > org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) > at > org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) > at > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) > at > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) > at > org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) > at > org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962) > at > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.flywaydb.core.api.FlywayException: Validate failed: > Detected applied migration not resolved locally: 5.0.2014.11.04 > at org.flywaydb.core.Flyway.doValidate(Flyway.java:1008) > at org.flywaydb.core.Flyway.access$100(Flyway.java:72) > at org.flywaydb.core.Flyway$1.execute(Flyway.java:921) > at org.flywaydb.core.Flyway$1.execute(Flyway.java:917) > at org.flywaydb.core.Flyway.execute(Flyway.java:1373) > at org.flywaydb.core.Flyway.migrate(Flyway.java:917) > at > org.dspace.storage.rdbms.DatabaseUtils.updateDatabase(DatabaseUtils.java:655) > ... 18 more > > What should I do about it? > > El viernes, 20 de enero de 2017, 19:37:28 (UTC-3), Kim Shepherd escribió: >> >> Hi Nico, it's hard to diagnose this problem exactly... although the >> problem seems to be that you're getting back a null Hibernate session for >> the context, I'd say your postgres database connections should be OK since >> your ant fresh_install finished successfully, which includes lots of db >> writes and checks, so I think the problem area could be the way the >> webapps/context are deployed in Tomcat and/or their references to >> dspace.home or dspace.config. >> >> Could you share some more information such as >> - which log is this exception from? >> - how is Tomcat is configured to point to the xmlui and solr webapps? >> - are there any other deployment / startup errors or warnings in your raw >> catalina logs? >> >> Cheers >> >> Kim >> >> On Friday, January 20, 2017 at 4:41:25 PM UTC+13, Nico Schwab wrote: >>> >>> Hi everybody, >>> >>> I'm having problems installing a fresh DSpace6. >>> The steps I've made are: >>> >>> 1. clone de repository >>> 2. create a new DB and add pgcrypto extension >>> 3. setup de local.cfg >>> 4. mvn clean package (finish ok) >>> 5. ant fresh_install (finish ok) >>> 6. configure tomcat 7 (and also tried with tomcat8) so it points to >>> xmlui and solr >>> 7. start tomcat >>> >>> The error I'm getting is this (by the way, I'm ussing Java 8): >>> >>> >>> GRAVE: Excepción enviando evento inicializado de contexto a instancia de >>> escuchador de clase org.dspace.app.util.DSpaceWebappListener >>> java.lang.NullPointerException >>> at >>> org.dspace.core.AbstractHibernateDAO.getHibernateSession(AbstractHibernateDAO.java:48) >>> at >>> org.dspace.core.AbstractHibernateDAO.create(AbstractHibernateDAO.java:38) >>> at >>> org.dspace.app.util.WebAppServiceImpl.create(WebAppServiceImpl.java:49) >>> at >>> org.dspace.app.util.AbstractDSpaceWebapp.register(AbstractDSpaceWebapp.java:75) >>> at >>> org.dspace.app.util.DSpaceWebappListener.contextInitialized(DSpaceWebappListener.java:31) >>> at >>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068) >>> at >>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584) >>> at >>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) >>> at >>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899) >>> at >>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875) >>> at >>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:652) >>> at >>> org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:677) >>> at >>> org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1962) >>> at >>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) >>> at java.util.concurrent.FutureTask.run(FutureTask.java:266) >>> at >>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) >>> at >>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) >>> at java.lang.Thread.run(Thread.java:745) >>> >>> >>> >>> Any idea ? I'm stuck... >>> >> -- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/dspace-tech. For more options, visit https://groups.google.com/d/optout.
