A
A
AndreyTT2017-10-31 16:50:37
Android
AndreyTT, 2017-10-31 16:50:37

Why is the file downloaded but not uploaded to nextcloud via WebDav?

Installed nextcloud server on ubuntu 16.04 Apache2 .
Webdav access works fine. The phone has Android 6.0.2 and the program FolderSync , which automatically synchronizes the folder on the phone and nextcloud via webdav.
When synchronizing, files are downloaded from the server - everything is ok. But, if there is an attempt to upload a file from the phone to the server, the following error comes from the server:

Debug webdav Saber\DAV\Exception\NotFound: File with name /test/Kn7IrxJgukU.jpg could not be located
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php - line 76: OCA\DAV \Connector\Sabre\Directory->getChild('Kn7IrxJgukU.jpg')
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 967: Sabre\DAV\Tree->getNodeForPath(' files/***/tes...')
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 1666: Saber\DAV\Server->getPropertiesIteratorForPath('files/** */tes...', Array, 0)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php - line 355: Saber\DAV\Server->generateMultiStatus(Object(Generator), false)
[internal function] Saber\DAV\CorePlugin->httpPropFind(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 479: Saber\Event\EventEmitter->emit('method PROPFIND', Array)
/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Saber\DAV\Server->invokeMethod (Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/nextcloud/apps/dav/lib/Server.php - line 258: Saber\DAV\Server->exec()
/ var/www/nextcloud/apps/dav/appinfo/v2/remote.php - line 33: OCA\DAV\Server->exec()
/var/www/nextcloud/remote.php - line 162: require_once('/var /www/nextcl...')
{main}

I suspect it's a permissions issue. Can someone decipher the log?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
AndreyTT, 2017-11-01
@AndreyTT

I asked the question myself - I answer it myself:
Initially, NC itself gives a link like this for WebDav:
https://DOMEN/remote.php/webdav/ - it is not correct., Synchronization will be in one direction with it.
Here is the correct link:
https://DOMEN:443/remote.php/dav/files/USER/
Everything is synchronized and installed with it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question