Periodically we have a problem with free space on our koha server on Ubuntu 20.04.6. The total disk capacity is 210 GB (koha usually takes 105 GB), but sometimes the number of files in /var/lib/koha/library/biblios/tmp suddenly grows and takes up all the free disk space. As a result, koha server starts working with errors and stops completely. I have come to the conclusion that this folder holds temporary zebra files. I just clear the tmp folder each time. After that, the koha wakes up. Is that an issue with a small disk, or is that an issue with periodical cleaning tmp folder?
I have noticed on some systems that Zebra sometimes leaves behind temporary search results in that /var/lib/koha/library/biblios/tmp folder. I'd say on 98% of my instances it does not do this, but the other 2% it does. For those, I have a cronjob that uses the "find" command to find search result files older than say 1 hour and delete them. It's not clear why this happens and Zebra isn't really supported by its authors anymore. They suggest moving to Elasticsearch, which is also an option with Koha. I've found the cronjob workaround works well enough.
It sounds like his would also be a good one to discuss in chat/on mattermost (see chat.koha-community.org). It sounds like something a lot of people might have run into and have solved on system administration level.
(In reply to David Cook from comment #1) > I have noticed on some systems that Zebra sometimes leaves behind temporary > search results in that /var/lib/koha/library/biblios/tmp folder. I'd say on > 98% of my instances it does not do this, but the other 2% it does. For > those, I have a cronjob that uses the "find" command to find search result > files older than say 1 hour and delete them. > > It's not clear why this happens and Zebra isn't really supported by its > authors anymore. They suggest moving to Elasticsearch, which is also an > option with Koha. > > I've found the cronjob workaround works well enough. So, thanks! I'll try to do the same.
Moved to chat support.