Starting Grakn… FAILED


#1

Hi all!
I’m new to Grakn.
start on a ubuntu14 with jdk1.8.0_161
Here’s the output :
Starting storage… SUCCESS
Starting Queue… SUCCESS
Starting Grakn… FAILED!
The grakn.log shows
[main] ERROR ai.grakn.bootup.graknengine.Grakn - Uncaught exception at thread [main]
java.lang.RuntimeException: Couldn’t get PID of Grakn. Received '
at ai.grakn.bootup.graknengine.grakn_pid.UnixGraknPidRetriever.getPid(UnixGraknPidRetriever.java:74)
at ai.grakn.bootup.graknengine.grakn_pid.GraknPidManager.trackGraknPid(GraknPidManager.java:37)
at ai.grakn.bootup.graknengine.Grakn.main(Grakn.java:62)
I run
java -cp “./services/lib/*” -Dgrakn.dir="./services/" -Dgrakn.conf="…/conf/grakn.properties" ai.grakn.engine.GraknEngineServer
output
Error: Main method not found in class ai.grakn.engine.GraknEngineServer, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application

Does anyone have any idea ?

Thanks
lzhxu


Please report any error "java.lang.RuntimeException: Couldn’t get PID of Grakn. Received '"
#2

Thanks for reporting the issue. Can you provide the details as have been described in this post, please?


#3

I run these commands

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ ./grakn server start

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

                      Grakn: The Database For AI

=============================================================================

Starting Storage…SUCCESS
Starting Queue…SUCCESS
Starting Grakn…FAILED!
Unable to start Grakn
Please run ‘grakn server status’ or check the logs located under ‘logs’ directory.

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ jps
3218 CassandraDaemon
3565 Jps

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ netstat -ntlp
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:9042 0.0.0.0:* LISTEN 3218/java
tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:7000 0.0.0.0:* LISTEN 3218/java
tcp 0 0 127.0.0.1:7199 0.0.0.0:* LISTEN 3218/java
tcp 0 0 127.0.0.1:50820 0.0.0.0:* LISTEN 3218/java
tcp 0 0 127.0.0.1:9160 0.0.0.0:* LISTEN 3218/java
tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 3534/redis-server-l
tcp6 0 0 ::1:631 :::* LISTEN -

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ ls -l
total 72
drwxrwxr-x 2 lzhxu lzhxu 4096 3月 13 14:24 conf
drwxrwxr-x 4 lzhxu lzhxu 4096 3月 13 14:24 db
drwxr-xr-x 15 lzhxu lzhxu 4096 2月 16 18:35 examples
-rwxr-xr-x 1 lzhxu lzhxu 1791 2月 16 18:34 grakn
-rwxr-xr-x 1 lzhxu lzhxu 1705 2月 16 18:34 graql
-rw-r–r-- 1 lzhxu lzhxu 34522 2月 16 18:34 LICENSE.txt
drwxr-xr-x 2 lzhxu lzhxu 4096 3月 13 14:32 logs
-rw-r–r-- 1 lzhxu lzhxu 6070 2月 16 18:34 README.md
drwxr-xr-x 7 lzhxu lzhxu 4096 3月 13 14:24 services

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ ps -ef | grep redis-server
lzhxu 3534 1674 0 09:06 ? 00:00:00 /home/lzhxu/grakn-dist-1.1.0/services/redis/redis-server-linux 127.0.0.1:6379
lzhxu 3581 2253 0 09:15 pts/12 00:00:00 grep --color=auto redis-server
lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$

lzhxu@lzhxu-VirtualBox:~/grakn-dist-1.1.0$ java -cp “./services/lib/*” -Dgrakn.dir="./services/" -Dgrakn.conf="…/conf/grakn.properties" ai.grakn.engine.GraknEngineServer
Error: Main method not found in class ai.grakn.engine.GraknEngineServer, please define the main method as:
public static void main(String[] args)
or a JavaFX application class must extend javafx.application.Application


#4

Can you provide the following:

  • ls -la /tmp/*.pid
  • tail -n 200 $GRAKN_HOME/logs/cassandra.log
  • tail -n 200 $GRAKN_HOME/logs/grakn.log
  • tail -n 200 /tmp/grakn-queue.log