Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
4 of 8 tasks
MRFU510N88 opened this issue Apr 23, 2022 · 5 comments

Comments

@MRFU510N88
Copy link

MRFU510N88 commented Apr 23, 2022

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

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?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

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
Copy link
Member

@szaimen
Copy link
Contributor

szaimen commented Jan 9, 2023

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

@smolinde
Copy link

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
Copy link
Member

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.

@joshtrichards joshtrichards changed the title [Bug]: Error when copying files from one location to another: OC\ServerNotAvailableException: Legacy cipher is no longer supported! Error when copying files from one location to another: OC\ServerNotAvailableException: Legacy cipher is no longer supported! Aug 28, 2023
@joshtrichards joshtrichards transferred this issue from nextcloud/server Aug 28, 2023
@asheroto
Copy link

asheroto commented Dec 5, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants