Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Unhandled exception when using RocksDBStore plugin #330

@AnnaShaleva

Description

@AnnaShaleva

Describe the bug
I'm using Neo 3 preview3 release of neo-cli and trying to switch from LevelDBStore to RocksDBStore Plugin. I'm able to install RocksDBStore via neo-cli, but when I'm trying to re-run neo-cli with "Storage": {"Engine": "RocksDBStore"}, configuration, I get the following error:

NEO-CLI v3.0.0-preview3  -  NEO v3.0.0-preview3-00  -  NEO-VM v3.0.0-preview3

neo> [12:50:38.524] System.IO.FileNotFoundException
Could not load file or assembly 'RocksDbSharp, Version=6.2.2.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

   at Neo.Plugins.Storage.Store..ctor(String path)
   at Neo.Plugins.Storage.RocksDBStore.GetStore()
   at Neo.NeoSystem..ctor(String storageEngine)
   at Neo.CLI.MainService.Start(String[] args)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'RocksDbSharp, Version=6.2.2.0, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.

File name: 'RocksDbSharp, Version=6.2.2.0, Culture=neutral, PublicKeyToken=null'
   at Neo.Plugins.Storage.Store..ctor(String path)
   at Neo.Plugins.Storage.RocksDBStore.GetStore()
   at Neo.NeoSystem..ctor(String storageEngine)
   at Neo.CLI.MainService.Start(String[] args)
   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__139_1(Object state)
   at System.Threading.QueueUserWorkItemCallbackDefaultContext.Execute()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
   at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()


Aborted (core dumped)

The same thing happens when I'm trying to install RocksDBStore Plugin manually. This problem looks like #198.

I tried also to unzip RocksDBSharp.dll into Plugins folder from nuget.org, but then it turns out that RocksDBNative.dll is also required and missing

To Reproduce
Steps to reproduce the behavior:

  1. Download and unzip neo-cli v3.0.0-preview3 for linux-x64 from releases
  2. Download RocksDBStore Plugin v3.0.0-preview3 from releases
  3. Unzip RocksDBStore plugin into neo-cli/Plugins/ folder as described in guide
  4. Setup single-node environment as described in guide (with "Storage": {"Engine": "RocksDBStore"}, configuration)
  5. Run ./neo-cli

Expected behavior
Node is running with RocksDB storage.

Platform:

  • OS: Ubuntu 18.04.4 LTS (Bionic Beaver)
  • Version: neo-cli v3.0.0-preview3

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions