Nextcloud version (eg, 20.0.5): 22.2.0
Operating system and version (eg, Ubuntu 20.04): Ubuntu 18.04.5
The issue you are facing:
I am unable to run occ encryption:decrypt-all
It fails with the following error:
TypeError: fclose(): Argument #1 ($stream) must be of type resource, string given in /data-directory/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php:759
Stack trace:
#0 /data-directory/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php(759): fclose()
#1 /data-directory/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php(651): OC\Files\Storage\Wrapper\Encryption->copyBetweenStorage()
#2 /data-directory/htdocs/lib/private/Files/Storage/Wrapper/Encryption.php(361): OC\Files\Storage\Wrapper\Encryption->copyFromStorage()
#3 /data-directory/htdocs/lib/private/Files/View.php(935): OC\Files\Storage\Wrapper\Encryption->copy()
#4 /data-directory/htdocs/lib/private/Encryption/DecryptAll.php(264): OC\Files\View->copy()
#5 /data-directory/htdocs/lib/private/Encryption/DecryptAll.php(229): OC\Encryption\DecryptAll->decryptFile()
#6 /data-directory/htdocs/lib/private/Encryption/DecryptAll.php(188): OC\Encryption\DecryptAll->decryptUsersFiles()
#7 /data-directory/htdocs/lib/private/Encryption/DecryptAll.php(99): OC\Encryption\DecryptAll->decryptAllUsersFiles()
#8 /data-directory/htdocs/core/Command/Encryption/DecryptAll.php(173): OC\Encryption\DecryptAll->decryptAll()
#9 /data-directory/htdocs/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Encryption\DecryptAll->execute()
#10 /data-directory/htdocs/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#11 /data-directory/htdocs/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#12 /data-directory/htdocs/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#13 /data-directory/htdocs/lib/private/Console/Application.php(209): Symfony\Component\Console\Application->run()
#14 /data-directory/htdocs/console.php(99): OC\Console\Application->run()
#15 /data-directory/htdocs/occ(11): require_once('...')
#16 {main}
This is external storage located in Amazon S3. I have been unable to download files from S3 that have been encrypted by NextCloud.
Legacy v2 authentication is turned off on the S3 bucket, but this still occurs.