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.
Related
I'm now trying to upload a war file to a local Glassfish server. But I'm always getting this message:
GUI internal error: Archive Path is NULL
I read some users who had the same problem and the suggested solution was to change the content of a file named uploadFrame.jsf.
I couldn't even find that file. Can anyone help me out on this?
Thanks a lot.
Have same problem (v 5.0).
Only autodeploy works: move EAR/WAR to glassfish5/glassfish/domains/domain1/autodeploy folder.
I was getting the same issue with GUI internal error: Archive Path is NULL. With the last version of Glassfish 5.0.1, but after change my server to stable version glassfish.-5.0. The issue is solved successfully. I Hope you solve your problem with the version of glassfish.
Here's a solution that can be found on the web. You edit the "uploadFrame.jsf" file in the Glassfish "console-common.jar".
The original line of code in "uploadFrame.jsf":
<sun:form id="form">
The new line of code:
<sun:form id="form" enctype="multipart/form-data">
Remember to stop and restart your Glassfish Server after the change has been made. More detailed information is in these links below:
From "Glassfish Issues" on Github
A Step-By-Step Video On YouTube
I have a Neo4j Java project perfectly working inside my Eclipse IDE.
I use APOC to load an XML file and process it.
Since now I have to deploy my project, I need to export a Runnable Jar file.
The problem is that, despite the system sees my neo4j.conf file with this setting: apoc.import.file.enabled=true, at runtime I got this error:
Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf
It's pretty weird, because in the file I enabled the import from file with that string and the file is correctly detected.
Am I missing something?
EDIT: my neo4j.conf has only that line and works fine during the development mode in Eclipse.
Have you restarted the Neo4j after setting this line?
If not try after restart this may help.
After last attacks, I upgraded MODX to 2.6.5 version. And now there is a problem with uploading files via Modx File Manager. There are no errors during uploading. Message in File Manager after all is "File successfully uploaded" but file isn't uploaded.
In logs there are several errors but nothing about file transfer. A lot of error in /core/xpdo/xpdo.class.php:
Could not load class: fastFieldParser from fastfieldparser.
Problem getting service parser, instance of class fastFieldParser, from path /core/components/fastfield/model/fastfield/
Where can i find solution if there are no errors about file transfer problem?
I'd recommend re-running the upgrade. I've found that Susan's install script works very well for quick reinstallations. If that doesn't work I'd recommend reviewing the server's PHP logs to see if there's anything useful in there.
Install script: MODX Install Script
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!
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