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

WARNING on Auto Upload Sabre\DAV\Exception\NotFound: could not be located #10663

Closed
4 tasks done
AndyXheli opened this issue Aug 22, 2022 · 20 comments
Closed
4 tasks done

Comments

@AndyXheli
Copy link

AndyXheli commented Aug 22, 2022

⚠️ Before posting ⚠️

  • This is a bug, not a question or an enhancement.
  • I've searched for similar issues and didn't find a duplicate.
  • I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
  • I agree to follow Nextcloud's Code of Conduct.

Steps to reproduce

Take a photo with and Auto uploads starts working. The files get upload but warring on server side. Only happens with Android Client

Expected behaviour

Should not see the warning on server side

Actual behaviour

Take a photo with and Auto uploads starts working. The files get upload but warring on server side. Only happens with Android Client

Android version

12

Device brand and model

SM-G996U1

Stock or custom OS?

Stock

Nextcloud android app version

3.21.0

Nextcloud server version

24.0.4

Using a reverse proxy?

I don't know

Android logs

No response

Server error logs

{"reqId":"1Clkmo325pJDN0B3RjZi","level":2,"time":"2022-08-22T11:23:08-05:00","remoteAddr":"5.6.6.4","user":"admin","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/axheli//InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg","message":"File with name /InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":74,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg could not be located","exception":[],"CustomMessage":"File with name /InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg could not be located"},"id":"6303ad700eacb"}

Additional information

image

@AndyXheli AndyXheli added the bug label Aug 22, 2022
@flan7
Copy link

flan7 commented Aug 22, 2022

I get this error also.

Reverse proxy: nginx

Nextcloud: 24.0.4

Database: mariadb

android device: pixel 5

OS: Calyx OS, Android 12

Nextcloud Android: 3.21.0

nextcloud.log entry:

{"reqId":"lCrbJB6cRQoe2lzjbCoM","level":2,"time":"2022-08-22T18:37:38+00:00","remoteAddr":"192.168.10.102","user":"toqov","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/toqov/Pictures/Screenshots/pixel/Screenshot_20220822-143735.png","message":"File with name /Pictures/Screenshots/pixel/Screenshot_20220822-143735.png could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Pictures/Screenshots/pixel/Screenshot_20220822-143735.png could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":74,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Pictures/Screenshots/pixel/Screenshot_20220822-143735.png could not be located","exception":{},"CustomMessage":"File with name /Pictures/Screenshots/pixel/Screenshot_20220822-143735.png could not be located"}}

@flatterrich
Copy link

flatterrich commented Aug 25, 2022

the same error for me
entry in the log
{"reqId":"YwdHwJ17uNwa5Vg6XS3tvwAAAAk","level":2,"time":"2022-08-25T09:58:24+00:00","remoteAddr":"XX.XX.XX.XX","user":"XXXXXX","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/XXXXXX//SofortUpload/Camera/20220825_115753.jpg","message":"File with name /SofortUpload/Camera/20220825_115753.jpg could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /SofortUpload/Camera/20220825_115753.jpg could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":74,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /SofortUpload/Camera/20220825_115753.jpg could not be located","exception":{},"CustomMessage":"File with name /SofortUpload/Camera/20220825_115753.jpg could not be located"}}

@AndyXheli
Copy link
Author

Just updated to 3.21.1 and same results

@AndyXheli AndyXheli changed the title Auto Upload Sabre\DAV\Exception\NotFound: File with name /InstantUpload/Screenshots/Screenshot_20220809-161543_Chrome.jpg could not be located Auto Upload Sabre\DAV\Exception\NotFound: could not be located Aug 26, 2022
@flan7
Copy link

flan7 commented Aug 26, 2022

After enough time, dav seems to crash on the server.

{"reqId":"gOoNMJmCzozAv1MUAnNg","level":2,"time":"2022-08-26T16:13:47+00:00","remoteAddr":"192.168.10.102","user":"toqov","app":"no app in context","method":"HEAD","url":"/remote.php/dav/files/toqov/Pictures/RedReader/t65x5w9ux7c91DASH_480%20(2).mp4","message":"File with name /Pictures/RedReader/t65x5w9ux7c91DASH_480 (2).mp4 could not be located","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotFound","Message":"File with name /Pictures/RedReader/t65x5w9ux7c91DASH_480 (2).mp4 could not be located","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/DAV/ViewOnlyPlugin.php","line":74,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"checkViewOnly","class":"OCA\\DAV\\DAV\\ViewOnlyPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpHead","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":242,"message":"File with name /Pictures/RedReader/t65x5w9ux7c91DASH_480 (2).mp4 could not be located","exception":{},"CustomMessage":"File with name /Pictures/RedReader/t65x5w9ux7c91DASH_480 (2).mp4 could not be located"}} {"reqId":"Rqcf4bhhKhNIOUhZRUt2","level":3,"time":"2022-08-26T16:13:48+00:00","remoteAddr":"192.168.10.102","user":"toqov","app":"PHP","method":"MOVE","url":"/remote.php/dav/uploads/toqov/81594c7e75bf0877be34d78cedef333c/.file","message":"fopen(/mnt/nextcloud/data/toqov/uploads/81594c7e75bf0877be34d78cedef333c/0000000000000000-0000000002884343): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#377","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Error","Message":"fopen(/mnt/nextcloud/data/toqov/uploads/81594c7e75bf0877be34d78cedef333c/0000000000000000-0000000002884343): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#377","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":377,"function":"fopen"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":301,"function":"fopen","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php","line":236,"function":"fopen","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1175,"function":"fopen","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/View.php","line":1010,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":491,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":294,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":144,"function":"getStream","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"function":"stream_read","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->"},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":296,"function":"file_put_contents"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":587,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":647,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php","line":320,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":248,"function":"writeStream","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":164,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/Log/ErrorHandler.php","Line":92,"CustomMessage":"--"}} {"reqId":"Rqcf4bhhKhNIOUhZRUt2","level":3,"time":"2022-08-26T16:13:48+00:00","remoteAddr":"192.168.10.102","user":"toqov","app":"no app in context","method":"MOVE","url":"/remote.php/dav/uploads/toqov/81594c7e75bf0877be34d78cedef333c/.file","message":"Could not open file","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":294,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":144,"function":"getStream","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"function":"stream_read","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->"},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":296,"function":"file_put_contents"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":587,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":647,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php","line":320,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":248,"function":"writeStream","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":164,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":496,"CustomMessage":"--"}} {"reqId":"Rqcf4bhhKhNIOUhZRUt2","level":4,"time":"2022-08-26T16:13:48+00:00","remoteAddr":"192.168.10.102","user":"toqov","app":"webdav","method":"MOVE","url":"/remote.php/dav/uploads/toqov/81594c7e75bf0877be34d78cedef333c/.file","message":"Could not open file","userAgent":"Mozilla/5.0 (Android) Nextcloud-android/3.21.0","version":"24.0.4.1","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Could not open file","Code":0,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":294,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/AssemblyStream.php","line":144,"function":"getStream","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"function":"stream_read","class":"OCA\\DAV\\Upload\\AssemblyStream","type":"->"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php","line":55,"function":"fread"},{"file":"/var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/CallbackWrapper.php","line":96,"function":"stream_read","class":"Icewind\\Streams\\Wrapper","type":"->"},{"function":"stream_read","class":"Icewind\\Streams\\CallbackWrapper","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":296,"function":"file_put_contents"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Local.php","line":587,"function":"file_put_contents","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":647,"function":"writeStream","class":"OC\\Files\\Storage\\Local","type":"->"},{"file":"/var/www/nextcloud/apps/files_accesscontrol/lib/StorageWrapper.php","line":320,"function":"writeStream","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":248,"function":"writeStream","class":"OCA\\FilesAccessControl\\StorageWrapper","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":164,"function":"put","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":307,"function":"createFile","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":133,"function":"copyNode","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":163,"function":"copy","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":94,"function":"move","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Upload/ChunkingPlugin.php","line":76,"function":"performMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMove","class":"OCA\\DAV\\Upload\\ChunkingPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":603,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpMove","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":358,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":166,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":496,"CustomMessage":"--"}}

