Showing results for 
Search instead for 
Did you mean: 

Getting Error; java.nio.file.AccessDeniedException when bulk importing

Graph Buddy

Hello I have just installed neo4j 4.1.3 and trying to bulk import into db from csv files. I have spited it from header and relationship files.hopefully my formatting is ok . when I am going to run the script for bulk importing I am getting

so I checked my debug.log and find out this

I put whole headers and csv files into /var/lib/ neo4j/import/ folder and run the script too. it created log file but didnt get any log there. I have got this error then

WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual. java.nio.file.AccessDeniedException: /var/lib/neo4j/import/

at org.neo4j.importer.ImportCommand.execute(



at picocli.CommandLine.executeUserObject(

at picocli.CommandLine.access$900(

at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(

at picocli.CommandLine$RunLast.handle(

at picocli.CommandLine$RunLast.handle(

at picocli.CommandLine$AbstractParseResultHandler.execute(

at picocli.CommandLine.execute(

at org.neo4j.cli.AdminTool.execute(

at org.neo4j.cli.AdminTool.main(

Caused by: java.nio.file.AccessDeniedException: /var/lib/neo4j/import/

at java.base/sun.nio.fs.UnixException.translateToIOException(

at java.base/sun.nio.fs.UnixException.rethrowAsIOException(

at java.base/sun.nio.fs.UnixException.rethrowAsIOException(

at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(

at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(

at java.base/java.nio.file.Files.newOutputStream(


at org.neo4j.importer.CsvImporter.doImport(

at org.neo4j.importer.ImportCommand.execute(

I was comfortable with neo4j 3.5.8 where there is graph.db folder . but from neo4j 4.0 I didnt find it out. can you help me to fix this problem . and kindly give me some concepts of new database structure in 4.1.3 . so I can configure it properly. Even I have given full control over /var/lib/neo4j/data/databases/neo4j folder . but didnt get any result. Thank you


Node Clone

Have you tried to grant access (chmod) to the neo4j user (or user that your are using) to /var/log/neo4j?