Skip to content

Instantly share code, notes, and snippets.

@RyanSnodgrass
Last active March 21, 2017 14:55
Show Gist options
  • Select an option

  • Save RyanSnodgrass/aca2a88c9922d5a9528c7dc8e923a648 to your computer and use it in GitHub Desktop.

Select an option

Save RyanSnodgrass/aca2a88c9922d5a9528c7dc8e923a648 to your computer and use it in GitHub Desktop.
Upgrade guide for our team to upgrade our 2.3.5 database to latest 3.0.x

Taking clues from 2.3.9 release notes and 2.3.8 deployment upgrade

following 3.0 docs

Run these commands from the '/usr/local/share' directory

To 2.3.9

  1. shut down the database sudo /usr/local/share/neo4j/bin/neo4j stop or neop
  2. wget dist.neo4j.org/neo4j-community-2.3.9-unix.tar.gz
  3. tar -xzf neo4j-community-2.3.9-unix.tar.gz
  4. mv neo4j-community-2.3.9 neo4j
  5. copy the data folder in /usr/local/share/neo4j
  • cp -r /usr/local/share/neo4j/data/* /usr/local/share/neo4j-community-2.3.9/data/
sed -i.bak s/#org.neo4j.server.webserver.address=0.0.0.0/org.neo4j.server.webserver.address=0.0.0.0/g neo4j-community-2.3.9/conf/neo4j-server.properties
sed -i.bak s/dbms.security.auth_enabled=true/dbms.security.auth_enabled=false/g neo4j-community-2.3.9/conf/neo4j-server.properties
sed -i.bak s/org.neo4j.server.webserver.https.enabled=true/org.neo4j.server.webserver.https.enabled=false/g neo4j-community-2.3.9/conf/neo4j-server.properties
  1. Recommended to turn on automatic upgrade, even though it doesn't seem to do anything.

"Set the Neo4j configuration parameter allow_store_upgrade=true in the conf/neo4j.properties file of the 2.3.8 installation. Neo4j will fail to start without this configuration."

  1. check everything ran right. sudo /usr/local/share/neo4j/bin/neo4j start

To 3.0.x

Make sure you have openjdk8.0 installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment