I installed Nextcloud about a week ago on a DigitalOcean droplet. I am having an issue with image previews - every time there is generation of previews, it starts ok but after a while it increases the server load exponentially to the point where the server becomes unresponsive.
My set up is as follows:
VPS spec: 2 vCPUs, 4GB RAM
Nextcloud version: 18.0.4 (snap)
Operating system and version: Ubuntu 18.04.3
I have a particular setup with my data folder - I use rclone encrypted remotes pointed at Google Drive, and the Nextcloud data folder is on /media/GDrive which is a folder on that rclone encrypted remote.
I use this setup for other things as well (e.g. Plex) and it works well, albeit with increased access times sometimes.
The photos are in another mount added as ‘external storage’ to Nextcloud. I have also tried generating previews for photos stored in my Nextcloud folders (not in ‘external storage’), same result.
I have tried generating previews both using the Preview Generator and on-demand (e.g. opening each folder one at a time), the problem occurs regardless.
If I disable previews in config.php, then the problem goes away, I can view pictures normally.
The Admin -> Logging area just shows some logs from 6 days ago, nothing recent or related to the crashes.
I am not sure which other logs to paste here, as I use the snap version and I understand it handles apache and php by itself within the snap, and don’t want to be pasting unnecessary ones - if someone can point out the correct one to paste, I’ll be more than happy to.
If no one else is having this issue, I am guessing it must be related to my rclone setup, however if anyone has any insights or seen this before, I would certainly appreciate your input.