sgsinclair / Voyant

GNU General Public License v3.0
208 stars 53 forks source link

No space left on device...? #472

Open snug-inglenook opened 4 years ago

snug-inglenook commented 4 years ago

Hi there, Im getting this message from Voyant: Failed attempt to create corpus.

sgsinclair commented 4 years ago

We had indeed run out of disk space, sorry, cleaning things up now.

rparadis commented 4 years ago

We are running into this problem as we speak on our local voyant server. Is there instructions somewhere that can point us in the direction on how to clean up and maintain our own instance?

Thank you!

rparadis commented 4 years ago

@sgsinclair Any information on how to do server maintenance for our own voyant server instance would be great. Even if it is a point in the right direction.. Thanks for your time.

If it is as simple as just deleting the files on the filesystem... That would be good. Just wasn't sure if there is more to it.

sgsinclair commented 4 years ago

So there are a few different strategies and I really need to write up some documentation on them, but in the meantime I suggest you stop the server, find the data directory (let me know if you need help with this) move trombone5_2 to trombone5_2.2 and then restart the server. This will result in a new trombone5_2 directory being created. It will be empty, but Voyant will search for trombone5_2.* directories and try to migrate corpora if it can. Voyant has various strategies for migration, but in the meantime there are some directories in the old trombone5_2.2 directory that can be deleted if you're desperate to reclaim some room:

trombone5_2.2/cache trombone5_2.2/lucene-per-corpus

On a server that's been running a while, just those two should make a difference.

Looking forward, you can create trombone5_2.3, etc. or delete trombone5_2.2 (those older corpora won't be recoverable) and then repeat as per instructions above.

I recommend that you leave trombone5_2.1 there (if it's already there) since it contains the built-in Austen and Shakespeare corpora (Austen is used in the built-in documentation).

If you don't care about keeping older corpora, then just remove trombone5_2 (while server is not running) and Voyant will recreate it.