I'm trying to upgrade from Neo4J 2.0.4 to 3.3.3 and I followed all the procedures as outlined on the single-instance upgrade page:
http://neo4j.com/docs/operations-manual/3.3/upgrade/deployment-upgrading/
I imported all the configs using the 2.x-config-migrator.jar utility and then ran neo4j-admin import to import the database from 2.0.4 into the 3.3.3, which seems to have worked.
However, when I try to start neo4j with the new database (running neo4j console to see errors as the normal neo4j start didn't work) I see the following error message after this:
2018-02-18 22:59:53.328+0000 INFO Starting upgrade of database
2018-02-18 22:59:53.335+0000 ERROR Failed to start Neo4j: Starting Neo4j failed: Component 'org.neo4j.server.database.LifecycleManagingDatabase#4ae9cfc1' was successfully initialized, but failed to start. Please see the attached cause exception "Not possible to upgrade a store with version 'v0.A.1' to current store versionv0.A.8(Neo4j 3.3.3).
I tried researching for this problem, but there's absolutely no info. The upgrade path 2.0.x(latest) to 3.3.2 is supported, so I guess it's the same for 3.3.3 as it's only a minor upgrade.
When I remove the imported database graph.db from the data folder and just try to run neo4j console on a freshly installed database I also get this error:
2018-02-18 23:09:31.440+0000 ERROR The ResourceConfig instance does not contain any root resource classes.
2018-02-18 23:09:31.440+0000 WARN unavailable The ResourceConfig instance does not contain any root resource classes.
However, when I install a clean database through Neo4J Desktop it runs fine.
I'm using Mac OS X 10.12.6 and Java 1.8.
How could I try to resolve this problem?
In the end, I have to answer this question myself as I spent several hours sorting this out.
First of all, Neo4J claims they support the upgrade path from the latest 2.x release to 3.x but this is not true. I had the version 2.0.4 (which is the latest 2.0 release and there were numerous problems migrating the settings and the old database into the new structure. It would simply not start.
I had to first upgrade to the latest stable 2.x version of Neo4J, which is 2.3.8. I ran into some problems with settings (I used authentification in 2.0.4 but I had to use the newly built in authentication module that 2.3.x provides, so I had to change some settings and remove the auth plugin). You also need to upgrade the database storage from 2.0.x to 2.3.x (by uncommenting the setting in conf).
Once you install and check that 2.3.8 is running and that your old database works, you need to then download the latest 3.x release.
However, the settings migration tool doesn't work properly. It creates numerous settings which are not supported by the new version, so you have to move them manually or not move them at all. Besides, the migration tool doesn't run under Java 1.7 so you might have to install Java 1.8 for the migration tool to even launch... So don't use it.
After that's done, provided you already upgraded your DB to the latest 2.x release, you can run the neo4j-admin import tool to import that DB into the new 3.x version and to convert it.
The whole process is described in detail here: https://github.com/noduslabs/infranodus/wiki/Upgrading-Your-Neo4J-Database-from-2.x-to-3.x
Related
I try to run Neo4J Community Edition 4.1.6 and need a hint. I have downloaded the winzip-package and unzipped it on a Windows 10 PC. I created a folder for the Neo4j files and another for the current JDK 15 package. The path for JDK has been put into system path variables. The log-flags in the neo4j conf has been set to DEBUG for HTPP. JAVA version throws the correct "15.0.2". No JAVA error message while starting.
I can start the service and the status gives back "Neo4j Service started...". After roughly 10 seconds the status shows that Neo4j has stopped without any further notice.
I can't see any logs in the \logs folder - the folder is empty.
I do not see a graphdb been created under neo4j-community-4.1.6\data\databases - the folder is empty
I cannot access the DB by localhost:7474
I do not see any error messages in the cmd windows.
I restarted the system several times but I still have the same outcome. Any hints?
Thank you
I believe we only support JDK 11 when using Neo4j 4.x.
https://neo4j.com/docs/operations-manual/current/installation/requirements/#deployment-requirements-java
Your errors may be because you are using JDK 15.
When diagnosing issues, it also helps to check the neo4j.log and debug.log files in the logs directory.
I'm trying to migrate a database dump from 3.5.6 community edition neo4j to 4.1 enterprise version. I know that the only way to load a dump from a community edition is to tar the dump and load it in the newer version. I followed couple of guides to do that and made sure that dbms.allow_upgrade=true is in the neo4j.conf file. However, I'm getting the following error while trying to start the service. Although, I have tested on 3.5.6 to 3.5.21 migration and it worked fine
org.neo4j.kernel.lifecycle.LifecycleAdapter$3#d520439' was successfully initialized, but failed to start. Please see the attached cause exception "Cannot map files with a filePageSize (0) that is less than 8 bytes | GBPTree[file:/var/lib/neo4j/data/databases/vodafone/neostore.id]".
the size of neostore.id is 9B and it was always like that just wondering why it is an issue in migrating from neo4j 3.5.xx to neo4j 4.1
I intend to use the Neo4j-community database in version 3.4.5 with Gremlin commands.
But I tried getting plugins but none are working for the later versions of neo4j.
Can someone outline how I can resolve my requirements?
As of right now, TinkerPop's neo4j-gremlin is built to work with Neo4j 3.2.3. That dependency is set via:
https://github.com/neo4j-contrib/neo4j-tinkerpop-api-impl/blob/0.7-3.2.3/pom.xml#L23
To see an upgrade, that library would need to be bumped to the version of Neo4j that you want and then neo4j-gremlin would need to be updated in TinkerPop:
https://github.com/apache/tinkerpop/blob/3.3.3/neo4j-gremlin/pom.xml#L120
Obviously I don't know if there would be required code changes in either repository for this to work.
I downloaded neo4j 3.4.0 Community edition on Ubuntu 16.04 and installed it.
I launched it successfully once with command ./neo4j console
But after I restarted the system, I used the same command ./neo4j console in /bin/, there is an error: could not find or load main class org.neo4j.server.CommunityEntryPoint
Anyone knows how to solve it?
the neo4j have been based on java. please check jdk path in env.
After trying many things (and no success).
I reinstalled the app by deleting ~/.configs/Neo4j-desktop and running again the Appimage file.
consider by this action you will lose license-key (and if you use Appimage version also all Db-data) so backup first if you have important data.
I am new to the neo4j-gremlin. I have downloaded the latest version of tinkerpop-3.3.1 and neo4j-community-3.3.3 on Windows machine.
I followed the installation instructions given on the tinkerpop site for Neo4j-Gremlin and was able to install neo4j-gremlin plugin but when i try to connect to the neo4j graph.db using gremlin console(graph = Neo4jGraph.open('C:/neo4j/data/databases/graph.db'))
I get the following error. Also the display stack trace option is also not available. It jumps directly to gremlin prompt. Any thoughts?
Error instantiating Neo4j Database for C:/neo4j/data/databases/graph.db
I was able to bring this setup with gremlin-server running Neo4j plugin. You can look at my GitHub project https://github.com/achandak123/gremlin-orm-neo4j. Don't worry about the README version talking about 2.3 n all. This works with tinker pop 3.3.1 and neo4j plugin