cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Error while starting database

Hello,
I´m trying to start the database after installing it on a server, but I receive this error. Can anybody help me.

/home/ubuntu$ neo4j console
Directories in use:
home: /var/lib/neo4j
config: /etc/neo4j
logs: /var/log/neo4j
plugins: /var/lib/neo4j/plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.
2020-10-19 12:43:03.811+0000 INFO Starting...
2020-10-19 12:43:04.561+0000 ERROR Failed to start Neo4j on dbms.connector.http.listen_address, a socket address. If missing port or hostname it is acquired from dbms.default_listen_address. java.nio.file.AccessDeniedException: /var/log/neo4j/debug.log
java.lang.RuntimeException: java.nio.file.AccessDeniedException: /var/log/neo4j/debug.log
at org.neo4j.graphdb.factory.module.GlobalModule.createLogService(GlobalModule.java:366)
at org.neo4j.graphdb.factory.module.GlobalModule.(GlobalModule.java:173)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.createGlobalModule(DatabaseManagementServiceFactory.java:243)
at org.neo4j.graphdb.facade.DatabaseManagementServiceFactory.build(DatabaseManagementServiceFactory.java:126)
at org.neo4j.server.CommunityBootstrapper.createNeo(CommunityBootstrapper.java:36)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:117)
at org.neo4j.server.NeoBootstrapper.start(NeoBootstrapper.java:87)
at org.neo4j.server.CommunityEntryPoint.main(CommunityEntryPoint.java:35)
Caused by: java.nio.file.AccessDeniedException: /var/log/neo4j/debug.log
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:219)
at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478)
at java.base/java.nio.file.Files.newOutputStream(Files.java:219)
at org.neo4j.io.fs.DefaultFileSystemAbstraction.openAsOutputStream(DefaultFileSystemAbstraction.java:78)
at org.neo4j.io.fs.FileSystemUtils.createOrOpenAsOutputStream(FileSystemUtils.java:54)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.openOutputFile(RotatingFileOutputStreamSupplier.java:338)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.(RotatingFileOutputStreamSupplier.java:137)
at org.neo4j.logging.RotatingFileOutputStreamSupplier.(RotatingFileOutputStreamSupplier.java:121)
at org.neo4j.logging.internal.StoreLogService.(StoreLogService.java:200)
at org.neo4j.logging.internal.StoreLogService$Builder.build(StoreLogService.java:139)
at org.neo4j.graphdb.factory.module.GlobalModule.createLogService(GlobalModule.java:362)
... 7 more
2020-10-19 12:43:04.569+0000 INFO Neo4j Server shutdown initiated by request

3 REPLIES 3

omerule
Graph Buddy

Goodevening Arturo,
Maybe you can try starting the server with $sudo systemctl start neo4j. And then login with $cypher-shell or with your browser localhost:7474.

Yours kindly
Omer

Thank you Omer,
I think I could start neo4j on the server, but I couldn´t acces with the browser. I can´t reach the page.

What I see when I start Neo4j throgh the console is this:

/home/ubuntu$ neo4j start
/usr/share/neo4j/bin/neo4j: line 372: /var/run/neo4j/neo4j.pid: Permission denied
/usr/share/neo4j/bin/neo4j: line 371: /var/log/neo4j/neo4j.log: Permission denied
Directories in use:
home: /var/lib/neo4j
config: /etc/neo4j
logs: /var/log/neo4j
plugins: /var/lib/neo4j/plugins
import: /var/lib/neo4j/import
data: /var/lib/neo4j/data
certificates: /var/lib/neo4j/certificates
run: /var/run/neo4j
Starting Neo4j.
WARNING: Max 1024 open files allowed, minimum of 40000 recommended. See the Neo4j manual.

omerule
Graph Buddy

I am not sure if the way you start the server is correct or not. There are still some error etc.

For me I would take a look at the steps from this guide:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-neo4j-on-ubuntu-20-04.
This is based on systemd.

Yours kindly Omer