I am experiencing an issue with MongoDB 7 on an Ubuntu 22.04.4 LTS server with 8 cores and 16 GB of RAM. Whenever I update my collection and exceed 47,095 records, a failure occurs that deletes all the data. This problem persists even after switching from Docker to a direct system installation. Additionally, I have tried modifying the mongodb-data-v2, mongodb-data-v1 folders, etc., but the issue continues. When I try to check the logs, I encounter the following error:

kotlin

root@host:~# tail -f /var/www/vhosts/{me.server.com}/mongodb-data-v2/mongod.log
tail: cannot open ‘/var/www/vhosts/{me.server.com/mongodb-data-v2/mongod.log’ for reading: No such file or directory

Initially, I thought it might be a Docker issue, but the failure persists even after installing MongoDB directly on the operating system.