baking-bad / tzkt

😼 Awesome Tezos blockchain indexer and API
https://tzkt.io
MIT License
183 stars 35 forks source link

Tzkt.Sync no longer working on ghostnet #157

Closed laibe closed 1 year ago

laibe commented 1 year ago

Hello team, I'm running completely identical configurations of tzkt and octez for mainnet and ghostnet. However since 2023-10-21 Tzkt.Sync stopped working on ghostnet. I've tried to download a fresh tzkt database snapshot and restarted all container,but still receiving the same error. Octez ghostnet is up and synced.

tzkt-sync: v1.12.4 tzkt-api: v1.12.4 octez: v18.0

Error logs:

2023-10-25T15:16:27.542397182Z info: Tzkt.Sync.Services.Observer[0]
2023-10-25T15:16:27.542407182Z       Synchronization started
2023-10-25T15:16:29.132813228Z fail: Tzkt.Sync.Services.Observer[0]
2023-10-25T15:16:29.132854758Z       Failed to apply updates
2023-10-25T15:16:29.132863489Z       System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
2023-10-25T15:16:29.132871309Z          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2023-10-25T15:16:29.132878699Z          at System.Net.Http.HttpClient.GetStreamAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
2023-10-25T15:16:29.132885669Z          at Tzkt.Sync.Services.TezosNode.GetAsync(String url) in /app/Tzkt.Sync/Services/TezosNode/TezosNode.cs:line 32
2023-10-25T15:16:29.132892809Z          at Tzkt.Sync.ProtocolHandler.CommitBlock(Int32 head) in /app/Tzkt.Sync/Protocols/ProtocolHandler.cs:line 52
2023-10-25T15:16:29.132899109Z          at Tzkt.Sync.Services.Observer.ApplyUpdatesAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 183
2023-10-25T15:16:29.132904299Z          at Tzkt.Sync.Services.Observer.ExecuteAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 66
2023-10-25T15:16:32.153082197Z fail: Tzkt.Sync.Services.Observer[0]
2023-10-25T15:16:32.153104387Z       Failed to apply updates
2023-10-25T15:16:32.153111617Z       System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
2023-10-25T15:16:32.153118307Z          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2023-10-25T15:16:32.153124347Z          at System.Net.Http.HttpClient.GetStreamAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
2023-10-25T15:16:32.153131247Z          at Tzkt.Sync.Services.TezosNode.GetAsync(String url) in /app/Tzkt.Sync/Services/TezosNode/TezosNode.cs:line 32
2023-10-25T15:16:32.153138937Z          at Tzkt.Sync.ProtocolHandler.CommitBlock(Int32 head) in /app/Tzkt.Sync/Protocols/ProtocolHandler.cs:line 52
2023-10-25T15:16:32.153158498Z          at Tzkt.Sync.Services.Observer.ApplyUpdatesAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 183
2023-10-25T15:16:32.153164918Z          at Tzkt.Sync.Services.Observer.ExecuteAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 66
2023-10-25T15:16:35.224714450Z fail: Tzkt.Sync.Services.Observer[0]
2023-10-25T15:16:35.224770341Z       Failed to apply updates
2023-10-25T15:16:35.224787171Z       System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found).
2023-10-25T15:16:35.224799601Z          at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode()
2023-10-25T15:16:35.224809891Z          at System.Net.Http.HttpClient.GetStreamAsyncCore(HttpRequestMessage request, CancellationToken cancellationToken)
2023-10-25T15:16:35.224820131Z          at Tzkt.Sync.Services.TezosNode.GetAsync(String url) in /app/Tzkt.Sync/Services/TezosNode/TezosNode.cs:line 32
2023-10-25T15:16:35.224831031Z          at Tzkt.Sync.ProtocolHandler.CommitBlock(Int32 head) in /app/Tzkt.Sync/Protocols/ProtocolHandler.cs:line 52
2023-10-25T15:16:35.224844132Z          at Tzkt.Sync.Services.Observer.ApplyUpdatesAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 183
2023-10-25T15:16:35.224857552Z          at Tzkt.Sync.Services.Observer.ExecuteAsync(CancellationToken cancelToken) in /app/Tzkt.Sync/Services/Observer/Observer.cs:line 66

Edit: I'm running octez with historyMode rolling, I'll increase the cycle and try again - I think this might fix it

laibe commented 1 year ago

downloading new snapshot and increasing rolling cycle to 10 helped.