-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Encryption Error while deleting folder Error: fread(): Read of 8192 bytes failed with errno=21 Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php#860 #21578
Comments
Looks like it may have something to do with PHP 7.4.7 I went back to PHP 7.3.19 and did not get that error. |
I can confirm this bug. I have the same error using the docker image with PHP 7.4.7. |
Hello any updates on this. Still have this issue
|
Still having this issue on Nextcloud 19.0.1 PHP: Version: 7.4.8 |
@MorrisJobke Is this something thats being worked on? fread(): read of 8192 bytes failed with errno=21 Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php#862 |
@MorrisJobke any updates on this issue? |
Not really. I linked just the wrong ticket 🙈 |
@MorrisJobke Okay thank you for the update. Anyway we can have someone look into this please! |
Same issue on NC 19.0.3 |
Have exactly the same problem after updating to 19.0.3. All previous versions worked just fine. |
Please fix asap. Also having this issue on NC 19.0.4 Operating system: Ubuntu server 18.0.4 |
Getting dozens of those: `Error: fread(): read of 8192 bytes failed with errno=21 Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php#862 OC\Log\ErrorHandler::onError() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 862: fread() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 930: OC\Files\Storage\Wrapper\Encryption->readFirstBlock() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 961: OC\Files\Storage\Wrapper\Encryption->getHeader() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Encryption.php - line 294: OC\Files\Storage\Wrapper\Encryption->getEncryptionModule() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 278: OC\Files\Storage\Wrapper\Encryption->rename() /var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php - line 572: OC\Files\Storage\Wrapper\Wrapper->rename() /var/www/nextcloud/apps/files_trashbin/lib/Trashbin.php - line 294: OC\Files\Storage\Wrapper\Wrapper->moveFromStorage() /var/www/nextcloud/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php - line 108: OCA\Files_Trashbin\Trashbin::move2trash() /var/www/nextcloud/apps/files_trashbin/lib/Trash/TrashManager.php - line 103: OCA\Files_Trashbin\Trash\LegacyTrashBackend->moveToTrash() /var/www/nextcloud/apps/files_trashbin/lib/Storage.php - line 192: OCA\Files_Trashbin\Trash\TrashManager->moveToTrash() /var/www/nextcloud/apps/files_trashbin/lib/Storage.php - line 118: OCA\Files_Trashbin\Storage->doDelete() /var/www/nextcloud/lib/private/Files/View.php - line 1161: OCA\Files_Trashbin\Storage->rmdir() /var/www/nextcloud/lib/private/Files/View.php - line 350: OC\Files\View->basicOperation() /var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php - line 308: OC\Files\View->rmdir() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 183: OCA\DAV\Connector\Sabre\Directory->delete() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 295: Sabre\DAV\Tree->delete() /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php - line 89: Sabre\DAV\CorePlugin->httpDelete() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 474: Sabre\DAV\Server->emit() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 251: Sabre\DAV\Server->invokeMethod() /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 319: Sabre\DAV\Server->start() /var/www/nextcloud/apps/dav/lib/Server.php - line 320: Sabre\DAV\Server->exec() /var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 35: OCA\DAV\Server->exec() /var/www/nextcloud/remote.php - line 167: require_once("/var/www/ne ... p")` |
Based on what i can see its happening on PHP 7.4 if you downgrade to 7.3 i dont see this error, but that's not a solutions. There should be a fix of this. |
Hopefully for NC 19.0.6 and 20.0.3. This error is crowding my logfiles for weeks already. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
The fix is now merged and I guess it will be included in the next point release of NC 21. |
Thank you everyone wohoooo!! 🎉🎉
…Sent from my iPhone
On Apr 6, 2021, at 6:49 AM, Jasper Knockaert ***@***.***> wrote:
The fix is now merged and I guess it will be included in the next point release of NC 21.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
#24966 should be fixed in the next 21 release |
Fixed in #24966 |
@jknockaert sorry must of opened it on accident |
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
@jknockaert This is still an issue on 21.0.3 looks like the #24966 fix has not been added can you please add this? |
@AndyXheli I am no longer using the encryption app (I disabled it) and I do no longer support any code I wrote including #24966. Maybe someone else can help you. |
@jknockaert Thank you for your effort. Since this is not fixed can you please reopen this ticket ? |
@AndyXheli You can reopen it or create a new one. For me the issue is gone. |
@jknockaert Thank you very much. |
I have just updated to 21.0.3 |
@RedKage I did apply the fix and it still dose work. Someone just need to backport it |
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Reworking the logic in order to first check the filecache and only then reading the fileheader. This in order to solve #21578.
Seems like this patch is live on version 21.0.5 |
I have similar issue, not sure what cause the error in the logfile.
|
LOL Issue is still present in 27.1.3 |
27.1.4 has this issue too |
Hello, this is v28.0.4 and the error is still there [PHP] 错误: file_get_contents(): Read of 8192 bytes failed with errno=21 Is a directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#331 |
How to use GitHub
Steps to reproduce
Expected behaviour
Tell us what should happen
Actual behaviour
Tell us what happens instead
Server configuration
Operating system:
Ubunti 18.0.4
Web server:
Apache2
Database:
MySQL
PHP version:
7.4.7
Nextcloud version: (see Nextcloud admin page)
19.0
Updated from an older Nextcloud/ownCloud or fresh install:
Where did you install Nextcloud from:
Signing status:
Signing status
List of activated apps:
App list
Enabled: - accessibility: 1.5.0 - activity: 2.12.0 - admin_audit: 1.9.0 - bruteforcesettings: 1.6.0 - cloud_federation_api: 1.2.0 - comments: 1.9.0 - contactsinteraction: 1.0.0 - dav: 1.15.0 - encryption: 2.7.0 - federatedfilesharing: 1.9.0 - federation: 1.9.0 - files: 1.14.0 - files_external: 1.10.0 - files_pdfviewer: 1.8.0 - files_rightclick: 0.16.0 - files_sharing: 1.11.0 - files_trashbin: 1.9.0 - files_versions: 1.12.0 - files_videoplayer: 1.8.0 - firstrunwizard: 2.8.0 - logreader: 2.4.0 - lookup_server_connector: 1.7.0 - nextcloud_announcements: 1.8.0 - notifications: 2.7.0 - oauth2: 1.7.0 - password_policy: 1.9.1 - photos: 1.1.0 - privacy: 1.3.0 - provisioning_api: 1.9.0 - recommendations: 0.7.0 - richdocuments: 3.7.2 - serverinfo: 1.9.0 - settings: 1.1.0 - sharebymail: 1.9.0 - socialsharing_email: 2.0.0 - support: 1.2.1 - survey_client: 1.7.0 - systemtags: 1.9.0 - text: 3.0.1 - theming: 1.10.0 - twofactor_backupcodes: 1.8.0 - updatenotification: 1.9.0 - viewer: 1.3.0 - workflowengine: 2.1.0Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
Operating system:
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
The text was updated successfully, but these errors were encountered: