Repack
Today when we close repository, we pack it. Sometimes it lead to error because other process had mounted repository in memory.
Found a way to do it correctly, maybe lock repo in read/write.
Maybe an async task in background with locked repository.