Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException when stopping Gnosis chain during sync #8142

Open
kamilchodola opened this issue Jan 30, 2025 · 1 comment
Open

Comments

@kamilchodola
Copy link
Contributor

During very initial phase of sync I stopped gracefully a node and got this exception:

System.InvalidOperationException: Cannot access a closed file. Trying to write bloom index for block 38248384 at bucket 9337
 ---> System.ObjectDisposedException: Cannot access a closed file.
   at System.IO.RandomAccess.ValidateInput(SafeFileHandle handle, Int64 fileOffset, Boolean allowUnseekableHandles)
   at System.IO.RandomAccess.Write(SafeFileHandle handle, ReadOnlySpan`1 buffer, Int64 fileOffset)
   at Nethermind.Db.Blooms.FixedSizeFileStore.Write(Int64 index, ReadOnlySpan`1 element) in /src/Nethermind/Nethermind.Db/Blooms/FixedSizeFileStore.cs:line 33
   at Nethermind.Db.Blooms.BloomStorage.BloomStorageLevel.Store(Int64 blockNumber, Bloom bloom) in /src/Nethermind/Nethermind.Db/Blooms/BloomStorage.cs:line 272
   --- End of inner exception stack trace ---
   at Nethermind.Db.Blooms.BloomStorage.BloomStorageLevel.Store(Int64 blockNumber, Bloom bloom) in /src/Nethermind/Nethermind.Db/Blooms/BloomStorage.cs:line 283
   at Nethermind.Db.Blooms.BloomStorage.Store(Int64 blockNumber, Bloom bloom) in /src/Nethermind/Nethermind.Db/Blooms/BloomStorage.cs:line 148
   at Nethermind.Blockchain.BlockTree.Insert(BlockHeader header, BlockTreeInsertHeaderOptions headerOptions) in /src/Nethermind/Nethermind.Blockchain/BlockTree.cs:line 210
   at Nethermind.Synchronization.FastBlocks.HeadersSyncFeed.InsertToBlockTree(BlockHeader header) in /src/Nethermind/Nethermind.Synchronization/FastBlocks/FastHeadersSyncFeed.cs:line 800
   at Nethermind.Synchronization.FastBlocks.HeadersSyncFeed.InsertHeader(BlockHeader header) in /src/Nethermind/Nethermind.Synchronization/FastBlocks/FastHeadersSyncFeed.cs:line 795
   at Nethermind.Synchronization.FastBlocks.HeadersSyncFeed.InsertHeaders(HeadersSyncBatch batch) in /src/Nethermind/Nethermind.Synchronization/FastBlocks/FastHeadersSyncFeed.cs:line 611
   at Nethermind.Synchronization.FastBlocks.HeadersSyncFeed.HandleResponse(HeadersSyncBatch batch, PeerInfo peer) in /src/Nethermind/Nethermind.Synchronization/FastBlocks/FastHeadersSyncFeed.cs:line 441
   at Nethermind.Synchronization.ParallelSync.SyncDispatcher`1.DoHandleResponse(T request, PeerInfo allocatedPeer) in /src/Nethermind/Nethermind.Synchronization/ParallelSync/SyncDispatcher.cs:line 225 Bucket: 9337;Block: 38248384

It is not breaking anything in terms of syncing progress but need to verify if headers sync properly downloaded and saved all the data

@jancris100
Copy link

Hey! I'm Jan.
Member of Dojo Coding. I have contributed before to other projects like:

• Dojo
• Go Stark Me
Can I work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants