Skip to main content
New Participant
June 24, 2021
Question

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

  • June 24, 2021
  • 2 replies
  • 10 views

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?

2 replies

sharadsAuthor
New Participant
June 25, 2021

Resolved: The kafka log files were not migrated properly. Once it was migrated correctly, the data sever started with no error.

Participating Frequently
May 15, 2024

what are steps required to resolve this.?