Repository navigation
Description
Hello,
This may be related to issues:
#1104 [this seems rather old to have any direct relevance, however the comment from "PreacherAT commented on Jun 3, 2013" exactly describes my issue]
and
#10746
Reading through issue 10746, it is my understanding this was resolved in 7.0.3. So it may also be unrelated.
Steps to reproduce
- Configure OmniFocus to sync using WebDAV
- Using the webdav link: https://mydomain.com/ocloud/remote.php/webdav/omnisync/
- Try to initiate sync
- Error occurs
Expected behaviour
It should ultimately result in a folder called:
`OmniFocus.ofocus
Which will contain OmniFocus sync data files.
Actual behaviour
Following error is reported:
Unable to synchronize database with server.
Unable to read document.
No document exists at “https://mydomain.com/ocloud/remote.php/webdav/omnisync/OmniFocus.ofocus/”.
A folder named along the lines of this is created:
`OmniFocus.ofocus-copy-in-progress-lMjh1oxaW9C
There is nothing in the folder.
Server configuration
Operating system:
Apache 2.2.26
Web server:
x86_64
Database:
mySQL 5.5.40-36.1
PHP version:
5.4.35
ownCloud version: (see ownCloud admin page)
7.0.4
Updated from an older ownCloud or fresh install:
Fresh
List of activated apps:
Activity
Cal
Con
Delete files
Docs
Encryption
External storage
First run
Full text search
Mail template
PDF viewer
Pictures
Share files
Text editor
Updater
Versions
The content of config/config.php:
<?php
$CONFIG = array (
'instanceid' => 'oc2c32b5b288',
'passwordsalt' ⇒ 'REMOVED',
'secret' ⇒ 'REMOVED',
'trusted_domains' =>
array (
0 ⇒ 'MYDOMAIN.COM',
),
'datadirectory' => '/home/inspired/oclouddata',
'overwrite.cli.url' => 'http://MYDOMAIN.com/ocloud',
'dbtype' => 'mysql',
'version' => '7.0.4.2',
'dbname' => 'inspired_ocloud1',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'inspired_ocloudu',
'dbpassword' ⇒ 'REMOVED',
'installed' => true,
'forcessl' => true,
);
Are you using external storage, if yes which one: local/smb/sftp/...
NO
Are you using encryption: yes/no
YES
Client configuration
Issue is not browser dependant.
Logs
Web server error log
Insert your webserver log here
ownCloud log (data/owncloud.log)
{"app":"Encryption library","message":"No share key found for user \"jonathan\" for file \"OmniFocus.ofocus-copy-in-progress-kdavwbdq4Ju\"","level":2,"time":"2015-01-09T22:53:49+00:00"}
{"app":"Encryption library","message":"No share key found for user \"jonathan\" for file \"OmniFocus.ofocus\"","level":2,"time":"2015-01-09T22:54:47+00:00"}
{"app":"PHP","message":"Array to string conversion at \/home\/inspired\/public_html\/ocloud\/lib\/private\/l10n\/string.php#57","level":3,"time":"2015-01-09T23:56:39+00:00"}
{"app":"Encryption library","message":"No share key found for user \"jonathan\" for file \"OmniFocus.ofocus-copy-in-progress-crfbg7gpmy_\"","level":2,"time":"2015-01-10T00:12:11+00:00"}
{"app":"Encryption library","message":"No share key found for user \"jonathan\" for file \"OmniFocus.ofocus-copy-in-progress-lMjh1oxaW9C\"","level":2,"time":"2015-01-10T00:12:11+00:00"}
{"app":"core","message":"App does not provide an info.xml file","level":3,"time":"2015-01-10T00:20:49+00:00"}
Activity
inspiredearth commentedon Jan 10, 2015
I have disabled Encryption, and the issue persists. So it does not appear to be an encryption related problem.
PVince81 commentedon Jan 12, 2015
Can you post the access log so we can see what omnifocus is trying to do over WebDAV ?
inspiredearth commentedon Jan 15, 2015
I am not sure where to retrieve an "access log" from. Please advise.
Here's data from the log found in the Admin section of OC.
PVince81 commentedon Jan 15, 2015
You might find the access log in
/var/log/apache2/access_log. It might also be calledaccess.log.Once you find it, please re-run the sync scenario to make it produce results, then post it here 😄
inspiredearth commentedon Jan 16, 2015
This is on a shared server environment, so as far as I know I have no access to /var
There’s a LOT of data being generated in the owncloud.log file which I suspect related to the debug data I posted previously. In the log file omnifocus issues look like this:
{"reqId":"54b842e6e1b98","app":"webdav","message":"Sabre\DAV\Exception\NotFound: File with name OmniFocus.ofocus could not be located","level":0,"time":"2015-01-15T22:44:54+00:00","method":"PROPFIND","url":"/ocloud/remote.php/webdav/OmniFocus.ofocus/"}
But most a repeat of the previous data, and a great deal more along the lines of:
{"reqId":"54b3049e9521e","app":"carddav","message":"Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2015-01-11T23:17:50+00:00","method":"PROPFIND","url":"/ocloud/remote.php/carddav/addressbooks/jonathan/"}
and
{"reqId":"54b859e216721","app":"carddav","message":"Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2015-01-16T00:22:58+00:00","method":"OPTIONS","url":"/ocloud/remote.php/carddav/principals/jonathan/"}
But I gather these are unrelated, as they look like Carddav issues.
On 15/01/2015, at 10:47 pm, Vincent Petry [email protected] wrote:
PVince81 commentedon Aug 3, 2015
Is this still happening with 7.0.7 or 8.0.5 ?
PVince81 commentedon Aug 10, 2015
The access log could help a lot to find out what exactly Omnifocus is trying to do with Webdav that causes issues.
Zettt commentedon Aug 10, 2015
Hello @PVince81,
I'm using 8.1.0 (stable). For the moment encryption is off, and we're not using external storage apps. The files are hosted on Uberspace.
Just files.
Yes, this is OmniPresence:
tail owncloud.log:PVince81 commentedon Aug 10, 2015
Hmmm that could be the reason:
MOVE /remote.php/webdav/OmniDAV-Conformance-Tests-ahHK6PhYMBy/fortestReplacedCollectionUpdatesModificationDate: /parent/tmp/docIf I understand well it's trying to move a folder into
/parent/tmp/docinstead of/remote.php/webdav/parent/tmp/doc.Could there be a problem with root folder handling ?
@Zettt was "/parent/tmp/doc" a folder that you explicitly created ? Did you ask Omnifocus to move stuff there ?
Or does Omnifocus expect to have access to something in the root of the URL ? But this would mean that Omnifocus would be unable to work with any DAV server (not only ownCloud) running under a subpath like "http://example.com/davserverroothere/"
Zettt commentedon Aug 10, 2015
As mentioned the Omni app in question here is [OmniPresence](https://www.omnigroup.com/omnipresence. OmniFocus probably uses the same implementation and has the same issues though, since it would make most sense to me that Omni makes one WebDAV framework that it ships with all their apps. OmniPresence is testing the server and in doing so is testing the
MOVEcommand. Is that helpful?PVince81 commentedon Aug 10, 2015
It would be good if I could get more details about the MOVE command, especially what "Destination" header it is sending. There is a newew Webdav standard that allow the "Destination" header to be a relative path instead of absolute path (absolute as in "pass the full URL"). I'm not sure whether SabreDAV supports relative URLs. I can test that with curl commands.
PVince81 commentedon Aug 10, 2015
These work:
curl -X MOVE -u root:admin "http://localhost/owncloud/remote.php/webdav/test.txt" -H 'Destination: http://localhost/owncloud/remote.php/webdav/test-absolute.txt'curl -X MOVE -u root:admin "http://localhost/owncloud/remote.php/webdav/test.txt" -H 'Destination: /owncloud/remote.php/webdav/test-relative.txt'This doesn't:
But here I see that the exception is 403 forbidden.
The exception above was actually 409 Conflict.
This can be reproduced by trying to move to a non-existing folder:
So this means that Omni* is indeed trying to move into a non-existing folder and not outside the root as I originally suspected.
Can you check whether the folder "http://example.com/owncloudpath/remote.php/webdav/parent/tmp/doc" actually exists ? Is Omni* trying to do several things in parallel and creates the folder without waiting for it to exist ?
PVince81 commentedon Aug 10, 2015
(this is all guesswork, I don't have access to any Omni* instance to test this myself)
mvrueden commentedon Aug 21, 2015
I had the same issue and was not able to get
OmniFocusto sync with my owncloud instance.I then saw, that the URL I set was something like
https://example.com/owncloud/remote.php/webdav/(see the/at the end).This somehow looked wrong to me. After i removed the trailing
/everything works fine (https://example.com/owncloud/remote.php/webdav), though I am not completely sure if it is related in any way.brevilo commentedon Dec 31, 2015
Unfortunately this workaround doesn't apply to OmniPresence 1.4.1 as it always appends a trailing slash to the server URL such that the error described in #13228 (comment) still persists (OC 8.2.1).
PVince81 commentedon Mar 7, 2016
Can someone capture the Webdav request, including headers ?
Would be good to have an equivalent
curlcommand to be able to reproduce locally.LukasReschke commentedon Mar 7, 2016
I'm pretty confident that this is a duplicate of #8033
PVince81 commentedon Jun 17, 2016
Okay, closing in favor of #8033 (comment)
See there is more information, something about etags and "If" headers.
lock commentedon Aug 4, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.