Closed link2xt closed 1 year ago
Interesting -- were you unblocked if you cleared some of your disk space?
Agreed that's not a pleasant experience. Ideally it would rollback partial writes if it failed in the middle, but this might be difficult if it just ends up hanging in the middle.
Yes, it works after removing .khoj
and reconfiguring from scratch.
Agreed that's not a pleasant experience. Ideally it would rollback partial writes if it failed in the middle, but this might be difficult if it just ends up hanging in the middle.
I think the correct way to do this is to download into a temporary directory nearby (on the same filesystem, not in /tmp
) like .khoj/download
and only if there are no errors rename/move it into place. Then remove .khoj/download
each time on start to garbage-collect previously failed downloads.
That's a wonderful suggestion. That will definitely be helpful for our codepath that downloads llamav2 as well -- it's a massive 3.6GB file with some propensity to failure.
This was resolved in #393
I have configured some folder with org files for search and khoj process started to download models from huggingface. Now this partially downloaded model causes error messages:
Web UI says "Unable to reinitialize. Raise issue on Khoj Github or Discord.".
I will remove .khoj and restart from scratch.