-
Notifications
You must be signed in to change notification settings - Fork 495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APOC doesn't read config file on Docker install #451
Comments
Are you on osx? With community edition?
Check the readme for the plugin locations please
Von meinem iPhone gesendet
… Am 20.05.2017 um 19:42 schrieb gbhag ***@***.***>:
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
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Running in docker Have plugin in $home/plugin directory Neo4j. Conf is at $home/conf |
but you mount them into the docker environment at the right places?
Can you share all the details, your call to start it, the config content
and what's in your plugin directory.
…On Sat, May 20, 2017 at 10:31 PM, gbhag ***@***.***> wrote:
Running in docker
Have plugin in $home/plugin directory
Neo4j. Conf is at $home/conf
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#451 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAEHY8GNcyqosv5L2ltK5MoH0ze6bXwPks5r702LgaJpZM4NhXXQ>
.
|
The plugin is located at /var/lib/neo4j/plugins/apoc-3.2.0.3-all.jar 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 Here is the content (default config file with apoc configs)
|
Any idea, why it is not working. Does the apoc jar needs to be in different location or is there some other config params I am missing? Thanks |
This looks very similar to a past issue ( #313 ) regarding certain installs where APOC would not read from the config file. Try executing this...if you get an empty list, then this is likely related to the same issue:
|
Tried that earlier. It is an empty list |
Sounds like the same bug as previously referenced. Would be useful to know if this is 3.2 specific, or if we have the same issue with 3.1.x and its associated APOC version. In the meantime, it may be useful to rename this issue to |
I am not sure about previous versions but I have been trying with 3.2. I agree, I can rename the issue as "APOC doesn't read config file on Docker install |
Can you clarify if this is the enterprise or community version? |
community version |
tried neo 3.1.4 with apoc 3.1.3.7 same issue as above not reading the config file. |
Any ideas ? Thanks |
Hi @gbhag , Download this archive: https://www.dropbox.com/s/85jnk4n3cb7m7p7/apoc_451.tar.gz?dl=0
Then go to the neo4j browser, setup the password and run
If you see the configuration properties, you can edit the "/tmp/conf/neo4j.conf" to change the configuration. Otherwise, paste the version of docker and the "/tmp/logs/" contents, please. |
@gbhag ping :) did you solved? |
@jexp, should we close it? @omarlarus described how to solve that above. |
Actually it's better to pass in configuration via docker environment variables: |
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 ( After that, I was able to use something like the following (in this case, dump a
So maybe this ticket is closed... unless there are docs to add about this process? |
I add it to the readme. |
Done. |
Co-authored-by: Gem Lamont <[email protected]>
Co-authored-by: Gem Lamont <[email protected]>
…b#451) (neo4j-contrib#3646) Co-authored-by: Gem Lamont <[email protected]>
Co-authored-by: Gem Lamont <[email protected]>
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.confAnything 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
The text was updated successfully, but these errors were encountered: