Error update schema version

Hi, I am getting the following error:

cassandra schema version compatibility check failed: version mismatch for keyspace/database: "cadence". Expected version: 0.27 cannot be greater than Actual version: 0.0

I am raising the server separately using the last image, Dockerfile:

FROM ubercadence/server:0.13.0

ENTRYPOINT [ "/entrypoint.sh" ]

And what my entrypoint contains:

SCHEMA_DIR=$CADENCE_HOME/schema/cassandra/cadence/versioned
cadence-cassandra-tool --ep $CASSANDRA_SEEDS create -k $KEYSPACE --rf 1
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $KEYSPACE setup-schema -v 0.0
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $KEYSPACE update-schema -d $SCHEMA_DIR
VISIBILITY_SCHEMA_DIR=$CADENCE_HOME/schema/cassandra/visibility/versioned
cadence-cassandra-tool --ep $CASSANDRA_SEEDS create -k $VISIBILITY_KEYSPACE --rf 1
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $VISIBILITY_KEYSPACE setup-schema -v 0.0
cadence-cassandra-tool --ep $CASSANDRA_SEEDS -k $VISIBILITY_KEYSPACE update-schema -d $VISIBILITY_SCHEMA_DIR

Create the perfect schemas in cassandra, but then throw that error and the server is down.

1 Like

Hey Nicholas, I am not 100% sure about what cadence code does, but I wonder if this is happening because this particular cassandra instance already has this (cadence) keyspace in place, and cadence-cassandra-tool is surprised to see it. ; )

2 Likes

Hi mark!!
I think that’s it! It no longer presents the problem, thank you very much Mark!

2 Likes