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


#1

We’ve seen several [reports] [from] [people] unable to start Grakn with the error “java.lang.RuntimeException: Couldn’t get PID of Grakn. Received '”.

Please report the issue here in this post following the bootup issue guideline.

Additionally, please write down the output of the following command: $ ps -ef | grep Grakn.

Best regards,

Ganesh


#2

We managed to replicate the issue on a RHEL 7.0, and has provided a fix ready for the next release.

See issue: https://github.com/graknlabs/grakn/issues/2811


#3

Hello,
I’m getting this error at bootup on a Ubuntu 16.04.2 LTS.
Is there something I can do in meantime until next version? Maybe a fresh build somewhere?
Thanks,
Ely


#4

Hey @elymatos I will DM you in Slack,
if you want to test a snapshot version that has the fix for this issue
we can provide one


#5

Hi, @ganesh I also met this issue on CentOS release 6.5 (Final).

Version: 1.2.0

I installed grakn by downloaded it from official website, unzipped it and cd into it. I fail to start grakn on the third boot up step.

Starting Storage…SUCCESS
Starting Queue…SUCCESS
Starting Engine…FAILED!
Unable to start Engine

The cassandra.log shows things normal, please refer to cassandra.log, it’s a gist i created in another issue issue 874, as the content not changed except for date info, I use it again here.

The grakn-queue.log shows below:

22277:M 18 Jul 22:11:14.685 # WARNING: The TCP backlog setting of 511 cannot be enforced because /proc/sys/net/core/somaxconn is set to the lower value of 128.
22277:M 18 Jul 22:11:14.685 # Server started, Redis version 3.2.9
22277:M 18 Jul 22:11:14.685 # WARNING overcommit_memory is set to 0! Background save may fail under low memory condition. To fix this issue add ‘vm.overcommit_memory = 1’ to /etc/sysctl.conf and then reboot or run the command ‘sysctl vm.overcommit_memory=1’ for this to take effect.
22277:M 18 Jul 22:11:14.685 # WARNING you have Transparent Huge Pages (THP) support enabled in your kernel. This will create latency and memory usage issues with Redis. To fix this issue run the command ‘echo never > /sys/kernel/mm/transparent_hugepage/enabled’ as root, and add it to your /etc/rc.local in order to retain the setting after a reboot. Redis must be restarted after THP is disabled.
22277:M 18 Jul 22:11:14.685 * The server is now ready to accept connections on port 6379

The grakn.log shows the runtime exception described in title, nothing useful more.

The ls -la /tmp/*.pid, shows

-rw-r–r-- 1 root root 6 7月 18 22:11 /tmp/grakn-queue.pid
-rw-r–r-- 1 root root 5 7月 18 22:11 /tmp/grakn-storage.pid

After run the ps -ef | grep grakn, showed below:

ps -ef | grep grakn
root 20192 1 3 21:42 pts/2 00:00:25 /usr/java/jdk1.8.0_121/bin/java -Djanus.logdir=/home/xiaoq/grakn-dist-1.2.0/services/logs -ea -javaagent:/home/xiaoq/grakn-dist-1.2.0/services/lib/jamm-0.3.0.jar -XX:+CMSClassUnloadingEnabled -XX:+UseThreadPriorities -XX:ThreadPriorityPolicy=42 -Xms3980M -Xmx3980M -Xmn995M -XX:+HeapDumpOnOutOfMemoryError -Xss256k -XX:StringTableSize=1000003 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseTLAB -XX:CompileCommandFile=/home/xiaoq/grakn-dist-1.2.0/services/cassandra/hotspot_compiler -XX:CMSWaitDuration=10000 -XX:+CMSParallelInitialMarkEnabled -XX:+CMSEdenChunksRecordAlways -XX:CMSWaitDuration=10000 -XX:+UseCondCardMark -Djava.net.preferIPv4Stack=true -Dcassandra.jmx.local.port=7199 -XX:+DisableExplicitGC -Dlogback.configurationFile=/home/xiaoq/grakn-dist-1.2.0/services/cassandra/…/…/services/cassandra/cassandra-logback.xml -Dcassandra.logdir=/home/xiaoq/grakn-dist-1.2.0/./logs -Dcassandra-pidfile=/tmp/grakn-storage.pid -cp /home/xiaoq/grakn-dist-1.2.0/services/cassandra:/home/xiaoq/grakn-dist-1.2.0/build/classes/main:/home/xiaoq/grakn-dist-1.2.0/build/classes/thrift:/home/xiaoq/grakn-dist-1.2.0/services/lib/slf4j-log4j12-1.7.5.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/activation-1.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/airline-0.6.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/akka-actor_2.10-2.3.11.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/akka-remote_2.10-2.3.11.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/akka-slf4j_2.10-2.3.11.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/antlr-3.5.2.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/antlr4-runtime-4.5.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/antlr-runtime-3.5.2.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/apacheds-i18n-2.0.0-M15.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/apacheds-kerberos-codec-2.0.0-M15.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/api-asn1-api-1.0.0-M20.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/api-util-1.0.0-M20.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/archaius-core-0.4.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-3.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-5.0.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-analysis-5.0.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-commons-5.0.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-tree-5.0.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/asm-util-5.0.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/astyanax-cassandra-3.8.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/astyanax-core-3.8.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/astyanax-recipes-3.8.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/astyanax-thrift-3.8.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/avro-1.7.4.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/avro-ipc-1.7.7.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/avro-ipc-1.7.7-tests.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/avro-mapred-1.7.7-hadoop2.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/caffeine-2.3.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/cassandra-all-2.1.17.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/cassandra-driver-core-3.1.2.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/cassandra-thrift-2.1.17.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/chill_2.10-0.5.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/chill-java-0.5.0.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-cli-1.3.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-codec-1.6.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-collections-3.2.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-compiler-2.7.8.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-compress-1.4.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-configuration-1.10.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-csv-1.4.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-httpclient-3.1.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib/commons-io-2.4.jar:/home/xiaoq/grakn-dist-1.2.0/services/lib
root 20732 1 0 21:43 ? 00:00:00 /home/xiaoq/grakn-dist-1.2.0/services/redis/redis-server-linux 127.0.0.1:6380


#6

@ganesh, Hi, I found the issue on github Pull 2815 , so it’s expected to be resolved in next release, may I ask the estimated plan or I may just pull the latest code from github?


#7

I resolved this program by using latest code from github. Thx anyway.