Upgrade from 2.0.3 to 2.1.3 ==> Starting Neo4j Server failed: ... Unable to upgrade database

490 views
Skip to first unread message

AJ NOURI

unread,
Aug 3, 2014, 6:16:12 AM8/3/14
to ne...@googlegroups.com
The last working version was 2.0.3. I cannot upgrade to any higher version, I'am getting the same error message:

Starting Neo4j Server failed: Startup failed due to preflight task [class org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable to upgrade database



Though, I followed instructions in http://docs.neo4j.org/chunked/snapshot/deployment-upgrading.html#deployment-upgrading-two-zero and have changed  "allow_store_upgrade=true" inside neo4j.properties to allow upgrade.


-------------

Here is the content of console.log

12:04:35.475 [AWT-EventQueue-0] INFO  org.neo4j.server.CommunityNeoServer - Setting startup timeout to: 120000ms based on -1
12:04:35.702 [AWT-EventQueue-0] INFO  o.n.s.p.PerformUpgradeIfNecessary - Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
12:04:35.703 [AWT-EventQueue-0] INFO  o.n.server.preflight.PreFlightTasks - Failed to start Neo4j with an older data store version. To enable automatic upgrade, please set configuration parameter "allow_store_upgrade=true"
12:05:32.729 [AWT-EventQueue-0] INFO  org.neo4j.server.CommunityNeoServer - Setting startup timeout to: 120000ms based on -1
12:05:32.847 [AWT-EventQueue-0] ERROR o.n.s.p.PerformUpgradeIfNecessary - Unknown error
java.lang.NullPointerException: null
at org.neo4j.kernel.impl.storemigration.StoreMigrator.moveMigratedFiles(StoreMigrator.java:232) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.moveMigratedFilesToWorkingDirectory(StoreUpgrader.java:225) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:171) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreMigrationTool.run(StoreMigrationTool.java:86) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PerformUpgradeIfNecessary.run(PerformUpgradeIfNecessary.java:84) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:71) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:357) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:154) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:68) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.1.3.jar:2.1.3]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.access$200(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_51]
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_51]
12:05:32.850 [AWT-EventQueue-0] INFO  o.n.server.preflight.PreFlightTasks - Unable to upgrade database
12:05:53.492 [AWT-EventQueue-0] INFO  org.neo4j.server.CommunityNeoServer - Setting startup timeout to: 120000ms based on -1
12:05:53.630 [AWT-EventQueue-0] ERROR o.n.s.p.PerformUpgradeIfNecessary - Unknown error
java.lang.NullPointerException: null
at org.neo4j.kernel.impl.storemigration.StoreMigrator.moveMigratedFiles(StoreMigrator.java:232) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.moveMigratedFilesToWorkingDirectory(StoreUpgrader.java:225) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:171) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreMigrationTool.run(StoreMigrationTool.java:86) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PerformUpgradeIfNecessary.run(PerformUpgradeIfNecessary.java:84) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:71) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:357) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:154) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:68) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.1.3.jar:2.1.3]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.access$200(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_51]
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_51]
12:05:53.633 [AWT-EventQueue-0] INFO  o.n.server.preflight.PreFlightTasks - Unable to upgrade database
12:10:05.615 [AWT-EventQueue-0] INFO  org.neo4j.server.CommunityNeoServer - Setting startup timeout to: 120000ms based on -1
12:10:05.744 [AWT-EventQueue-0] ERROR o.n.s.p.PerformUpgradeIfNecessary - Unknown error
java.lang.NullPointerException: null
at org.neo4j.kernel.impl.storemigration.StoreMigrator.moveMigratedFiles(StoreMigrator.java:232) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.moveMigratedFilesToWorkingDirectory(StoreUpgrader.java:225) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreUpgrader.migrateIfNeeded(StoreUpgrader.java:171) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.kernel.impl.storemigration.StoreMigrationTool.run(StoreMigrationTool.java:86) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PerformUpgradeIfNecessary.run(PerformUpgradeIfNecessary.java:84) ~[neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.preflight.PreFlightTasks.run(PreFlightTasks.java:71) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.runPreflightTasks(AbstractNeoServer.java:357) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.server.AbstractNeoServer.start(AbstractNeoServer.java:154) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.runtime.DatabaseActions.start(DatabaseActions.java:68) [neo4j-desktop-2.1.3.jar:2.1.3]
at org.neo4j.desktop.ui.StartDatabaseActionListener$1.run(StartDatabaseActionListener.java:61) [neo4j-desktop-2.1.3.jar:2.1.3]
at java.awt.event.InvocationEvent.dispatch(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEventImpl(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.access$200(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue$3.run(Unknown Source) [na:1.7.0_51]
at java.security.AccessController.doPrivileged(Native Method) [na:1.7.0_51]
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) [na:1.7.0_51]
at java.awt.EventQueue.dispatchEvent(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.pumpEvents(Unknown Source) [na:1.7.0_51]
at java.awt.EventDispatchThread.run(Unknown Source) [na:1.7.0_51]
12:10:05.747 [AWT-EventQueue-0] INFO  o.n.server.preflight.PreFlightTasks - Unable to upgrade database

Michael Hunger

unread,
Aug 3, 2014, 8:01:20 AM8/3/14
to ne...@googlegroups.com
Hi,

Sorry to hear that, I take it up with our engineering team.

Would you be able to share your database (pre upgrade and post upgrade) ?

Please continue until then with 2.0.3

Thanks so much,

Michael



--
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.

Mattias Persson

unread,
Aug 4, 2014, 2:35:38 AM8/4/14
to Neo4j Development
That looks awfully weird, I can't see how that NPE comes to be. Your database would help immensly.
--
Mattias Persson
Neo4j Hacker at Neo Technology

AJ NOURI

unread,
Aug 4, 2014, 4:02:01 AM8/4/14
to ne...@googlegroups.com
Hi Michael,
Thanks for your prompt reply. Do you mean the compressed content of default.graphdb directory? it is 60 MB.


AJ


--
You received this message because you are subscribed to a topic in the Google Groups "Neo4j" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/neo4j/kb-2QtGo4T4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to neo4j+un...@googlegroups.com.

Mattias Persson

unread,
Aug 4, 2014, 5:49:37 AM8/4/14
to Neo4j Development
Perfect, would be great if you could send some link to me and possibly Michael directly.

Maria

unread,
Sep 11, 2015, 11:52:29 AM9/11/15
to Neo4j
Hello!
I'm facing exactly the same problem. I updated Neo4J from 2.0.0 to 2.2.4 and now I cannot open any database.
After setting the "allow_store_upgrade=true" I get the same message:  "Starting Neo4j Server failed: Startup failed due to preflight task [class org.neo4j.server.preflight.PerformUpgradeIfNecessary]: Unable to upgrade database"

Is there any solution to this problem? I cannot open any database.

Michael Hunger

unread,
Sep 11, 2015, 1:56:14 PM9/11/15
to ne...@googlegroups.com
Can you please share your log files in data/log/* and data/graph.db/messages.log

Michael
Reply all
Reply to author
Forward
0 new messages