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
{{ message }}
Repository navigation
Cannot sync with Jolla after update to 7.0.0 No basic authentication headers were found #9880
I am running OC on my own server (ubuntu) and just updated from 6.0.1 to 7.0.0. First of all the update wiped my calendar and address book. Good that I had a second copy but I did not expect that to happen.
However, since the update I am not able to sync to my Jolla anymore. I the log file I see this:
webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found
Is it possible to solve that? Syncing with my computer works fine.
I am running Ubuntu 14.04 and do not use SSL currently.
{"reqId":"53d29ac498ef5","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:28+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/"}
{"reqId":"53d29adbdbe56","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:51+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Android"}
{"reqId":"53d29adde842b","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:53+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Music"}
{"reqId":"53d29adfb8dec","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:55+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Videos"}
{"reqId":"53d29ae23817b","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:58+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Documents"}
{"reqId":"53d29ae46ba2f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:59:00+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Pictures"}
running Ubuntu 14.04 with owncloud 7 rewrite module is enabled.
Same error here: "Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found".
No problems with browser, only if I try to use the OwnCloud Sync Client on Windows or Linux it can not log in.
{"reqId":"53d8de514b154","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-30T12:00:17+00:00","method":"PROPFIND","url":"\/remote.php\/webdav"}
Ubuntu Server 14.04 with Apache, php fastcgi / suexec, ssl
Needed Apache modules like "rewrite", "headers" and so on are all enabled.
I put this rewrite rule in my apache virtualhost config an it worked. Should also work in the .htaccess file in the root folder of owncloud.
I left this .htaccess file untouched - it has only this content:
I put up clean a test install (alas based on master) and configured my Jolla towards it. The test event was not importet, but a test event was synced up to ownCloud. Sailfish OS's CalDAV support is also experimental only… No errors in any log file. Auth works.
{"reqId":"542a9d364b32f","app":"webdav","message":"Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-09-30T12:08:22+00:00","method":"PROPFIND","url":"/remote.php/webdav"}
Hey guys I had the same problem. And i was spending weeks on that issue. It turned out that it was related due to the fact that my hoster is using suexec, which does not pass environment variables to CGI scripts.
Unfortunately I still have some issues with the android app. The sync of the files, contacts and calendar works all fine, but when i am trying to share a folder, i am getting again the unfamous "Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found” error. Maybe s.o. knows how to fix it.
The problem is unlikely in ownCloud but in the (experimental!) Jolla CalDAV implementation.
The »No basic authentication headers were found« message is not a problem, as it is normal behaviour when an unauthenticated request is done. 401 is reported and the client will (is supposed to) send credentials the next time.
On together.jolla.com many people got it somewhat running, I'd suggest to look it up there.
See for instance here also here and here, but there a far more threads and replies about it.
Opposed to @JanMalte's statement, the calendar works very well for me using Kontact 4.14.2 (except i saw it unmotivatedly delete entries few times -.-).
Activity
PVince81 commentedon Jul 25, 2014
Not sure. Can you check whether your server has "mod_rewrite" enabled ?
CC @blizzz to test on his Jolla
stonerl commentedon Jul 26, 2014
I get the same debug-message
{"reqId":"53d29ac498ef5","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:28+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/"} {"reqId":"53d29adbdbe56","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:51+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Android"} {"reqId":"53d29adde842b","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:53+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Music"} {"reqId":"53d29adfb8dec","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:55+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Videos"} {"reqId":"53d29ae23817b","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:58:58+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Documents"} {"reqId":"53d29ae46ba2f","app":"webdav","message":"Sabre\\DAV\\Exception\\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-07-25T17:59:00+00:00","method":"PROPFIND","url":"\/remote.php\/webdav\/Pictures"}running Ubuntu 14.04 with owncloud 7 rewrite module is enabled.
elek02 commentedon Jul 30, 2014
Same error here: "Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found".
No problems with browser, only if I try to use the OwnCloud Sync Client on Windows or Linux it can not log in.
Ubuntu Server 14.04 with Apache, php fastcgi / suexec, ssl
Needed Apache modules like "rewrite", "headers" and so on are all enabled.
elek02 commentedon Jul 30, 2014
RewriteRule either in .htaccess or in apache virtualhost config fixes that problem!
stonerl commentedon Jul 30, 2014
This one
and this one
look quite the same. I added the second one to my .htaccess in
and commented the first one out but I still get those log messages... My second attempt was to have both in my .htaccess but still those errors.
Third try was
but again errors.
elek02 commentedon Jul 31, 2014
I put this rewrite rule in my apache virtualhost config an it worked. Should also work in the .htaccess file in the root folder of owncloud.
I left this .htaccess file untouched - it has only this content:
benjoz commentedon Aug 3, 2014
Exacte same issue with same config :) (OC 7, Ubuntu 14.04 fresh install) + SSL
#9880
Debug webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found 2014-08-03T10:06:21+00:00I tried everything in .htaccess but nothing works
elek02 commentedon Aug 4, 2014
@no-1: Maybe the .htaccess is different because I did an upgrade from OC6 to OC7 and no fresh install of OC7.
Gifftron commentedon Aug 8, 2014
I'm having the same issue OC 7. I've tried adding the code to every .htaccess file.
Gifftron commentedon Aug 8, 2014
I have a fresh install so its not because of the OC6 to OC7 upgrade.
blizzz commentedon Aug 13, 2014
I put up clean a test install (alas based on master) and configured my Jolla towards it. The test event was not importet, but a test event was synced up to ownCloud. Sailfish OS's CalDAV support is also experimental only… No errors in any log file. Auth works.
blizzz commentedon Aug 13, 2014
I will try to test it with 7.0.1 and stable7 tomorrow.
blizzz commentedon Aug 14, 2014
No, works for me with 7.0.1 as well. Also on Ubuntu 14.04, but not as fastcgi / php-fpm. All affected by this run this configuration, right?
Seems similar to #9416
blizzz commentedon Aug 14, 2014
I don't run PHP as fastcgi.
Mikhail-I commentedon Aug 17, 2014
I've got the same issue on kubuntu 14.04, lighttpd, fresh install owncloud 7.0.0.
JanMalte commentedon Aug 20, 2014
Creating calendar entries with CalDav in KDE 4.13.3 seems not to work with OwnCloud 7 due to the same error.
Owncloud log:
t2d commentedon Sep 24, 2014
I get the same error. ownCloud 7.0.2 (stable)
mathiasuhl commentedon Sep 30, 2014
well i have the same problem.
{"reqId":"542a9d364b32f","app":"webdav","message":"Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found","level":0,"time":"2014-09-30T12:08:22+00:00","method":"PROPFIND","url":"/remote.php/webdav"}
Mooni123 commentedon Oct 19, 2014
Some news about this problem ?
I have the same issue.
tomtana commentedon Nov 23, 2014
Hey guys I had the same problem. And i was spending weeks on that issue. It turned out that it was related due to the fact that my hoster is using suexec, which does not pass environment variables to CGI scripts.
The solution here made it work: Thank you so much :)
http://www.blaicher.com/2012/07/fixing-authentication-of-owncloud-for-webfaction/#comment-275
so you should change your .htaccess file like this:
and add in lib/base.php in the handleAuthHeaders() function the following lines:
Unfortunately I still have some issues with the android app. The sync of the files, contacts and calendar works all fine, but when i am trying to share a folder, i am getting again the unfamous "Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found” error. Maybe s.o. knows how to fix it.
blizzz commentedon Mar 24, 2015
The problem is unlikely in ownCloud but in the (experimental!) Jolla CalDAV implementation.
The »No basic authentication headers were found« message is not a problem, as it is normal behaviour when an unauthenticated request is done. 401 is reported and the client will (is supposed to) send credentials the next time.
On together.jolla.com many people got it somewhat running, I'd suggest to look it up there.
See for instance here also here and here, but there a far more threads and replies about it.
Opposed to @JanMalte's statement, the calendar works very well for me using Kontact 4.14.2 (except i saw it unmotivatedly delete entries few times -.-).
As the calendar works fine elsewhere it is a client problem, therefore I close it here. If you still experience issues, please browse https://together.jolla.com and engage there. Or, even better, fix SailfishOS's CalDAV implementation https://github.com/nemomobile/buteo-sync-plugin-caldav/ :)