{"action":"created","issue":{"url":"https://api.github.com/repos/EventStore/EventStore/issues/492","labels_url":"https://api.github.com/repos/EventStore/EventStore/issues/492/labels{/name}","comments_url":"https://api.github.com/repos/EventStore/EventStore/issues/492/comments","events_url":"https://api.github.com/repos/EventStore/EventStore/issues/492/events","html_url":"https://github.com/EventStore/EventStore/issues/492","id":82414422,"number":492,"title":"Database Backup of 2.0.1 does not work on 3.0.4 (HashValidationException)","user":{"login":"dnauck","id":97584,"avatar_url":"https://avatars.githubusercontent.com/u/97584?v=3","gravatar_id":"","url":"https://api.github.com/users/dnauck","html_url":"https://github.com/dnauck","followers_url":"https://api.github.com/users/dnauck/followers","following_url":"https://api.github.com/users/dnauck/following{/other_user}","gists_url":"https://api.github.com/users/dnauck/gists{/gist_id}","starred_url":"https://api.github.com/users/dnauck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnauck/subscriptions","organizations_url":"https://api.github.com/users/dnauck/orgs","repos_url":"https://api.github.com/users/dnauck/repos","events_url":"https://api.github.com/users/dnauck/events{/privacy}","received_events_url":"https://api.github.com/users/dnauck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-29T12:48:58Z","updated_at":"2015-06-01T13:05:10Z","closed_at":null,"body":"During migration from EventStore 2.0.1 to 3.0.4 i restored a backup of a 2.0.1 server with 165 chunks.\r\n\r\nNow i get the following result:\r\n\r\n```\r\nPS C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4> .\\EventStore.ClusterNode.exe --db=\".\\db\"\r\n[06876,01,12:35:58.366]\r\nES VERSION:               3.0.4.0 (dev/33462932459d19a1da0379702bccdc79a82729d2, Tue, 26 May 2015 14:53:28 -0400)\r\nOS:                       Windows (Microsoft Windows NT 6.2.9200.0)\r\nRUNTIME:                  .NET 4.0.30319.34209 (64-bit)\r\nGC:                       3 GENERATIONS\r\nTHREADPOOL:               Worker Threads (Min: 2, Max: 32767) - IOCP Threads: (Min: 2, Max: 1000)\r\nLOGS:                     C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4\\db-logs\r\n\r\nMODIFIED OPTIONS:\r\n\r\n        DB:                       .\\db (Command Line)\r\n\r\nDEFAULT OPTIONS:\r\n\r\n        HELP:                     False (<DEFAULT>)\r\n        VERSION:                  False (<DEFAULT>)\r\n        LOG:                      <empty> (<DEFAULT>)\r\n        CONFIG:                   <empty> (<DEFAULT>)\r\n        DEFINES:                  <empty> (<DEFAULT>)\r\n        WHAT IF:                  False (<DEFAULT>)\r\n        DEVELOPMENT MODE:         False (<DEFAULT>)\r\n        MONO MIN THREADPOOL SIZE: 10 (<DEFAULT>)\r\n        INT IP:                   127.0.0.1 (<DEFAULT>)\r\n        EXT IP:                   127.0.0.1 (<DEFAULT>)\r\n        INT HTTP PORT:            2112 (<DEFAULT>)\r\n        EXT HTTP PORT:            2113 (<DEFAULT>)\r\n        INT TCP PORT:             1112 (<DEFAULT>)\r\n        INT SECURE TCP PORT:      0 (<DEFAULT>)\r\n        EXT TCP PORT:             1113 (<DEFAULT>)\r\n        EXT SECURE TCP PORT:      0 (<DEFAULT>)\r\n        INT TCP HEARTBEAT TIMEOUT: 700 (<DEFAULT>)\r\n        EXT TCP HEARTBEAT TIMEOUT: 1000 (<DEFAULT>)\r\n        INT TCP HEARTBEAT INTERVAL: 700 (<DEFAULT>)\r\n        EXT TCP HEARTBEAT INTERVAL: 2000 (<DEFAULT>)\r\n        FORCE:                    False (<DEFAULT>)\r\n        CLUSTER SIZE:             1 (<DEFAULT>)\r\n        NODE PRIORITY:            0 (<DEFAULT>)\r\n        MIN FLUSH DELAY MS:       2 (<DEFAULT>)\r\n        COMMIT COUNT:             -1 (<DEFAULT>)\r\n        PREPARE COUNT:            -1 (<DEFAULT>)\r\n        ADMIN ON EXT:             True (<DEFAULT>)\r\n        STATS ON EXT:             True (<DEFAULT>)\r\n        GOSSIP ON EXT:            True (<DEFAULT>)\r\n        DISABLE SCAVENGE MERGING: False (<DEFAULT>)\r\n        DISCOVER VIA DNS:         True (<DEFAULT>)\r\n        CLUSTER DNS:              fake.dns (<DEFAULT>)\r\n        CLUSTER GOSSIP PORT:      30777 (<DEFAULT>)\r\n        GOSSIP SEED:              <empty> (<DEFAULT>)\r\n        STATS PERIOD SEC:         30 (<DEFAULT>)\r\n        CACHED CHUNKS:            -1 (<DEFAULT>)\r\n        CHUNKS CACHE SIZE:        536871424 (<DEFAULT>)\r\n        MAX MEM TABLE SIZE:       1000000 (<DEFAULT>)\r\n        MEM DB:                   False (<DEFAULT>)\r\n        SKIP DB VERIFY:           False (<DEFAULT>)\r\n        RUN PROJECTIONS:          System (<DEFAULT>)\r\n        PROJECTION THREADS:       3 (<DEFAULT>)\r\n        WORKER THREADS:           5 (<DEFAULT>)\r\n        HTTP PREFIXES:            <empty> (<DEFAULT>)\r\n        ENABLE TRUSTED AUTH:      False (<DEFAULT>)\r\n        CERTIFICATE STORE LOCATION: <empty> (<DEFAULT>)\r\n        CERTIFICATE STORE NAME:   <empty> (<DEFAULT>)\r\n        CERTIFICATE SUBJECT NAME: <empty> (<DEFAULT>)\r\n        CERTIFICATE THUMBPRINT:   <empty> (<DEFAULT>)\r\n        CERTIFICATE FILE:         <empty> (<DEFAULT>)\r\n        CERTIFICATE PASSWORD:     <empty> (<DEFAULT>)\r\n        USE INTERNAL SSL:         False (<DEFAULT>)\r\n        SSL TARGET HOST:          n/a (<DEFAULT>)\r\n        SSL VALIDATE SERVER:      True (<DEFAULT>)\r\n        AUTHENTICATION TYPE:      internal (<DEFAULT>)\r\n        PREPARE TIMEOUT MS:       2000 (<DEFAULT>)\r\n        COMMIT TIMEOUT MS:        2000 (<DEFAULT>)\r\n        UNSAFE DISABLE FLUSH TO DISK: False (<DEFAULT>)\r\n        WRITE THROUGH:            False (<DEFAULT>)\r\n        UNBUFFERED:               False (<DEFAULT>)\r\n        INDEX CACHE DEPTH:        16 (<DEFAULT>)\r\n        GOSSIP INTERVAL MS:       1000 (<DEFAULT>)\r\n        GOSSIP ALLOWED DIFFERENCE MS: 60000 (<DEFAULT>)\r\n        GOSSIP TIMEOUT MS:        500 (<DEFAULT>)\r\n        ENABLE HISTOGRAMS:        False (<DEFAULT>)\r\n\r\n[06876,01,12:35:58.880] Quorum size set to 1\r\n[06876,01,12:35:59.103] Cannot find plugins path: C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4\\plugins\r\n[06876,01,12:35:59.543]\r\nINSTANCE ID:              22a2e52a-ad38-403c-8701-0047843c639d\r\nDATABASE:                 C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4\\db\r\nWRITER CHECKPOINT:        44348992000 (0xA5367EA00)\r\nCHASER CHECKPOINT:        44348992000 (0xA5367EA00)\r\nEPOCH CHECKPOINT:         42743718160 (0x9F3B96110)\r\nTRUNCATE CHECKPOINT:      -1 (0xFFFFFFFFFFFFFFFF)\r\n\r\n[06876,01,12:36:01.471] MessageHierarchy initialization took 00:00:01.6682221.\r\n[06876,06,12:36:04.322] Verifying hash for TFChunk 'C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4\\db\\chunk-000163.000001'.\r\n..\r\n[06876,01,12:36:04.360] CACHED TFChunk #165-165 (chunk-000165.000000) in 00:00:00.0562299.\r\n[06876,07,12:36:04.360] CACHED TFChunk #108-108 (chunk-000108.000001) in 00:00:00.0006619.\r\n[06876,07,12:36:04.360] CACHED TFChunk #109-109 (chunk-000109.000001) in 00:00:00.0004732.\r\n[06876,07,12:36:04.360] CACHED TFChunk #110-110 (chunk-000110.000001) in 00:00:00.0016781.\r\n[06876,07,12:36:04.360] CACHED TFChunk #111-111 (chunk-000111.000001) in 00:00:00.0019734.\r\n[06876,07,12:36:04.360] CACHED TFChunk #112-112 (chunk-000112.000001) in 00:00:00.0004184.\r\n[06876,07,12:36:04.370] CACHED TFChunk #113-113 (chunk-000113.000001) in 00:00:00.0016700.\r\n[06876,07,12:36:04.410] CACHED TFChunk #114-114 (chunk-000114.000002) in 00:00:00.0402263.\r\n[06876,07,12:36:04.410] CACHED TFChunk #115-115 (chunk-000115.000002) in 00:00:00.0020443.\r\n[06876,07,12:36:04.410] CACHED TFChunk #116-116 (chunk-000116.000002) in 00:00:00.0005013.\r\n[06876,07,12:36:04.410] CACHED TFChunk #117-117 (chunk-000117.000003) in 00:00:00.0017120.\r\n[06876,07,12:36:04.422] CACHED TFChunk #118-118 (chunk-000118.000002) in 00:00:00.0070126.\r\n[06876,07,12:36:04.422] CACHED TFChunk #119-119 (chunk-000119.000002) in 00:00:00.0008435.\r\n[06876,07,12:36:04.422] CACHED TFChunk #120-120 (chunk-000120.000001) in 00:00:00.0021018.\r\n[06876,07,12:36:04.422] CACHED TFChunk #121-121 (chunk-000121.000001) in 00:00:00.0004474.\r\n[06876,07,12:36:04.422] CACHED TFChunk #122-122 (chunk-000122.000001) in 00:00:00.0002591.\r\n[06876,07,12:36:04.422] CACHED TFChunk #123-123 (chunk-000123.000002) in 00:00:00.0004643.\r\n[06876,07,12:36:04.422] CACHED TFChunk #124-124 (chunk-000124.000002) in 00:00:00.0010446.\r\n[06876,07,12:36:04.443] CACHED TFChunk #125-125 (chunk-000125.000002) in 00:00:00.0149182.\r\n[06876,07,12:36:04.443] CACHED TFChunk #126-126 (chunk-000126.000002) in 00:00:00.0016482.\r\n[06876,07,12:36:04.443] CACHED TFChunk #127-127 (chunk-000127.000001) in 00:00:00.0006646.\r\n[06876,07,12:36:04.460] CACHED TFChunk #128-128 (chunk-000128.000001) in 00:00:00.0143914.\r\n[06876,07,12:36:04.460] CACHED TFChunk #129-129 (chunk-000129.000001) in 00:00:00.0008872.\r\n[06876,07,12:36:04.460] CACHED TFChunk #130-130 (chunk-000130.000001) in 00:00:00.0004772.\r\n[06876,07,12:36:04.463] CACHED TFChunk #131-131 (chunk-000131.000002) in 00:00:00.0005736.\r\n[06876,07,12:36:04.463] CACHED TFChunk #132-132 (chunk-000132.000003) in 00:00:00.0025019.\r\n[06876,07,12:36:04.463] CACHED TFChunk #133-133 (chunk-000133.000002) in 00:00:00.0024770.\r\n[06876,07,12:36:04.463] CACHED TFChunk #134-134 (chunk-000134.000002) in 00:00:00.0003778.\r\n[06876,07,12:36:04.463] CACHED TFChunk #135-135 (chunk-000135.000002) in 00:00:00.0002935.\r\n[06876,07,12:36:04.463] CACHED TFChunk #136-136 (chunk-000136.000002) in 00:00:00.0005905.\r\n[06876,07,12:36:04.463] CACHED TFChunk #137-137 (chunk-000137.000001) in 00:00:00.0066535.\r\n[06876,07,12:36:04.479] CACHED TFChunk #138-138 (chunk-000138.000001) in 00:00:00.0021892.\r\n[06876,07,12:36:04.479] CACHED TFChunk #139-139 (chunk-000139.000001) in 00:00:00.0007440.\r\n[06876,07,12:36:04.479] CACHED TFChunk #140-140 (chunk-000140.000001) in 00:00:00.0054620.\r\n[06876,07,12:36:04.479] CACHED TFChunk #141-141 (chunk-000141.000002) in 00:00:00.0036894.\r\n[06876,07,12:36:04.479] CACHED TFChunk #142-142 (chunk-000142.000002) in 00:00:00.0004648.\r\n[06876,07,12:36:04.494] CACHED TFChunk #143-143 (chunk-000143.000002) in 00:00:00.0028084.\r\n[06876,07,12:36:04.494] CACHED TFChunk #144-144 (chunk-000144.000002) in 00:00:00.0002489.\r\n[06876,07,12:36:04.494] CACHED TFChunk #145-145 (chunk-000145.000002) in 00:00:00.0002622.\r\n[06876,07,12:36:04.494] CACHED TFChunk #146-146 (chunk-000146.000001) in 00:00:00.0012244.\r\n[06876,07,12:36:04.494] CACHED TFChunk #147-147 (chunk-000147.000001) in 00:00:00.0010366.\r\n[06876,07,12:36:04.494] CACHED TFChunk #148-148 (chunk-000148.000001) in 00:00:00.0003412.\r\n[06876,07,12:36:04.494] CACHED TFChunk #149-149 (chunk-000149.000002) in 00:00:00.0003760.\r\n[06876,07,12:36:04.494] CACHED TFChunk #150-150 (chunk-000150.000002) in 00:00:00.0010397.\r\n[06876,07,12:36:04.494] CACHED TFChunk #151-151 (chunk-000151.000002) in 00:00:00.0009626.\r\n[06876,07,12:36:04.494] CACHED TFChunk #152-152 (chunk-000152.000002) in 00:00:00.0010411.\r\n[06876,07,12:36:04.494] CACHED TFChunk #153-153 (chunk-000153.000002) in 00:00:00.0007636.\r\n[06876,07,12:36:04.494] CACHED TFChunk #154-154 (chunk-000154.000002) in 00:00:00.0004496.\r\n[06876,07,12:36:04.494] CACHED TFChunk #155-155 (chunk-000155.000001) in 00:00:00.0018311.\r\n[06876,07,12:36:04.494] CACHED TFChunk #156-156 (chunk-000156.000001) in 00:00:00.0006762.\r\n[06876,07,12:36:04.494] CACHED TFChunk #157-157 (chunk-000157.000001) in 00:00:00.0006664.\r\n[06876,07,12:36:04.494] CACHED TFChunk #158-158 (chunk-000158.000001) in 00:00:00.0020037.\r\n[06876,07,12:36:04.516] CACHED TFChunk #159-159 (chunk-000159.000001) in 00:00:00.0070451.\r\n[06876,07,12:36:04.516] CACHED TFChunk #160-160 (chunk-000160.000001) in 00:00:00.0080510.\r\n[06876,07,12:36:04.532] CACHED TFChunk #161-161 (chunk-000161.000001) in 00:00:00.0068444.\r\n[06876,07,12:36:04.532] CACHED TFChunk #162-162 (chunk-000162.000001) in 00:00:00.0060482.\r\n[06876,07,12:36:04.557] CACHED TFChunk #163-163 (chunk-000163.000001) in 00:00:00.0186491.\r\n[06876,07,12:36:04.557] CACHED TFChunk #164-164 (chunk-000164.000001) in 00:00:00.0062739.\r\nExiting with exit code: 1.\r\nExit reason: Verification of chunk #163-163 (chunk-000163.000001) failed, terminating server...\r\n[06876,06,12:36:04.869] EventStore.Core.Exceptions.HashValidationException: Exception of type 'EventStore.Core.Exception\r\ns.HashValidationException' was thrown.\r\n   at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.VerifyFileHash() in c:\\EventStore\\src\\EventStore.Core\\Transa\r\nctionLog\\Chunks\\TFChunk\\TFChunk.cs:line 496\r\n   at EventStore.Core.TransactionLog.Chunks.TFChunkDb.<>c__DisplayClass1.<Open>b__0(Object _) in c:\\EventStore\\src\\Event\r\nStore.Core\\TransactionLog\\Chunks\\TFChunkDb.cs:line 144\r\n[06876,06,12:36:04.869] Verification of chunk #163-163 (chunk-000163.000001) failed, terminating server...\r\nException of type 'EventStore.Core.Exceptions.HashValidationException' was thrown.\r\n[06876,06,12:36:04.923] Exiting with exit code: 1.\r\nExit reason: Verification of chunk #163-163 (chunk-000163.000001) failed, terminating server...\r\nPS C:\\Users\\danie_000\\Desktop\\eventstore-3.0.4>\r\n```\r\n\r\nError Log:\r\n\r\n```\r\n[PID:06876:006 2015.05.29 12:36:04.869 FATAL TFChunkDb           ] Verification of chunk #163-163 (chunk-000163.000001) failed, terminating server...\r\nEventStore.Core.Exceptions.HashValidationException: Exception of type 'EventStore.Core.Exceptions.HashValidationException' was thrown.\r\n   at EventStore.Core.TransactionLog.Chunks.TFChunk.TFChunk.VerifyFileHash() in c:\\EventStore\\src\\EventStore.Core\\TransactionLog\\Chunks\\TFChunk\\TFChunk.cs:line 496\r\n   at EventStore.Core.TransactionLog.Chunks.TFChunkDb.<>c__DisplayClass1.<Open>b__0(Object _) in c:\\EventStore\\src\\EventStore.Core\\TransactionLog\\Chunks\\TFChunkDb.cs:line 144\r\n[PID:06876:006 2015.05.29 12:36:04.923 ERROR Application         ] Exiting with exit code: 1.\r\nExit reason: Verification of chunk #163-163 (chunk-000163.000001) failed, terminating server...\r\n```\r\n\r\nIf you need some more information, just let me know."},"comment":{"url":"https://api.github.com/repos/EventStore/EventStore/issues/comments/107439583","html_url":"https://github.com/EventStore/EventStore/issues/492#issuecomment-107439583","issue_url":"https://api.github.com/repos/EventStore/EventStore/issues/492","id":107439583,"user":{"login":"dnauck","id":97584,"avatar_url":"https://avatars.githubusercontent.com/u/97584?v=3","gravatar_id":"","url":"https://api.github.com/users/dnauck","html_url":"https://github.com/dnauck","followers_url":"https://api.github.com/users/dnauck/followers","following_url":"https://api.github.com/users/dnauck/following{/other_user}","gists_url":"https://api.github.com/users/dnauck/gists{/gist_id}","starred_url":"https://api.github.com/users/dnauck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dnauck/subscriptions","organizations_url":"https://api.github.com/users/dnauck/orgs","repos_url":"https://api.github.com/users/dnauck/repos","events_url":"https://api.github.com/users/dnauck/events{/privacy}","received_events_url":"https://api.github.com/users/dnauck/received_events","type":"User","site_admin":false},"created_at":"2015-06-01T13:05:09Z","updated_at":"2015-06-01T13:05:09Z","body":"Maybe you could add the git rev into the output the the start sequence. (like mono does) This helps in those problems."}}