Can not start server Grakn with "Process exited with code '3': 'java.lang.NullPointerException"


#1

Hi guys, I extracted the core 1.4.2, run command grakn server start and it run successfully, but when t stopped it and start again, I hit the error

Starting Storage....FAILED!
Unable to start Storage.

Below is what my console return:

====================================================================================================
      ________  _____     _______  __    __  __    __      _______  _______  _____     _______
     |   __   ||   _  \  |   _   ||  |  /  /|  \  |  |    |   _   ||   _   ||   _  \  |   ____|
     |  |  |__||  | |  | |  | |  ||  | /  / |   \ |  |    |  | |__||  | |  ||  | |  | |  |
     |  | ____ |  |_| /  |  |_|  ||  |/  /  |    \|  |    |  |     |  | |  ||  |_| /  |  |____
     |  ||_   ||   _  \  |   _   ||   _  \  |   _    |    |  |  __ |  | |  ||   _  \  |   ____|
     |  |__|  ||  | \  \ |  | |  ||  | \  \ |  | \   |    |  |_|  ||  |_|  ||  | \  \ |  |____
     |________||__|  \__\|__| |__||__|  \__\|__|  \__|    |_______||_______||__|  \__\|_______|

                                         THE KNOWLEDGE GRAPH
====================================================================================================

Starting Storage....FAILED!
Unable to start Storage.
Process exited with code '3': 'java.lang.NullPointerException
	at java.nio.file.Files.provider(Files.java:97)
	at java.nio.file.Files.getFileStore(Files.java:1461)
	at org.apache.cassandra.io.util.FileUtils.getFileStore(FileUtils.java:667)
	at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:1023)
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:464)
	at org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:310)
	at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:142)
	at org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:647)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:582)
	at ai.grakn.engine.bootup.GraknCassandra.main(GraknCassandra.java:39)
'
An error has occurred during boot-up. Please run 'grakn server status' or check the logs located under the 'logs' directory.
Process exited with code '3': 'java.lang.NullPointerException
	at java.nio.file.Files.provider(Files.java:97)
	at java.nio.file.Files.getFileStore(Files.java:1461)
	at org.apache.cassandra.io.util.FileUtils.getFileStore(FileUtils.java:667)
	at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:1023)
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:464)
	at org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:310)
	at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:142)
	at org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:647)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:582)
	at ai.grakn.engine.bootup.GraknCassandra.main(GraknCassandra.java:39)

And this is content of logs/grakn.log:

2018-11-29 12:10:52,200 [main] INFO  ai.grakn.engine.GraknConfig - Project directory in use: /home/truongtd2/grakn-server/grakn-core-1.4.2
2018-11-29 12:10:52,204 [main] INFO  ai.grakn.engine.GraknConfig - Configuration file in use: /home/truongtd2/grakn-server/grakn-core-1.4.2/conf/grakn.properties
2018-11-29 12:10:52,205 [main] INFO  ai.grakn.engine.GraknConfig - Project directory in use: /home/truongtd2/grakn-server/grakn-core-1.4.2
2018-11-29 12:10:52,205 [main] INFO  ai.grakn.engine.GraknConfig - Configuration file in use: /home/truongtd2/grakn-server/grakn-core-1.4.2/conf/grakn.properties
2018-11-29 12:10:52,207 [main] INFO  ai.grakn.engine.GraknConfig - Project directory in use: /home/truongtd2/grakn-server/grakn-core-1.4.2
2018-11-29 12:10:52,207 [main] INFO  ai.grakn.engine.GraknConfig - Configuration file in use: /home/truongtd2/grakn-server/grakn-core-1.4.2/conf/grakn.properties
2018-11-29 12:10:55,650 [main] ERROR ai.grakn.engine.bootup.GraknBootup - An error has occurred during boot-up. Please run 'grakn server status' or check the logs located under the 'logs' directory.
ai.grakn.engine.bootup.BootupException: Process exited with code '3': 'java.lang.NullPointerException
	at java.nio.file.Files.provider(Files.java:97)
	at java.nio.file.Files.getFileStore(Files.java:1461)
	at org.apache.cassandra.io.util.FileUtils.getFileStore(FileUtils.java:667)
	at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:1023)
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:464)
	at org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:310)
	at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:142)
	at org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:647)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:582)
	at ai.grakn.engine.bootup.GraknCassandra.main(GraknCassandra.java:39)
'
	at ai.grakn.engine.bootup.StorageBootup.start(StorageBootup.java:157)
	at ai.grakn.engine.bootup.StorageBootup.startIfNotRunning(StorageBootup.java:82)
	at ai.grakn.engine.bootup.GraknBootup.serverStart(GraknBootup.java:180)
	at ai.grakn.engine.bootup.GraknBootup.server(GraknBootup.java:140)
	at ai.grakn.engine.bootup.GraknBootup.run(GraknBootup.java:127)
	at ai.grakn.engine.bootup.GraknBootup.main(GraknBootup.java:69)

and the cassandra.log:

INFO  [main] 2018-11-29 12:10:53,517 DatabaseDescriptor.java:367 - DiskAccessMode 'auto' determined to be mmap, indexAccessMode is mmap
INFO  [main] 2018-11-29 12:10:53,518 DatabaseDescriptor.java:425 - Global memtable on-heap threshold is enabled at 443MB
INFO  [main] 2018-11-29 12:10:53,518 DatabaseDescriptor.java:429 - Global memtable off-heap threshold is enabled at 443MB
ERROR [main] 2018-11-29 12:10:53,525 CassandraDaemon.java:708 - Exception encountered during startup
java.lang.NullPointerException: null
	at java.nio.file.Files.provider(Files.java:97)
	at java.nio.file.Files.getFileStore(Files.java:1461)
	at org.apache.cassandra.io.util.FileUtils.getFileStore(FileUtils.java:667)
	at org.apache.cassandra.config.DatabaseDescriptor.guessFileStore(DatabaseDescriptor.java:1023)
	at org.apache.cassandra.config.DatabaseDescriptor.applySimpleConfig(DatabaseDescriptor.java:464)
	at org.apache.cassandra.config.DatabaseDescriptor.applyAll(DatabaseDescriptor.java:310)
	at org.apache.cassandra.config.DatabaseDescriptor.daemonInitialization(DatabaseDescriptor.java:142)
	at org.apache.cassandra.service.CassandraDaemon.applyConfig(CassandraDaemon.java:647)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:582)
	at ai.grakn.engine.bootup.GraknCassandra.main(GraknCassandra.java:39)

I also tried to reboot my device but the errors still there, could you guys help me to solve them. Thanks you very much.


#2

Hi @kobayashi225! Can you please read this link and provide those information here? It’ll help us pinpoint the issue.

Cheers,

Ganesh


#3

Hi @kobayashi225,

what is your operating system?

It seems to be an issue with cassandra folders that you have.

Have you changed some configuration or changed the structure of folders?


#4

OK, I don’t know why but when i re-cloned my repo, it worked :sweat_smile:. Btw, the problem solved. Thanks for your help. :clap:.