On premise Appian migration from 20.1 to 21.2 Data server fail to start

Certified Lead Developer

I am migrating Appian instance from 20.1 to 21.2.

Post migration, I am receiving error is starting the Data Server.

Log file  name : Wachdog.log

Per Log: The data server historical store (hs) folder and snapshot(ss) are not empty which is the case ( as it is migrated) but some how lastTxOffset  value is found to be -1 which indicates log should be empty.

Error stack

{"level":"DEBUG","time":"2021-06-24T02:43:39.333Z","logger":"watchdog","caller":"KafkaConsumer.java:2181","thread":"main","msg":"[Consumer clientId=consumer-1, groupId=dataserver-consumers] Kafka consumer has been closed"}
{"level":"ERROR","time":"2021-06-24T02:43:39.333Z","logger":"watchdog","caller":"Watchdog.java:1194","thread":"main","msg":"Shutting down with exit code 1..."}
java.lang.IllegalStateException: Historical store directory (/home/ec2-user/appian/data-server/data/hs) and/or snapshot root directory (/home/ec2-user/appian/data-server/data/ss) are not empty, however, lastTxOffset in kafka transaction log is (-1) which indicates the log is empty. Is the kafka log lost or corrupted?
    at com.google.common.base.Preconditions.checkState(Preconditions.java:843)
    at com.appian.data.server.TransactionLogRecovery.verify(TransactionLogRecovery.java:59)
    at com.appian.data.server.Watchdog.initializeData(Watchdog.java:324)
    at com.appian.data.server.Watchdog.startup(Watchdog.java:269)
    at com.appian.data.server.Watchdog.main(Watchdog.java:1189)

Does anybody knows how to fix it?

  Discussion posts and replies are publicly visible