What is the location of the configuration file in Neo4J 3.2? - neo4j

I just installed Neo4j 3.2.6 on Windows. I am trying to run apoc.load.json. I have moved the plugins folded. They really need to sort this out.
I run it and I'm getting this error:
Failed to invoke procedure apoc.load.json: Caused by:
java.lang.RuntimeException: Import from files not enabled, please set
apoc.import.file.enabled=true in your neo4j.conf
only one problem, there is no neo4j.conf.
Database starts fine. I can run other statement, just not APOC procedures.
Any ideas?

You can take a look in the Neo4j file location docs. According to these docs the neo4j.conf file location in Windows installations is:
<neo4j-home>\conf\neo4j.conf for zip installations
%APPDATA%\Neo4j Community Edition\neo4j.conf for desktop installation (installer)

For Neo4j Desktop:
C:\Users{user}\AppData\Roaming\Neo4j
Desktop\Application\neo4jDatabases\database-{YOUR DATABASE HERE}\installation-{version}\plugins

For Neo4j Desktop,
Click pull down menu of your project
Click "Open Folder" menu
Click "Configuration"
Then new window of explorer will be opened with the path with neo4j.conf file included, for example:
C:\Users\{user}\AppData\Local\Neo4j\Relate\Data\dbmss\dbms-3a5f5b9b-77b4-48cf-96f4-43aa81cce24b\conf\

If you are not able to find in other directions, you can try searching in the below path where I found my configuration located:
C:\Users\{user}\.Neo4jDesktop\neo4jDatabases\database-{YOUR DATABASE
HERE}\installation-{version}\conf
Hope it helps.

Even though the Neo4j documentation says that for windows desktop neo4j.conf file location is
%APPDATA%\Neo4j Community Edition\neo4j.conf, I couldn't find the file at that particular location.
I found the neo4j.conf file at below location :
{YOUR_NEO4J_DB_DIRECTORY}\neo4jDatabases\database-{SOME_VERSION_STRING}\installation-{YOUR_NEO4J_VERSION}\conf
Hope it helps someone!

Related

How to enable jvm remote debugging in neo4j community edition windows and linux

I would like to actually debug the extension running the Neo4j server from within Eclipse.
Can anybody give me a hint on how to do that.
I see lots of references to conf/neo4j-wrapper.conf , but cannot find the file neo4j-wrapper.conf anywhere on my windows(the same thing for linux) server installation of Neo4j 3.5.11. I just have neo4j.conf.
can somebody tell me where I can put the following please in which file?
wrapper.java.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -Xdebug-Xnoagent-Djava.compiler=NONE-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
Any help would be appreciated.
Many Thanks.
neo4j-wrapper.conf was merged into neo4j.conf in neo4j version 3.1.
See: https://neo4j.com/developer/kb/manually-merging-neo4jwrapperconf-into-neo4jconf-in-neo4j-31/
So, in neo4j 3.1+, all config settings are in neo4j.conf.
Adding on to #Schwertfisch's answer, change suspend=n to suspend=y if you want to debug code that executes at startup, such as the constructor of a trigger. With suspend=y the VM waits until a debugger attaches before starting the application.
https://neo4j.com/docs/java-reference/current/server-debugging/
in file neo4j.conf
dbms.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005

Neo4j 3.1.0 apoc.export.graphml issue

I am trying to export my db as a graphml file via the apoc.export.graphml procedure in Neo4j 3.1 + 3.1.0.3:
call apoc.export.graphml.all("test",{})
I get this error message:
Failed to invoke procedure apoc.export.graphml.all: Caused by:
java.lang.RuntimeException: Import from files not enabled, please set
apoc.import.file.enabled=true in your neo4j.conf
I have edited my neo4j.conf file to add
apoc.import.file.enabled=true
at the end of the document but I'm still getting the same error message.
What am I doing wrong?
Thanks for your help.
I had the same problem and did not find any from anywhere. I just managed to resolved this issue. Hopefully, this solves yours as well.
Environment: MacOs, Neo4j 3.1.2 CE
1) Change your .neo4j.conf (mine is under my ~/Documents/Neo4j/). You can easily edit by pressing [Options...] button. I commented the import directory comment out as well, just in case.
#dbms.directories.import=import
apoc.import.file.enabled=true
2) I originally have the apoc-3.1.2.5.jar under ~/Documents/Neo4j/default.graphdb/plugins/ directory which worked except reading xml from the local disk. So, I put the jar under my app directory, /Applications/Neo4j.app/Contents/Resources/app/plugins
The "Neo4j.app" is my symbolic link. You probably will see the app directory as "Neo4j Community Edition 3.1.2.app"
3) Do Not restart by pressing [Stop] and [Start], make sure you quit the Neo4j and relaunch. Stop and Start seems to reload config but it does not seem to load jar from plugins.
4) How to check:
call apoc.config.list
You should see:
apoc.import.file.enabled true
I originally added
apoc.import.file.enabled=true
to the end of the neo4j.conf file and "HTTP logging configuration" section.
I moved the comment to the "Server configuration" section and now it works.

Neo4j Error: Could not find or load main class org.neo4j.shell.StartClient

I am facing a similar issue on my Mac as given in Error: Could not find or load main class org.neo4j.shell.StartClient.
I initially installed Neo4j using .dmg installer, and it can open Neo4j community edition in browser. But when I click on the Options>Command Prompt, it opens a Terminal window:
xyz$ /Applications/Neo4j \Community\Edition.app/Contents/Resources/app/bin/openNeoTerminal.sh ; exit;
Neo4j Command Prompt
This window is configured with Neo4j on the path.
Available commands:
neo4j-shell
neo4j-import
bash-3.2$ neo4j-shell
Error: Could not find or load main class org.neo4j.shell.StartClient
bash-3.2$
I also downloaded the latest neo4j-2.2.7.tar.gz, unzipped it, created a folder called neo4j under my main directory. I am not sure what is needed further.
Any help will be much appreciated.
Unfortunately this is a bug with the packaging, in Neo4j 2.3.x.
Please use the tgz distribution, in the extracted folder you find bin/neo4j-import.
Please refer to the Neo4j - manual, on how to use it:
http://neo4j.com/docs/stable/import-tool.html

where is conf/neo4j-wrapper.conf on windows installation

Sorry for the newbie question, i see lots of references to conf/neo4j-wrapper.conf , but cannot find this anywhere on my windows server installation of Neo4j 2.1.2.
can somebody tell me where it is please?
thanks
You'll have to create the "conf" directory yourself.
I tried it on my windows machine before answering you, as I encountered the same problem initially.
In my case, I first created the directory
C:\Program Files (x86)\Neo4j Community\conf
and in there I created the files
neo4j.properties
neo4j-wrapper.conf
See Neo4j post here
I might be mistaken, but, I don't believe the Windows version puts an instance of that file on disk.
Given that neo4j.properties is in your actual graph DB directory (e.g. c:\\Neo4j\default.graphdb), you might try creating an instance of the file there and seeing what happens.
Or you could also try creating a conf/ directory from that same location and putting it in there.
I'm used to working with the Linux version, myself.
Let us know what you find!
HTH

Neo4j StartService FAILED 1053 after copying Beer DB example

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

Resources