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

When I try to extract the file in the external storage there is an Error: rename #84

Open
xuancaowu opened this issue Mar 28, 2022 · 2 comments

Comments

@xuancaowu
Copy link

When I decompress a file in the local external storage, the decompressed file goes to Deleted files.
捕获

{"reqId":"QJpvtFBWDPk6NyKDBSv2","level":3,"time":"2022-03-28T11:38:06+00:00","remoteAddr":"192.168.0.5","user":"admin","app":"PHP","method":"POST","url":"/index.php/apps/extract/ajax/extract.php","message":"rename(//data/admin/files/extract_tmp/test,//downloads/test): Cross-device link at /config/www/nextcloud/lib/private/Files/Storage/Local.php#347","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36","version":"23.0.3.2","exception":{"Exception":"Error","Message":"rename(//data/admin/files/extract_tmp/test,//downloads/test): Cross-device link at /config/www/nextcloud/lib/private/Files/Storage/Local.php#347","Code":0,"Trace":[{"function":"onError","class":"OC\Log\ErrorHandler","type":"::"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Local.php","line":347,"function":"rename"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Local.php","line":566,"function":"rename","class":"OC\Files\Storage\Local","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":595,"function":"moveFromStorage","class":"OC\Files\Storage\Local","type":"->"},{"file":"/config/www/nextcloud/apps/files_trashbin/lib/Storage.php","line":239,"function":"moveFromStorage","class":"OC\Files\Storage\Wrapper\Wrapper","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":832,"function":"moveFromStorage","class":"OCA\Files_Trashbin\Storage","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Filesystem.php","line":700,"function":"rename","class":"OC\Files\View","type":"->"},{"file":"/config/www/nextcloud/apps/extract/lib/Controller/ExtractionController.php","line":169,"function":"rename","class":"OC\Files\Filesystem","type":"::"},{"file":"/config/www/nextcloud/apps/extract/lib/Controller/ExtractionController.php","line":104,"function":"postExtract","class":"OCA\Extract\Controller\ExtractionController","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":217,"function":"extract","class":"OCA\Extract\Controller\ExtractionController","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php","line":126,"function":"executeController","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/AppFramework/App.php","line":157,"function":"dispatch","class":"OC\AppFramework\Http\Dispatcher","type":"->"},{"file":"/config/www/nextcloud/lib/private/Route/Router.php","line":302,"function":"main","class":"OC\AppFramework\App","type":"::"},{"file":"/config/www/nextcloud/lib/base.php","line":1006,"function":"match","class":"OC\Route\Router","type":"->"},{"file":"/config/www/nextcloud/index.php","line":36,"function":"handleRequest","class":"OC","type":"::"}],"File":"/config/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"},"id":"6241a723a3cc6"}

@xuancaowu
Copy link
Author

Because Nextcloud is installed by Docker, the folder is mapped through Container, so unpacking in that folder will cause the above problem, while setting the folder under the Nextcloud absolute path "/data" as Nextcloud's external storage will not cause the above problem.

@xuancaowu
Copy link
Author

while setting the folder under the Nextcloud absolute path "Nextcloud/" as Nextcloud's external storage will not cause the above problem.

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

No branches or pull requests

1 participant