@AndyXheli AndyXheli changed the title Auto Upload Sabre\DAV\Exception\NotFound: could not be located WARNING on Auto Upload Sabre\DAV\Exception\NotFound: could not be located Aug 26, 2022
@xundeenergie
Copy link

I have the same error!

{
  "reqId": "JAuas3o6AL6IeRXbDK40",
  "level": 3,
  "time": "2022-08-30T22:10:48+02:00",
  "remoteAddr": "194.24.158.177",
  "user": "user.name",
  "app": "PHP",
  "method": "MOVE",
  "url": "/remote.php/dav/uploads/user.name/c8df78609905064feb449abb71cc6cf5/.file",
  "message": "rmdir(/mnt/cloud/nextcloud_data/user.name/uploads/c8df78609905064feb449abb71cc6cf5): Directory not empty at /var/www/nextcloud.meine.domain/lib/private/Files/Storage/Local.php#136",
  "userAgent": "Mozilla/5.0 (Android) Nextcloud-android/20220820",
  "version": "24.0.4.1",
  "exception": {
    "Exception": "Error",
    "Message": "rmdir(/mnt/cloud/nextcloud_data/user.name/uploads/c8df78609905064feb449abb71cc6cf5): Directory not empty at /var/www/nextcloud.meine.domain/lib/private/Files/Storage/Local.php#136",
    "Code": 0,
    "Trace": [
      {
        "function": "onError",
        "class": "OC\\Log\\ErrorHandler",
        "type": "::"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/lib/private/Files/Storage/Local.php",
        "line": 136,
        "function": "rmdir"
      },
      {
        "function": "rmdir",
        "class": "OC\\Files\\Storage\\Local",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/files_trashbin/lib/Storage.php",
        "line": 193,
        "function": "call_user_func"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/files_trashbin/lib/Storage.php",
        "line": 125,
        "function": "doDelete",
        "class": "OCA\\Files_Trashbin\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/lib/private/Files/View.php",
        "line": 1177,
        "function": "rmdir",
        "class": "OCA\\Files_Trashbin\\Storage",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/lib/private/Files/View.php",
        "line": 355,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/lib/Connector/Sabre/Directory.php",
        "line": 318,
        "function": "rmdir",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/lib/Upload/FutureFile.php",
        "line": 100,
        "function": "delete",
        "class": "OCA\\DAV\\Connector\\Sabre\\Directory",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/3rdparty/sabre/dav/lib/DAV/Tree.php",
        "line": 164,
        "function": "delete",
        "class": "OCA\\DAV\\Upload\\FutureFile",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/lib/Upload/ChunkingPlugin.php",
        "line": 94,
        "function": "move",
        "class": "Sabre\\DAV\\Tree",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/lib/Upload/ChunkingPlugin.php",
        "line": 76,
        "function": "performMove",
        "class": "OCA\\DAV\\Upload\\ChunkingPlugin",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "beforeMove",
        "class": "OCA\\DAV\\Upload\\ChunkingPlugin",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 603,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/lib/Server.php",
        "line": 358,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/nextcloud.meine.domain/remote.php",
        "line": 166,
        "args": [
          "/var/www/nextcloud.meine.domain/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/nextcloud.meine.domain/lib/private/Log/ErrorHandler.php",
    "Line": 92,
    "CustomMessage": "--"
  }
}

@notarobot63
Copy link

Hi,

Same here with Nextcloud 24.0.4 with Docker and Nginx reverse proxy
Mobile Client is 3.21.1 on Android 11
It happens for all users.

@xundeenergie
Copy link

I think, it is a problem of Nextcloud 24.0.4, because i rolled back the android-app to 3.20.3 and the error persists...

@AndyXheli

This comment was marked as off-topic.

@jefflavallee
Copy link

I have the same issue. Nextcloud 24.0.4 in a docker container behind nginx, with Android app 3.20.1. From what I gathered the issue seems specific to Android so I would suspect the fix would be isolated to the Android app rather than the server.

@flatterrich
Copy link

android-app to 3.21.2 error still persists

@flan7
Copy link

flan7 commented Sep 4, 2022

Its great to be expected to help report regression issues while also being blatantly ignored. Between this and the android 12/13 media sync issues, this is approaching months of time spent solving nextcloud issues that end up being the Devs fault from not testing updates that are mindlessly pushed. 12 response here, 2 messages hidden by staff, and no update. Nextcloud for android is not production software and you shouldn't pretend it is.

Staff is justified to work on a twitter clone, yet Alvaro Brey seems to be stuck here by himself putting out dumpster fires with no help on a product people actually use.

@danielb42
Copy link

danielb42 commented Sep 4, 2022

What's really ironic is that this ignored issue, in combination with this ignored regression renders the internal Logviewer completely useless. I sadly agree that Nextcloud/Android is no longer usable for anyone who isn't willing to hack and tweak their setup constantly and maintain, say FolderSync workarounds on Android devices, as usability of the native app is entirely broken by now.

@AlvaroBrey
Copy link
Member

This looks like a server-side change in 24.0.4. Filed nextcloud/server#33896

@AndyXheli
Copy link
Author

@AlvaroBrey thank you for your feedback it much appreciated!

@xundeenergie
Copy link

This morning came an update via f-droid from the android app.

The upload seems working again.

Thank you for the fix.

@jefflavallee
Copy link

I still see warnings after the update

@AlvaroBrey
Copy link
Member

This issue has nothing to do with uploads failing, it's just about a warning on the server logs. Android app updates have nothing do do with this issue.
I've already reported it to the server repo, so please stop commenting on this issue unless there's something of value to add.

@haiopaii

This comment was marked as off-topic.

@AndyXheli
Copy link
Author

All This should be the fix. Once available update your server and test or apply the fix manually "At your own risk"

nextcloud/server#34035

@AlvaroBrey
Copy link
Member

Server issue has been closed so I'm closing this too. As @AndyXheli said, apply the patch at your own risk or wait for server release. Cheers!

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

9 participants