You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed this issue after 26.0.3 -> 27.0.0 upgrade, and it seems unfixed in 27.0.1.
When I try to copy files from my local storage to an external storage, the file is copied and then I get an error notification that says:
Could not move "<filename>"
Inspecting the log file reveals the following error:
rename(//data/saswat/files/<filename>, //external/<filename>): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#378
Since a rename wouldn't work across filesystems, I suspect NC is trying to copy + delete, but then it only copies and fails to delete the source file, and instead raises this error!?
Steps to reproduce
(I have not tested this on a fresh NC27 installation, but only on 26 -> 27 upgrade)
Mount an external storage and allow a user to write files to it
As the user, try to move a local file to the external storage
Notice that NC shows a progress bar and then an error that the file could not be moved
Go to the external storage mount point and notice that a copy of the source file was created
Expected behavior
I expect the file to be moved without any errors -- the source file should be removed and only the destination file should exist.
Installation method
None
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
rename(//data/saswat/files/InstantUpload/Camera/2023/07/PXL_20230713_011111821.TS.mp4,//external/FAMILY/VIDEOS/PXL_20230713_011111821.TS.mp4): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#378
Additional info
Related to #14743, but that issue is only about directories.
In my case, moving files doesn't work either.
The text was updated successfully, but these errors were encountered:
I have the same issue. My setup is Nextcloud in Docker container, main data folder is one mounted volume, external storage is another mounted volume, this one is added as local External Storage into the Nextcloud instance. When I try to move file from the main data folder into the second one I get an error and the file is copied (the original one is not deleted). In the Nextcloud logs I can see only
{"reqId":"ZzPG1JSh9THFsuErJexA","level":3,"time":"2023-08-05T20:51:57+00:00","remoteAddr":"172.21.0.1","user":"user","app":"PHP","method":"MOVE","url":"/remote.php/dav/files/user/logo.png","message":"rename(//var/www/html/data/user/files/logo.png,//mnt/user_nas/Photos/logo.png): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#378","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/116.0","version":"27.0.1.2","data":{"app":"PHP"},"id":"64ceb68bab08b"}
But I found a pull request #38623 which could help in this case. I'll wait for a next Nextcloud release and test this again.
Bug description
I noticed this issue after 26.0.3 -> 27.0.0 upgrade, and it seems unfixed in 27.0.1.
When I try to copy files from my local storage to an external storage, the file is copied and then I get an error notification that says:
Inspecting the log file reveals the following error:
Since a rename wouldn't work across filesystems, I suspect NC is trying to copy + delete, but then it only copies and fails to delete the source file, and instead raises this error!?
Steps to reproduce
(I have not tested this on a fresh NC27 installation, but only on 26 -> 27 upgrade)
Expected behavior
I expect the file to be moved without any errors -- the source file should be removed and only the destination file should exist.
Installation method
None
Nextcloud Server version
27
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Upgraded to a MAJOR version (ex. 22 to 23)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Related to #14743, but that issue is only about directories.
In my case, moving files doesn't work either.
The text was updated successfully, but these errors were encountered: