[encryption] (solved) Upload files over webdav gives an error

Since I activate the encryption I get an error with shared files.
This is an file that Uploaded over webdav from am worktime App for Android.

Exception: {"Exception":"OC\\Encryption\\Exceptions\\DecryptionFailedException","Message":"Can not decrypt this file, probably this is a shared file. Please ask the file owner to reshare the file with you.","Code":0,"Trace":"#0 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/storage\/wrapper\/encryption.php(573): OCA\\Encryption\\Crypto\\Encryption->decrypt('p\\xBC\\x83-\\xCD\\x07\\xA9\\xF0f\\xFA\\x1F\\xC0\\xF1\\x0E\\xD6...', '1end')\n#1 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/storage\/wrapper\/encryption.php(492): OC\\Files\\Storage\\Wrapper\\Encryption->fixUnencryptedSize('files_versions\/...', 16359, 16359)\n#2 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/storage\/wrapper\/encryption.php(184): OC\\Files\\Storage\\Wrapper\\Encryption->verifyUnencryptedSize('files_versions\/...', 16359)\n#3 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/storage\/wrapper\/wrapper.php(566): OC\\Files\\Storage\\Wrapper\\Encryption->getMetaData('files_versions\/...')\n#4 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(111): OC\\Files\\Storage\\Wrapper\\Wrapper->getMetaData('files_versions\/...')\n#5 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(142): OC\\Files\\Cache\\Scanner->getData('files_versions\/...')\n#6 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(385): OC\\Files\\Cache\\Scanner->scanFile('files_versions\/...', 3, '10383', Object(OC\\Files\\Cache\\CacheEntry), true)\n#7 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(425): OC\\Files\\Cache\\Scanner->scanChildren('files_versions\/...', true, 3, Array, true)\n#8 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(425): OC\\Files\\Cache\\Scanner->scanChildren('files_versions\/...', true, 3, Array, true)\n#9 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(425): OC\\Files\\Cache\\Scanner->scanChildren('files_versions', true, 3, Array, true)\n#10 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/cache\/scanner.php(305): OC\\Files\\Cache\\Scanner->scanChildren('', true, 3, Array, true)\n#11 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/files\/utils\/scanner.php(178): OC\\Files\\Cache\\Scanner->scan('', true, 3)\n#12 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/apps\/files\/command\/scan.php(131): OC\\Files\\Utils\\Scanner->scan('\/Lars')\n#13 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/apps\/files\/command\/scan.php(196): OCA\\Files\\Command\\Scan->scanFiles('Lars', '\/Lars', false, Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#14 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/3rdparty\/symfony\/console\/Command\/Command.php(259): OCA\\Files\\Command\\Scan->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#15 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/core\/command\/base.php(158): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#16 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/3rdparty\/symfony\/console\/Application.php(840): OC\\Core\\Command\\Base->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#17 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/3rdparty\/symfony\/console\/Application.php(192): Symfony\\Component\\Console\\Application->doRunCommand(Object(OCA\\Files\\Command\\Scan), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#18 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/3rdparty\/symfony\/console\/Application.php(123): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))\n#19 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/lib\/private\/console\/application.php(145): Symfony\\Component\\Console\\Application->run(NULL, NULL)\n#20 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/console.php(88): OC\\Console\\Application->run()\n#21 \/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/occ(11): require_once('\/var\/www\/vhosts...')\n#22 {main}","File":"\/var\/www\/vhosts\/cloud-surfer.eu\/httpdocs\/nextcloud\/apps\/encryption\/lib\/crypto\/encryption.php","Line":360}

Couldn't re-calculate unencrypted size for files_versions/TimeRecordingPro/backup/timerec.db.gz.v1467660003

this is the Android App: Zeiterfassung Pro
Zeiterfassung Owncloud upload plugin

Did you follow the hint and reshare the file/folder? If you haven’t enabled encryption during installation, the shared encryption-keys have to be issued.

I forgot this step. Thanks.

I have this encryption problem for one file. But its an Temp file. After Upload finished the file doesn´t exists.

Couldn't re-calculate unencrypted size for files_versions/TimeRecordingPro/backup/timerec.db.gz.v1467660003

After upload only /TimeRecordingPro/backup/timerec.db.gz exists…
Any idea?

This is a file from versioning (old version of timerec.db.gz. You can open a new topic for that. If that is perhaps a side effect from starting the encryption, you can just wait to the old version to be removed (will be automatically done after a grace period) and only report it, if this error comes back again.

1 Like