Hi,
I
’m having some trouble restoring a backup to EventStore.
I have an empty cluster running Commercial version 3.0.1, the backup is
from Open Source version 3.0.0_RC2
I’ve taken the following steps in order to restore the
backup:
·
Stopped a node on the new cluster
·
Copied chaser.chk from the backup to the db
location of the stopped node and renamed it as truncate.chk
·
Copied all other files to the db location of the
stopped node (including chaser.chk again – should I be doing this? And I’ve obviously not copied truncate.chk from the backup location as I’ve already written it to the new db location)
·
Restarted the stopped node
All seems to start off OK, I can see messages from the
IndexCommitter and the index appears to be rebuilding, but as it approaches
completion I get the following error:
[PID:00336:017 2014.11.20 12:02:56.215 DEBUG IndexCommitter ] ReadIndex Rebuilding: processed 674807 records (92.1%).
[PID:00336:017 2014.11.20 12:03:01.222 DEBUG IndexCommitter ] ReadIndex Rebuilding: processed 682258 records (94.9%).
[PID:00336:017 2014.11.20 12:03:01.425 DEBUG IndexCommitter ] ReadIndex rebuilding done: total processed 695584 records, time elapsed: 00:12:48.3055175.
[PID:00336:013 2014.11.20 12:03:01.456 INFO ClusterVNodeControll] ========== [xx.xx.xx.xx:8080] Service ‘StorageChaser’ initialized.
[PID:00336:013 2014.11.20 12:03:01.456 INFO ClusterVNodeControll] ========== [xx.xx.xx.xx:8080] SYSTEM START…
[PID:00336:013 2014.11.20 12:03:01.472 INFO ClusterVNodeControll] ========== [xx.xx.xx.xx:8080] IS UNKNOWN!!! WHOA!!!
[PID:00336:013 2014.11.20 12:03:01.503 DEBUG ElectionsService ] ELECTIONS: STARTING ELECTIONS.
[PID:00336:013 2014.11.20 12:03:01.519 DEBUG ElectionsService ] ELECTIONS: (V=0) SHIFT TO LEADER ELECTION.
[PID:00336:013 2014.11.20 12:03:01.519 DEBUG ElectionsService ] ELECTIONS: (V=0) VIEWCHANGE FROM [xx.xx.xx.xx:8080,{5a2bcf36-5d8a-47af-9fb1-3e45c6aacf64}].
[PID:03548:017 2014.11.20 12:50:02.534 FATAL StorageChaser ] Error in StorageChaser. SOMETHING VERY BAD HAPPENED.
Terminating…
EventStore.Core.TransactionLog.Chunks.TFChunk.InvalidReadException: Log record at actual pos 52550725 has non-positive length: 0. in chunk.
at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.TFChunkReadSide.TryReadForwardInternal(ReaderWorkItem workItem, Int64 actualPosition, Int32& length, LogRecord& record) in c:\EventStore.CommercialHA\oss\src\EventStore.Core\TransactionLog\Chunks\TFChunk\TFChunkReadSide.cs:line 465
at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.TFChunkReadSideUnscavenged.TryReadClosestForward(Int64 logicalPosition) in c:\EventStore.CommercialHA\oss\src\EventStore.Core\TransactionLog\Chunks\TFChunk\TFChunkReadSide.cs:line82
at EventStore.Core.TransactionLog.Chunks.TFChunkReader.TryReadNextInternal(Int32 retries) in c:\EventStore.CommercialHA\oss\src\EventStore.Core\TransactionLog\Chunks\TFChunkReader.cs:line 57
at EventStore.Core.Services.Storage.ReaderIndex.IndexCommitter.Init(Int64 buildToPosition) in c:\EventStore.CommercialHA\oss\src\EventStore.Core\Services\Storage\ReaderIndex\IndexCommitter.cs:line 81
at EventStore.Core.Services.Storage.StorageChaser.ChaseTransactionLog() in c:\EventStore.CommercialHA\oss\src\EventStore.Core\Services\Storage\StorageChaser.cs:line 99
[PID:03548:017 2014.11.20 12:50:02.596 ERROR Application ] Exiting with exit code: 1.
Exit reason: Error in StorageChaser. SOMETHING VERY BAD HAPPENED. Terminating…
Error: Log record at actual pos 52550725 has non-positive length: 0. in chunk.
``
Any ideas as to what is happening? I’m assuming I’m either
getting the process wrong, the two versions are not compatible or there is a
problem with the files from the backup.