I ran into issues with my external storage setup using SFTP and encryption enabled. The errors in the log are:
Can't get app storage, app files_external, user not logged in: "remoteAddr":"","user":"--","app":"core","method":"","url":"/cron.php","message":"Can't get app storage, app files_external, user not logged in","userAgent":"--","version":"28.0.4.1","data":{"app":"core"}}
and
Failed to open stream: \"OCA\\Files_External\\Lib\\Storage\\SFTPReadStream::stream_open\" call failed at /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SFTP.php#392","userAgent":"--","version":"28.0.4.1","data":{"app":"PHP"}}
With this setup I ended up with encrypted files on the external storage and some of the previously uploaded files not visible anymore at the desktop client side. Enabling Check for changes made the files visible again but of course the encrypted version of the file.
My setup is:
Nextcloud Hub 7 (28.0.6)
Operating System: Linux 5.10.0-28-amd64 x86_64
CPU: Common KVM processor (2 cores)
Memory: 3.83 GB
I want to keep the external storage, but change to a different protocol and more reliable setup. Which setup is the most reliable? I am now considering these 2 options:
-
External storage with SMB/CIFS in Nextcloud without server side encryption (I would probably switch to client side encryption using Cryptomator)
-
Local external storage in Nextcloud without server side encryption connected to a locally automounted cifs folder in Debian:
//<username>.your-storagebox.de/backup /mnt/backup-server cifs iocharset=utf8,rw,credentials=/etc/backup-credentials.txt,uid=<system account>,gid=<system group>,file_mode=0660,dir_mode=0770 0 0