nextcloud / documentation

📘 Nextcloud documentation
https://docs.nextcloud.com
Other
490 stars 1.71k forks source link

Error when copying files from one location to another: OC\ServerNotAvailableException: Legacy cipher is no longer supported! #11078

Open MRFU510N88 opened 2 years ago

MRFU510N88 commented 2 years ago

⚠️ This issue respects the following points: ⚠️

Bug description

Error when copying files from one location to another: OC\ServerNotAvailableException: Legacy cipher is no longer supported!

Steps to reproduce

copy any file from one location/folder to another.

Expected behavior

previous to updating from NC 23.0.3 to 23.0.4 there would be a resemblance of the file but it wouldn't open, and when downloaded also wouldn't open. In NC 23.0.4 I just get an error and nothing happens. logs pasted below.

Installation method

No response

Operating system

No response

PHP engine version

7.4.3

Web server

No response

Database engine version

8.0.28

Is this bug present after an update or on a fresh install?

No response

Are you using the Nextcloud Server Encryption module?

Encryption is Enabled

What user-backends are you using?

Configuration report

No response

List of activated Apps

Enabled:
  - accessibility: 1.9.0
  - activity: 2.15.0
  - admin_audit: 1.13.0
  - announcementcenter: 6.1.1
  - apporder: 0.15.0
  - breezedark: 23.2.1
  - bruteforcesettings: 2.4.0
  - calendar: 3.2.2
  - circles: 23.1.1
  - cloud_federation_api: 1.6.0
  - comments: 1.13.0
  - contacts: 4.1.0
  - contactsinteraction: 1.4.0
  - dashboard: 7.3.0
  - dav: 1.21.0
  - deck: 1.6.1
  - drawio: 1.0.2
  - encryption: 2.11.0
  - external: 3.10.2
  - extract: 1.3.3
  - federatedfilesharing: 1.13.0
  - federation: 1.13.0
  - files: 1.18.0
  - files_accesscontrol: 1.13.0
  - files_downloadactivity: 1.13.0
  - files_external: 1.15.0
  - files_pdfviewer: 2.4.0
  - files_rightclick: 1.2.0
  - files_sharing: 1.15.0
  - files_trackdownloads: 1.11.0
  - files_trashbin: 1.13.0
  - files_versions: 1.16.0
  - files_videoplayer: 1.12.0
  - firstrunwizard: 2.12.0
  - groupfolders: 11.1.2
  - impersonate: 1.10.0
  - integration_github: 1.0.2
  - logreader: 2.8.0
  - lookup_server_connector: 1.11.0
  - mail: 1.11.7
  - maps: 0.1.10
  - nextcloud_announcements: 1.12.0
  - notes: 4.3.1
  - notifications: 2.11.1
  - oauth2: 1.11.0
  - password_policy: 1.13.0
  - photos: 1.5.0
  - privacy: 1.7.0
  - provisioning_api: 1.13.0
  - quota_warning: 1.14.0
  - recommendations: 1.2.0
  - registration: 1.4.0
  - richdocuments: 5.0.3
  - richdocumentscode: 21.11.306
  - serverinfo: 1.13.0
  - settings: 1.5.0
  - sharebymail: 1.13.0
  - side_menu: 2.3.5
  - spreed: 13.0.5
  - support: 1.6.0
  - survey_client: 1.11.0
  - suspicious_login: 4.1.0
  - systemtags: 1.13.0
  - talk_matterbridge: 1.23.2
  - tasks: 0.14.4
  - terms_of_service: 1.9.3
  - text: 3.4.1
  - theming: 1.14.0
  - twofactor_backupcodes: 1.12.0
  - unsplash: 1.2.4
  - updatenotification: 1.13.0
  - user_status: 1.3.1
  - video_converter: 1.0.4
  - viewer: 1.7.0
  - weather_status: 1.3.0
  - welcome: 1.0.1
  - workflowengine: 2.5.0
Disabled:
  - analytics: 4.2.1
  - audioplayer: 3.3.0
  - carnet: 0.24.4
  - electronicsignatures: 1.10.1
  - end_to_end_encryption: 1.9.1
  - files_antivirus: 3.2.2
  - flow_notifications: 1.2.0
  - forms: 2.5.0
  - health: 1.5.0
  - integration_google: 1.0.6
  - integration_whiteboard: 0.0.14
  - phonetrack: 0.7.0
  - quicknotes: 0.7.3
  - radio: 1.0.3
  - socialsharing_email: 2.5.0
  - user_ldap

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

Fatal   webdav  

OC\ServerNotAvailableException: Legacy cipher is no longer supported!

/var/www/html/nextcloud/apps/encryption/lib/Crypto/Encryption.php - line 237:

OCA\Encryption\Crypto\Crypt->getLegacyCipher()

/var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php - line 286:

OCA\Encryption\Crypto\Encryption->begin()

<<closure>>

OC\Files\Stream\Encryption->stream_open()

/var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php - line 213:

fopen()

/var/www/html/nextcloud/lib/private/Files/Stream/Encryption.php - line 188:

OC\Files\Stream\Encryption::wrapSource()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 471:

OC\Files\Stream\Encryption::wrap()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 794:

OC\Files\Storage\Wrapper\Encryption->fopen()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 679:

OC\Files\Storage\Wrapper\Encryption->copyBetweenStorage()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 361:

OC\Files\Storage\Wrapper\Encryption->copyFromStorage()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 290:

OC\Files\Storage\Wrapper\Encryption->copy()

/var/www/html/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php - line 223:

OC\Files\Storage\Wrapper\Wrapper->copy()

/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 290:

OCA\FilesAccessControl\StorageWrapper->copy()

/var/www/html/nextcloud/lib/private/Files/View.php - line 935:

OC\Files\Storage\Wrapper\Wrapper->copy()

/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 472:

OC\Files\View->copy()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 132:

OCA\DAV\Connector\Sabre\Directory->copyInto()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 655:

Sabre\DAV\Tree->copy()

/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89:

Sabre\DAV\CorePlugin->httpCopy()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 472:

Sabre\DAV\Server->emit()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 253:

Sabre\DAV\Server->invokeMethod()

/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 321:

Sabre\DAV\Server->start()

/var/www/html/nextcloud/apps/dav/lib/Server.php - line 339:

Sabre\DAV\Server->exec()

/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php - line 35:

OCA\DAV\Server->exec()

/var/www/html/nextcloud/remote.php - line 166:

require_once("/var/www/ht ... p")

Additional info

No response

solracsf commented 2 years ago

Did you read https://docs.nextcloud.com/server/23/admin_manual/configuration_files/encryption_migration.html ?

szaimen commented 1 year ago

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

smolinde commented 1 year ago

Hi, please update to 24.0.8 or better 25.0.2 and report back if it fixes the issue. Thank you!

I have this error too appearing im my NC logs. Nextcloud 25.0.2.3 PHP 8.0.27 MariaDB 10.6.11

joshtrichards commented 1 year ago

Please run:

occ encryption:scan:legacy-format

If you have some entries, you may need to add the following to your configuration for the time being:

'encryption.legacy_format_support' => true

IMO this is mostly a documentation matter (i.e. see nextcloud/server#22478) following nextcloud/server#22218 (also relevant: nextcloud/server#27501). It's mostly in the docs, but could probably use some clarity.

asheroto commented 9 months ago

Getting this on a brand new server with encryption disabled but using SSE-C.