This is my problem. I have copied graph.db for a backup.
Neo4j was started when I did that.
After that I deleted graph.db and neo4j started a new one. Neo4j is working fine, no problems.
But when wanted to copy again graph.db (the backup one) I get:
Starting Neo4j Server...WARNING: not changing user
waiting for server to be ready... Failed to start within 120 seconds.
I have uninstalled and installed again neo4j and it does not work.
I think is a problem of permissions... If yes how to solve it? I have tried to change permissions with chmod but it does not work... Someone can help me with the code for changing the permissions or configure neo4j with good permissions.
On the log: this appears multiple times:
2014-08-14 15:27:58.102+0000 INFO [API] Setting startup timeout to: 120000ms based on -1
Detected incorrectly shut down database, performing recovery..
Any other suggestion?
Thank you for your help.
Try to use
bin/neo4j start-no-wait
instead of
bin/neo4j start
As commented before the data was corrupted. It was impossible to recover it.
The correct way to do the backup is: link
Never copy the files while running the database.
We need to zip the graph.db file and then copy it in another location as a backup.
For restore stop the database just delete recursively graph.db and unzip the backup.
Sadly the first data could not be restored...
Related
I'm trying to remotely back up my Neo4J database for already 2 days and nothing works.
I run
sudo neo4j-admin backup --backup-dir=backup --name=graph.db-backup --from=1.1.1.1:1111 --timeout=50m
The files start to get saved and then simply erased after a while and there's no backup.
I tried setting up --pagecache=16M and HEAP_SIZE but it has no effect. Sometime it just stalls sometimes I get an error like this:
unexpected error: java.io.IOException: org.neo4j.com.ComException: Channel has been closed
The DB I'm backing up is Enterprise 3.3.3 and the one I'm backing up with is 3.5.14
Thank you for any help.
Is this the normal Neo4J behavior?
$ neo4j version
neo4j 3.3.4
Host machine
https://neo4j.com/developer/neo4j-cloud-google-image/
Data Import
neo4j-admin import --database=actors.db --nodes movies.csv --nodes actors.csv --relationships roles.csv
after I changes to neo4j.conf as follows:
#dbms.active_database=graph.db
# changed into
dbms.active_database=actors.db
The server still points to graph.db.
I tried to restart the neo4j service to see if it will help
$ sudo service neo4j restart
However, neo4j.conf gets fully reset, and it is reverted back to
#dbms.active_database=graph.db
what is the proper step by step solution to change neo4j.conf?
Can't comment because I don't have enough reputation points... but did you ever figure this out? I've been running into the same issue.
I overwrite the neo4j.conf file, but everytime I restart the service with:
$ sudo service neo4j restart
The neo4j.conf file goes back to how it was
Update: I was able to figure this out. Chances are you have a neo4j.template file which is used to create the neo4j.conf file each time the database is reset. If you edit that, you should be good to go.
I also ran into same issue. When I dig more I found the answer. It is happening when I am trying to runNeo4J server on aws ec2 instance using custom community ami provided by Neo4j. There is a script having name pre-neo4j.sh which is configured to run on every restart of Neo4j service. Inside that script, it is replacing neo4j.conf on every restart of service with some configured template to preserve public-ip or anything like that.
I just upgraded my Neo4J from 1.9.4 to 2.0.1 newest stable release.
The upgrade instructions say that you can just start the new Neo4J with the old database provided that
allow_store_upgrade=true
which is exactly what I did.
However, when I copied my old graph.db folder (which contains all data) into the data folder of the new installation and tried to run neo4j for the first time, it didn't work. The error message I got in terminal upon neo4j start was
Using additional JVM arguments: -server -XX:+DisableExplicitGC -
Dorg.neo4j.server.properties=conf/neo4j-server.properties -
Djava.util.logging.config.file=conf/logging.properties -
Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC -
XX:+CMSClassUnloadingEnabled
Starting Neo4j Server...WARNING: not changing user
process [462]... waiting for server to be ready... Failed to start within 120 seconds.
Neo4j Server may have failed to start, please check the logs.
When I removed the graph.db folder from the new installation and ran neo4j start once again, it all started fine, but with a new clean database, of course.
FIY I run it on Mac OS X 10.9, the newest Java 1.7.0_51-b13 SDK installed.
Does anybody know what I did wrong? Thank you!
Ok, I found a solution. The upgrade instructions say that you should uncomment this string in conf/neo4j.properties:
#allow_store_upgrade=true
But what they don't say is that you should uncomment is in the OLD database BEFORE you shut it down the one last time in the old version.
Then, when you install the new database, just copy the graph.db folder into the /data folder of the new 2.0.1 Neo4J, then, before launching it, go to /conf folder of the NEW database, find that same neo4j.properties file, UNCOMMENT that same line:
allow_store_upgrade=true
Then launch the new 2.0.1 Neo4J database for the first time, make sure the data is all fine.
Don't forget to then comment that option once you shut down the database.
A bit of a complicated way to update, would be great if Neo4J provided a better and more streamlined way to do that...
I installed Neo4j as instructed in the site and was able to install and stat server. However I tried to copy the Beer example DB by stopping the server and deleting the current graph.db in the \data folder and replaced with the one Beer example downloaded from online (graph.db folder). This is the only step I did.
Now the issue is, when i tried to start the Server I get "StartService FAILED 1053"
I am using following command on the powershell in windows - c:\neo4j-community-2.0.0-M03> .\bat\Neo4j.bat start
Can someone please help if I have done anything wrong here.
Thank you!
You are running neo4j 2.0 against an older database file. You'll need to set the config parameter to allow the store to be upgraded before starting. See instructions here:
http://docs.neo4j.org/chunked/milestone/deployment-upgrading.html#_explicit_upgrade
I am receiving a "not cleanly shutdown" log message when attempting to open a 2 year old Neo4j database posted on github at https://github.com/IGS/disease-ontology/tree/master/database/neo4j. How do I open/update this database?
Here's how I got it initialized: Downloaded the graph_db.tgz to my local win7-64 machine (neo4j-community-1.9.RC2), extracted the graph.db file to the data subfolder, renamed it graph_ontology.db, and edited the server config file to point to it as follows:
org.neo4j.server.database.location=data/graph_ontology.db
When starting Neo4j, the last entry in the log file is:
2013-05-21 17:23:33.418+0000 INFO [o.n.k.EmbeddedGraphDatabase]: Startup failed: Component 'org.neo4j.kernel.impl.transaction.XaDataSourceManager#1f91d41b' was successfully initialized, but failed to start. Please see attached cause exception.: Component 'org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource#b86527e' was successfully initialized, but failed to start. Please see attached cause exception.: Mismatching store version found (Uknown while expecting v0.A.0) and the store is not cleanly shutdown. Recover the database with the previous database version and then attempt to upgrade
Thanks,
Jeff
Look at the messages.log of the database to determine which neo4j version it was started with last.
In this case it is 1.4
You can get it from here: http://dist.neo4j.org/neo4j-community-1.4.2-windows.zip
You can easily just point the neo4j-shell to it:
create an upgrade.properties that contains: allow_store_upgrade=true
and then use: bin/neo4j-shell -path graph_ontology.db -config upgrade.properties
Here is the converted db for 1.9.GA: https://dl.dropboxusercontent.com/u/14493611/disease_ontology_graphdb-1.9.tgz