neo4j-apoc-procedures: APOC doesn't read config file on Docker install
I am using docker Neo 3.2 AND APOC 3.2.0.3 jar. I have been trying to import xml or graphml but no success.
I have changed the neo4j.conf with these apoc.export.file.enabled=true apoc.import.file.enabled=true apoc.import.file.use_neo4j_config=true dbms.security.procedures.unrestricted=apoc.* dbms.security.procedures.white_list=apoc.load.*
restarted neo4j
But I keep getting the error
Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure apoc.load.xml
: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf
Anything I am doing wrong?
I am very excited to use all the apoc procedures which are very useful but kind of stuck in this.
Thanks
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 20 (8 by maintainers)
Commits related to this issue
- [VpC8nqNz] Adds license and notice validation to the CI (#451) Co-authored-by: Gem Lamont <gemma.lamont@neotechnology.com> — committed to neo4j-contrib/neo4j-apoc-procedures by ncordon a year ago
- [VpC8nqNz] Adds license and notice validation to the CI (#451) (#3646) Co-authored-by: Gem Lamont <gemma.lamont@neotechnology.com> — committed to neo4j-contrib/neo4j-apoc-procedures by ncordon a year ago
- [VpC8nqNz] Adds license and notice validation to the CI (#451) (#3646) Co-authored-by: Gem Lamont <gemma.lamont@neotechnology.com> — committed to BennuFire/neo4j-apoc-procedures by ncordon a year ago
- [VpC8nqNz] Adds license and notice validation to the CI (#451) (#3646) Co-authored-by: Gem Lamont <gemma.lamont@neotechnology.com> — committed to neo4j-contrib/neo4j-apoc-procedures by ncordon a year ago
Right, so, I was also having issues with getting APOC installed. It’d be really nice to add some “Docker specific” notes about configuring APOC to it’s install docs.
After a bunch of messing around, I basically came up with this:
Obviously, there are some issues with that (
$PWD
being the big one) but that at least getsCALL apoc.config.list();
to spit out the APOC configurations incypher-shell
…After that, I was able to use something like the following (in this case, dump a
.cypher
format of my data):CALL apoc.export.cypher.all("/data/hobby-graph.cypher", {format : "cypher-shell", cypherFormat: "create"});
So maybe this ticket is closed… unless there are docs to add about this process?
Done.
I add it to the readme.
Actually it’s better to pass in configuration via docker environment variables: like in here: http://neo4j.com/docs/operations-manual/current/installation/docker/#docker-environment-variables
The plugin is located at /var/lib/neo4j/plugins/apoc-3.2.0.3-all.jar There are no other files in the plugins directory
I could see all the apoc procedures from the browser UI. call apoc.*
This is the call I am making - call apoc.load.xml(“file:///test.xml”)
The conf file is located at /var/lib/neo4j/conf/neo4j.congf To restart : ./var/lib/bin/neo4j restart
Here is the content (default config file with apoc configs)