Error on import: Directory exists but is not registered
Posted: Thu Jul 12, 2018 10:26 am
Dear all,
we're having a big issue here - after a few crashed imports, we're getting a "Error on import: Directory exists but is not registered: CheckedPath(petabyte)" error whenever trying to import anything. I've found a couple of previous cases where the same error was caused by an empty directory inside ManagedRepository (in our case, we would expect it to be the "petabyte" directory), and deleting the empty directory restored it.
Now here's the problem: We're using a custom omero.fs.repo.path that looks something like "petabyte/%groupId%/%user%_%userId%//%year%-%month%/%day%/%time%". So all our data is inside the "petabyte" folder (which is actually just a symlink to a mounted storage server share). It's not an empty directory - very much the opposite, in fact.
I've tried removing the symlink and importing data - works normally and creates a "petabyte" directory, as expected. However, "petabyte" has always been a symlink to the external storage server, and all our data is already sitting there. I'm trying to chase down the data from the crashed imports and thought maybe deleting it will sort it, but let me know if you have any other ideas. Worst case scenario is having to restore the server to its previous backup status.
best regards
Erick
we're having a big issue here - after a few crashed imports, we're getting a "Error on import: Directory exists but is not registered: CheckedPath(petabyte)" error whenever trying to import anything. I've found a couple of previous cases where the same error was caused by an empty directory inside ManagedRepository (in our case, we would expect it to be the "petabyte" directory), and deleting the empty directory restored it.
Now here's the problem: We're using a custom omero.fs.repo.path that looks something like "petabyte/%groupId%/%user%_%userId%//%year%-%month%/%day%/%time%". So all our data is inside the "petabyte" folder (which is actually just a symlink to a mounted storage server share). It's not an empty directory - very much the opposite, in fact.
I've tried removing the symlink and importing data - works normally and creates a "petabyte" directory, as expected. However, "petabyte" has always been a symlink to the external storage server, and all our data is already sitting there. I'm trying to chase down the data from the crashed imports and thought maybe deleting it will sort it, but let me know if you have any other ideas. Worst case scenario is having to restore the server to its previous backup status.
best regards
Erick