[Boot Issue] [Resolved] For info, error while booting up


#1

Just to let you know, everything works for me know, but I got the following.
I had a brew version installed and a dowloaded un-packed version. I have removed the brew installed one and deleted the unpacked one. I have reinstalled everything and it works.
I got the following issue:

Grakn is not available at localhost:4567

  1. Grakn 1.0.0
  2. Mac latest version
    3 Zip downloaded
  3. see image

$ ls -la /tmp/*.pid
-rw-r–r-- 1 samuel wheel 5 Jan 3 16:54 /tmp/grakn-queue.pid
-rw-r–r-- 1 samuel wheel 4 Jan 3 16:54 /tmp/grakn-storage.pid
-rw-r–r-- 1 samuel wheel 4 Jan 3 16:54 /tmp/grakn.pid

$ ps -ef | grep redis-server
501 1494 1 0 4:54PM ?? 0:00.35 redis-server *:6379
501 1821 1 0 4:54PM ?? 0:00.41 /Users/samuel/grakn/services/redis/redis-server-osx 127.0.0.1:6379
501 2002 1498 0 5:04PM ttys000 0:00.00 grep redis-server

$ jps
1827 Grakn
1718 CassandraDaemon
2006 Jps


#2

2018-01-03 16:55:02,005 [main] INFO ai.grakn.engine.GraknEngineServer - EngineID{value=Samuels-MacBook-Pro.local-492e1e0b-338f-46b5-ab2e-5b626e4902db} is checking the system schema
2018-01-03 16:55:03,003 [main] ERROR ai.grakn.engine.SystemKeyspace - Error while loading system schema in 996.0 ms. The error was: StorageBackend version is incompatible with current JanusGraph version: storage [0.2.0-grakn-SNAPSHOT] vs. runtime [0.2.0]
org.janusgraph.core.JanusGraphException: StorageBackend version is incompatible with current JanusGraph version: storage [0.2.0-grakn-SNAPSHOT] vs. runtime [0.2.0]
at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.(GraphDatabaseConfiguration.java:1427)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:123)
at org.janusgraph.core.JanusGraphFactory$Builder.open(JanusGraphFactory.java:264)
at ai.grakn.factory.TxFactoryJanus.configureGraph(TxFactoryJanus.java:173)
at ai.grakn.factory.TxFactoryJanus.newJanusGraph(TxFactoryJanus.java:127)
at ai.grakn.factory.TxFactoryJanus.buildTinkerPopGraph(TxFactoryJanus.java:123)
at ai.grakn.factory.TxFactoryJanus.buildTinkerPopGraph(TxFactoryJanus.java:72)
at ai.grakn.factory.TxFactoryAbstract.getTinkerPopGraph(TxFactoryAbstract.java:112)
at ai.grakn.factory.TxFactoryAbstract.getTinkerPopGraph(TxFactoryAbstract.java:106)
at ai.grakn.factory.TxFactoryAbstract.getGraph(TxFactoryAbstract.java:87)
at ai.grakn.factory.TxFactoryAbstract.open(TxFactoryAbstract.java:74)
at ai.grakn.factory.GraknSessionImpl.open(GraknSessionImpl.java:174)
at ai.grakn.engine.factory.EngineGraknTxFactory.tx(EngineGraknTxFactory.java:89)
at ai.grakn.engine.SystemKeyspaceImpl.loadSystemSchema(SystemKeyspaceImpl.java:166)
at ai.grakn.engine.GraknEngineServer.loadAndUnlock(GraknEngineServer.java:129)
at ai.grakn.engine.GraknEngineServer.lockAndInitializeSystemSchema(GraknEngineServer.java:117)
at ai.grakn.engine.GraknEngineServer.start(GraknEngineServer.java:83)
at ai.grakn.engine.Grakn.main(Grakn.java:50)
2018-01-03 16:55:03,005 [main] ERROR ai.grakn.engine.Grakn - An exception has occurred
org.janusgraph.core.JanusGraphException: StorageBackend version is incompatible with current JanusGraph version: storage [0.2.0-grakn-SNAPSHOT] vs. runtime [0.2.0]
at org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration.(GraphDatabaseConfiguration.java:1427)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:164)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:133)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:123)
at org.janusgraph.core.JanusGraphFactory$Builder.open(JanusGraphFactory.java:264)
at ai.grakn.factory.TxFactoryJanus.configureGraph(TxFactoryJanus.java:173)
at ai.grakn.factory.TxFactoryJanus.newJanusGraph(TxFactoryJanus.java:127)
at ai.grakn.factory.TxFactoryJanus.buildTinkerPopGraph(TxFactoryJanus.java:123)
at ai.grakn.factory.TxFactoryJanus.buildTinkerPopGraph(TxFactoryJanus.java:72)
at ai.grakn.factory.TxFactoryAbstract.getTinkerPopGraph(TxFactoryAbstract.java:112)
at ai.grakn.factory.TxFactoryAbstract.getTinkerPopGraph(TxFactoryAbstract.java:106)
at ai.grakn.factory.TxFactoryAbstract.getGraph(TxFactoryAbstract.java:87)
at ai.grakn.factory.TxFactoryAbstract.open(TxFactoryAbstract.java:74)
at ai.grakn.factory.GraknSessionImpl.open(GraknSessionImpl.java:174)
at ai.grakn.engine.factory.EngineGraknTxFactory.tx(EngineGraknTxFactory.java:89)
at ai.grakn.engine.SystemKeyspaceImpl.loadSystemSchema(SystemKeyspaceImpl.java:166)
at ai.grakn.engine.GraknEngineServer.loadAndUnlock(GraknEngineServer.java:129)
at ai.grakn.engine.GraknEngineServer.lockAndInitializeSystemSchema(GraknEngineServer.java:117)
at ai.grakn.engine.GraknEngineServer.start(GraknEngineServer.java:83)
at ai.grakn.engine.Grakn.main(Grakn.java:50)
2018-01-03 16:57:18,012 [main] INFO ai.grakn.engine.GraknConfig - Project directory in use: /Users/samuel/grakn
2018-01-03 16:57:18,016 [main] INFO ai.grakn.engine.GraknConfig - Configuration file in use: /Users/samuel/grakn/conf/grakn.properties

1821:M 03 Jan 16:54:48.784 # Server started, Redis version 3.2.9
1821:M 03 Jan 16:54:48.796 * DB saved on disk
1821:M 03 Jan 16:54:48.796 * DB saved on disk
1821:M 03 Jan 16:54:48.796 * DB saved on disk
1821:M 03 Jan 16:54:48.798 * DB saved on disk
1821:M 03 Jan 16:54:48.798 * DB saved on disk
1821:M 03 Jan 16:54:48.798 * DB saved on disk
1821:M 03 Jan 16:54:48.799 * DB saved on disk
1821:M 03 Jan 16:54:48.799 * DB saved on disk
1821:M 03 Jan 16:54:48.799 * DB saved on disk
1821:M 03 Jan 16:54:48.804 * DB saved on disk
1821:M 03 Jan 16:54:48.804 * DB saved on disk
1821:M 03 Jan 16:54:48.805 * DB saved on disk
1821:M 03 Jan 16:54:48.805 * DB saved on disk
1821:M 03 Jan 16:54:48.806 * DB loaded from append only file: 0.022 seconds
1821:M 03 Jan 16:54:48.806 * The server is now ready to accept connections on port 6379
1821:M 03 Jan 16:59:49.078 * 10 changes in 300 seconds. Saving…
1821:M 03 Jan 16:59:49.081 * Background saving started by pid 1973
1973:C 03 Jan 16:59:49.082 * DB saved on disk
1821:M 03 Jan 16:59:49.182 * Background saving terminated with success


#3

cassandra.log (230.2 KB)


#4

Hi Samuel,

I don’t follow - can you clarify if the error came from the distribution which came from brew, or the one which you had downloaded?

Also, you said that you have somehow managed to fix it meaning that it does not happen anymore. Again, is this with the brew package or the one you downloaded directly?


#5

Hi Ganesh,

Sorry I was not clear… The issue was from the downloaded one. When running ./grakn start server (see print screen)

I resolved the issue by

  1. removing GRAKN that was installed by brew (I had version 1.0.0, 0.16, 0.17)
  2. removing GRAKN that was manually downloaded/installed
  3. re-installing the downloaded version

#6

I see, thank you for reporting!


#7

i have the same issue with the Docker Image 0.18.0.

The interesting thing is that it seems to appear at random.

At one time i can run the image and everything starts up fine. Other times, I run the image and get the same error. When that happens i can stop and rm the image and run it anew and then it usually starts ups fine.