# The name of the default database #dbms.default_database=neo4j
# Paths of directories in the installation.
dbms.directories.data=/var/lib/neo4j/data
dbms.directories.plugins=/var/lib/neo4j/plugins
dbms.directories.logs=/var/log/neo4j
dbms.directories.lib=/usr/share/neo4j/lib #dbms.directories.run=run #dbms.directories.transaction.logs.root=data/transactions
# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
# allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
# `LOAD CSV` section of the manual for details.
dbms.directories.import=/var/lib/neo4j/import
# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line #dbms.security.auth_enabled=false
# Enable this to be able to upgrade a store from an older version.
dbms.allow_upgrade=true
#*******************************************************************
# APOC settings
#*******************************************************************
apoc.ttl.enabled=true
# should be 24 hours
apoc.ttl.schedule=86400
dbms.security.procedures.unrestricted=apoc.*
apoc.export.file.enabled=true
So I don't really get the error message an how the config file can be updated properly.
Neo4j 5 uses stricter checking on the neo4j.conf file by default - the error message is saying that you need to remove that setting. Does commenting that setting make the error go away?
java.lang.RuntimeException: Error starting Neo4j database server at /data/databases
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.startDatabaseServer(DatabaseManagementServiceFactory.java:255) ~[neo4j-5.1.0.jar:5.1.0]
....
Failed to build kernel extension Extension:RegisterComponentFactory[ApocRegisterComponent] because it is compiled with a reference to a class, method, or field, that is not in the class path: ''org.neo4j.logging.Log org.neo4j.logging.internal.LogService.getUserLog(java.lang.Class)''. The most common cause of this problem, is that Neo4j has been upgraded without also upgrading allinstalled extensions, such as APOC. Make sure that all of your extensions are build against your specific version of Neo4j.
"""
docker_compose.yml after commenting out for error.
What's the recommended way to export if this is disabled?
for example, apoc.export.graphml.query fails with:
Failed to invoke procedure `apoc.export.graphml.query`: Caused by: java.lang.RuntimeException: Export to files not enabled, please set apoc.export.file.enabled=true in your apoc.conf.
Otherwise, if you are running in a cloud environment without filesystem access, use the `{stream:true}` config and null as a 'file' parameter to stream the export back to your client.
If you wanted graphml export, then it seems like you would want to enable? It's probably best to open a new thread and provide the full details of what's going on to get the best help.
I can open a new thread but it's exactly the same issue. Commenting out the line allows the docker image/neo4j to start but obviously disables exporting altogether, including it results in the error described in the original post
Apparently if you use "-e apoc.export.file.enabled=true" in your docker run it should work. I also got myself twisted around and was looking at the apoc labs docs and not the core docs. It's in there - the "-e apoc.export.file.enabled=true" is a workaround for now.