You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(python): RuntimeError: lance error: LanceError(IO): External error: Not found (maybe NFS related) #2963
changed the title [-]bug(python): RuntimeError: lance error: LanceError(IO): External error: Not found[/-][+]bug(python): RuntimeError: lance error: LanceError(IO): External error: Not found (maybe NFS related)[/+]on Jan 30, 2026
I have the same issue and don't use NFS.
It happens when adding new vectors into tables and try to index them.
This bug longs from old releases to the latest one and difficult to reproduce because it happens intermittently.
During the day run such script to index newly added data:
fortable_nameintable_names:
table=awaitdb.open_table(table_name)
# Clean up files in dirs _versions, _transactions, merge data in data# dir, add new vectors into scalar and vector indices.logger.warning(f"Optimizing {table_name} table...")
stats=awaittable.optimize(cleanup_older_than=timedelta(seconds=0), delete_unverified=True)
logger.info(stats)
logger.info(f"Finished optimizing {table_name} table.")
I examined abe829f4a32538d636465ca3c77f1c32a753835b and tested the reported LanceDB 0.25.1 release with separate processes appending data and rebuilding scalar indices on string and integer columns. All three trials (200 appends and 80 index builds each) completed successfully, and all 3,456 rows remained readable in each trial. This used an ordinary filesystem without cleanup, so it does not rule out an NFS-specific failure.
The cleanup example above disables concurrency protections: delete_unverified=True allows deleting an unfinished writer's files, and zero retention also invalidates older snapshots. Current optimize documentation warns about both. As discussed in #3122, changing the index/prune order cannot protect independent writers.
Could you provide a minimal runnable writer/indexing example and the full traceback, including any cleanup calls and their parameters? Please include the LanceDB version and filesystem/NFS mount configuration, and whether the failure still occurs without cleanup (or with default maintenance settings).
Activity
[-]bug(python): RuntimeError: lance error: LanceError(IO): External error: Not found[/-][+]bug(python): RuntimeError: lance error: LanceError(IO): External error: Not found (maybe NFS related)[/+]sprytnyk commentedon Mar 9, 2026
I have the same issue and don't use NFS.
It happens when adding new vectors into tables and try to index them.
This bug longs from old releases to the latest one and difficult to reproduce because it happens intermittently.
I have such indices for my table:
During the day run such script to index newly added data:
It works for days until it's not.
Any ideas on this @wjones127, @changhiskhan?
sprytnyk commentedon Mar 10, 2026
Per docs
optimizemethod docs, optimization covers three operations:I had a look at rust code and the order is the same, so potential fix to this problem could be:
fix(rust): change `optimize` steps ordering
fix(rust): change `optimize` steps ordering
sprytnyk commentedon Apr 27, 2026
For anyone interested in fixing the problem, this approach works as well:
Why this happens: if anything writes to the table while
optimizeruns withcleanup_older_than=timedelta(seconds=0)anddelete_unverified=True, cleanup deletes files from writes that haven't finished yet. Wrote it up here:https://sprytnyk.dev/posts/running-lancedb-in-production/#versioning
lancedb-gatefixer commentedon Nov 24, 2026
I examined
abe829f4a32538d636465ca3c77f1c32a753835band tested the reported LanceDB 0.25.1 release with separate processes appending data and rebuilding scalar indices on string and integer columns. All three trials (200 appends and 80 index builds each) completed successfully, and all 3,456 rows remained readable in each trial. This used an ordinary filesystem without cleanup, so it does not rule out an NFS-specific failure.The cleanup example above disables concurrency protections:
delete_unverified=Trueallows deleting an unfinished writer's files, and zero retention also invalidates older snapshots. Currentoptimizedocumentation warns about both. As discussed in #3122, changing the index/prune order cannot protect independent writers.Could you provide a minimal runnable writer/indexing example and the full traceback, including any cleanup calls and their parameters? Please include the LanceDB version and filesystem/NFS mount configuration, and whether the failure still occurs without cleanup (or with default maintenance settings).