Orthanc stopped reindexing StorageDirectory after crash — how to resume safely?

Hi everyone,

I’m having issues with Orthanc crashing while it was reindexing the .dcm files from the StorageDirectory.
I have a very large dataset, so this reindexing process normally takes a couple of weeks to complete.

After the crash, when I restarted Orthanc, it no longer continued reindexing. As a result, I can’t download or interact with the studies and series that haven’t yet been reindexed — Orthanc reports errors such as “The specified path does not point to a regular file.”

Is there any way to resume the internal indexing process from where it stopped, without starting everything over (e.g., without having to rebuild or re-import the entire dataset)?
Alternatively, is there a command or REST endpoint that can safely re-trigger this internal reindexing for the unprocessed data?

Setup:

  • Orthanc 1.12.1 (Windows, PostgreSQL plugins)

  • StorageDirectory on a network-mounted drive (C:\SymLink\Orthanc)

  • Using the standard indexer-plugin.db automatically created by the PostgreSQL Indexer plugin

Best regards,
Henrik

Hi,

No, there is no way to resume the indexing where it was even with the latest advanced-storage plugin.

If you really have a huge amount of data to index and want to be able to resume indexing, I would strongly recommend that you use the advanced-storage plugin and write your own python script that list the files and call /plugins/advanced-storage/adopt-instance for each file individually. This is actually equivalent to what the “indexer mode” is doing but you’ll have full control on it.
(Reference API)

Note that I already recommended you to use the advanced-storage plugin back in June

Best,

Alain