Discussion Forum

Error migrating from Grakn core 2.0.2 to TypeDB 2.1.3

Hi all,

I am attempting to migrate an existing database from Grakn core version 2.0.2 to TypeDB version 2.1.3. I have successfully exported and recreated the database schema, but when I try to import the data using the following sequence of commands:

(Grakn 2.0.2)
grakn server export biology biology.tql

Seems to work fine - “biology” is the name of my database.

(TypeDB 2.1.3)
typedb server import biology biology.tql

Gives the following output:

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

                A STRONGLY-TYPED DATABASE

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

$x isa import,
has status “starting”;
io.grpc.StatusRuntimeException: UNKNOWN
at io.grpc.Status.asRuntimeException(Status.java:533)
at io.grpc.stub.ClientCalls$StreamObserverToCallListenerAdapter.onClose(ClientCalls.java:478)
at io.grpc.internal.DelayedClientCall$DelayedListener$3.run(DelayedClientCall.java:464)
at io.grpc.internal.DelayedClientCall$DelayedListener.delayOrExecute(DelayedClientCall.java:428)
at io.grpc.internal.DelayedClientCall$DelayedListener.onClose(DelayedClientCall.java:461)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:617)
at io.grpc.internal.ClientCallImpl.access$300(ClientCallImpl.java:70)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInternal(ClientCallImpl.java:803)
at io.grpc.internal.ClientCallImpl$ClientStreamListenerImpl$1StreamClosed.runInContext(ClientCallImpl.java:782)
at io.grpc.internal.ContextRunnable.run(ContextRunnable.java:37)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)

Any pointers would be much appreciated. Both servers are running on CentOS 8 if that makes any difference.

Very interesting! If your data is not private, do you mind making a reproducible issue out of this on github at Issues · vaticle/typedb · GitHub ?

In the meantime, I think between those two versions you should just be able to migrate your data by copy-pasting the data directory from inside your distribution