If it already works fine, then all is good. Michael
Am 18.06.2014 um 13:10 schrieb Mamta Thakur <ghazal.ma...@gmail.com>: > Thanks Michael removing the graph.db/index/lucene.log.* helped and I am able > to access few of APIs. So I think we are good with upgrade. > Some complains for older version of cypher that uses "?". > > "and you _might_ need to create a transaction against an index, like creating > an index and deleting it again, e.g. from java code or the shell. > > db.index().forNodex("foo").delete()" > > Do I still need to do this? Wouldn't this clear all the indexes that we have > for all the different type of nodes? say "foo" and "bar". > > > Regards, > Mamta. > > On Tuesday, June 17, 2014 8:51:36 PM UTC+5:30, Michael Hunger wrote: > No, as you have a clean shutdown all the data is in the store. > > Sent from mobile device > > Am 17.06.2014 um 16:55 schrieb Mamta Thakur <ghazal...@gmail.com>: > >> Hi Michael, >> >> Does that mean I will loose the existing index as well? How would any of my >> queries work? >> >> I fixed some of the @RelationshipEntity that did not have an @GraphId >> required with 2.0.3. >> Now I don't get this error on start up rather I get this error when shutting >> down the server. >> >> ~Mamta. >> >> On Tuesday, June 17, 2014 7:36:10 PM UTC+5:30, Michael Hunger wrote: >> Btw. just got the info that it is fixed and will be part of 2.0.4 >> >> https://github.com/neo4j/neo4j/commit/37371aa (Thanks Jake!) >> >> Michael >> Am 17.06.2014 um 14:55 schrieb Michael Hunger <michael...@neotechnology.com>: >> >>> This is a know issue which is currently worked on, >>> >>> can you delete the logical log files of the lucene index after your upgrade? >>> >>> that means >>> >>> rm graph.db/index/lucene.log.* >>> >>> and you _might_ need to create a transaction against an index, like creating >>> an index and deleting it again, e.g. from java code or the shell. >>> >>> db.index().forNodex("foo").delete() >>> >>> >>> >>> Thanks a lot >>> >>> Michael >>> >>> Am 17.06.2014 um 09:59 schrieb Mamta Thakur <ghazal...@gmail.com>: >>> >>>> Hi, >>>> >>>> I have been trying to upgrade neo4j from 1.9.3 to 2.0.3. SDN from >>>> 2.3.1.RELEASE to 3.1.0.RELEASE. >>>> >>>> Followed the steps listed @ >>>> http://docs.neo4j.org/chunked/stable/deployment-upgrading.html#explicit-upgrade >>>> I try bringing up the server with the upgrade configuration.There are a >>>> few new folders created in the db store. One among which is upgrade_backup >>>> and messages log there says upgrade happened. >>>> >>>> 2014-06-17 07:16:55.286+0000 INFO [o.n.k.i.DiagnosticsManager]: --- >>>> INITIALIZED diagnostics END --- >>>> 2014-06-17 07:17:00.216+0000 INFO [o.n.k.i.n.s.StoreFactory]: Starting >>>> upgrade of database store files >>>> 2014-06-17 07:17:00.225+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 10% complete >>>> 2014-06-17 07:17:00.228+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 20% complete >>>> 2014-06-17 07:17:00.231+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 30% complete >>>> 2014-06-17 07:17:00.233+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 40% complete >>>> 2014-06-17 07:17:00.236+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 50% complete >>>> 2014-06-17 07:17:00.239+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 60% complete >>>> 2014-06-17 07:17:00.241+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 70% complete >>>> 2014-06-17 07:17:00.244+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 80% complete >>>> 2014-06-17 07:17:00.247+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 90% complete >>>> 2014-06-17 07:17:00.249+0000 INFO [o.n.k.i.n.s.StoreFactory]: Store >>>> upgrade 100% complete >>>> 2014-06-17 07:17:03.776+0000 INFO [o.n.k.i.n.s.StoreFactory]: Finished >>>> upgrade of database store files >>>> >>>> But I get the error with log/index. >>>> >>>> Exception when stopping >>>> org.neo4j.index.impl.lucene.LuceneDataSource@42a792f0 >>>> org.neo4j.kernel.impl.tran >>>> saction.xaframework.IllegalLogFormatException: Invalid log format version >>>> found, expected 3 but was 2. To be able to upgrade from an older log >>>> format version there must have been a clean shutdown of the database >>>> java.lang.RuntimeException: >>>> org.neo4j.kernel.impl.transaction.xaframework.IllegalLogFormatException: >>>> Invalid log format version found, expected 3 but wa >>>> s 2. To be able to upgrade from an older log format version there must >>>> have been a clean shutdown of the database >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy$1.reached(LogPruneStrategies.java:250) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$AbstractPruneStrategy.prune(LogPruneStrategies.java:78) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy.prune(LogPruneStrategies.java:222) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.close(XaLogicalLog.java:742) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogBackedXaDataSource.stop(LogBackedXaDataSource.java:69) >>>> at >>>> org.neo4j.index.impl.lucene.LuceneDataSource.stop(LuceneDataSource.java:310) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.shutdown(LifeSupport.java:547) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport.remove(LifeSupport.java:339) >>>> at >>>> org.neo4j.kernel.impl.transaction.XaDataSourceManager.unregisterDataSource(XaDataSourceManager.java:272) >>>> at >>>> org.neo4j.index.lucene.LuceneKernelExtension.stop(LuceneKernelExtension.java:92) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155) >>>> at >>>> org.neo4j.kernel.extension.KernelExtensions.stop(KernelExtensions.java:124) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport$LifecycleInstance.stop(LifeSupport.java:527) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport.stop(LifeSupport.java:155) >>>> at >>>> org.neo4j.kernel.lifecycle.LifeSupport.shutdown(LifeSupport.java:185) >>>> at >>>> org.neo4j.kernel.InternalAbstractGraphDatabase.shutdown(InternalAbstractGraphDatabase.java:801) >>>> at >>>> org.springframework.data.neo4j.support.DelegatingGraphDatabase.shutdown(DelegatingGraphDatabase.java:270) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>>> at java.lang.reflect.Method.invoke(Unknown Source) >>>> at >>>> org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:327) >>>> at >>>> org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253) >>>> at >>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:510) >>>> at >>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:486) >>>> at >>>> org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:742) >>>> at >>>> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:455) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1090) >>>> at >>>> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:487) >>>> at >>>> org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:389) >>>> at >>>> org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:294) >>>> at >>>> org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112) >>>> at >>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206) >>>> at >>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4705) >>>> at >>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799) >>>> at >>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779) >>>> at >>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601) >>>> at >>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:943) >>>> at >>>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:778) >>>> at >>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:504) >>>> at >>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1317) >>>> at >>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:324) >>>> at >>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) >>>> at >>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1065) >>>> at >>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:840) >>>> at >>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) >>>> at >>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) >>>> at >>>> org.apache.catalina.core.StandardService.start(StandardService.java:525) >>>> at >>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:754) >>>> at org.apache.catalina.startup.Catalina.start(Catalina.java:595) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >>>> at java.lang.reflect.Method.invoke(Unknown Source) >>>> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) >>>> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) >>>> Caused by: >>>> org.neo4j.kernel.impl.transaction.xaframework.IllegalLogFormatException: >>>> Invalid log format version found, expected 3 but was 2. To be able t >>>> o upgrade from an older log format version there must have been a clean >>>> shutdown of the database >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogIoUtils.readLogHeader(LogIoUtils.java:70) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.getFirstStartRecordTimestamp(XaLogicalLog.java:1704) >>>> at >>>> org.neo4j.kernel.impl.transaction.xaframework.LogPruneStrategies$TransactionTimeSpanPruneStrategy$1.reached(LogPruneStrategies.java:246) >>>> ... 57 more >>>> >>>> Does anyone have any idea on how to fix this? Also tried upgrading to the >>>> latest version(2.1.2) but results with the same error. >>>> >>>> -- >>>> You received this message because you are subscribed to the Google Groups >>>> "Neo4j" group. >>>> To unsubscribe from this group and stop receiving emails from it, send an >>>> email to neo4j+un...@googlegroups.com. >>>> For more options, visit https://groups.google.com/d/optout. >>> >> >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Neo4j" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to neo4j+un...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.