Skip to content

Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found #12146

Closed

Description

Getting this error constantly filling log on OC 7.0.3 on Ubuntu Linux (I do not even use webdav?)
Debug webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found

Activity

  1. DeepDiver1975 commented on Nov 13, 2014

    @DeepDiver1975
    Contributor

    But you use yhe desktop client or mobile clients?

    Clients first try an unauthotized connect before sending an authorized request.

    But this should happen only once.

    @dragotin

  2. dragotin commented on Nov 13, 2014

    @dragotin
    Contributor

    Is that an external WebDAV mount into the server?

  3. PVince81 commented on Nov 13, 2014

    @PVince81
    Contributor

    Are you able to identify which client is causing it, maybe by checking the IP address in the access log ?

    ownCloud's web UI doesn't use webdav so it cannot be causing this issue.

  4. Pazu commented on Nov 16, 2014

    @Pazu

    I see about thirty of these messages since updating to 7.0.3 yesterday, but they're debug-level messages (at least for me).

    Debug webdav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found

    and

    Debug carddav Sabre\DAV\Exception\NotAuthenticated: No basic authentication headers were found

    I use the Mac OS X desktop sync client 1.7.0.

  5. bitsandnumbers commented on Jan 31, 2015

    @bitsandnumbers

    I have the same issue. My client is on a Mac, but is doesn't seem to be the culprit, as I also get, as in the message above, an error for carddav.

  6. PVince81 commented on Oct 8, 2015

    @PVince81
    Contributor

    Are you still seeing this with 8.1.3 ?

  7. kklem0 commented on Oct 13, 2015

    @kklem0

    I started to get his when i upgraded from 8.0 to 8.1.3

  8. DeepDiver1975 commented on Oct 13, 2015

    @DeepDiver1975
    Contributor

    in debug mode we are logging this exception which indicates no issue at all -> closing

  9. kklem0 commented on Oct 13, 2015

    @kklem0

    We fixed it here by disabling nginx fastcgi_buffering.
    So fastcgi_buffering off; in site config file.

  10. bitsandnumbers commented on Oct 14, 2015

    @bitsandnumbers

    @clementhk This workaround didn't work on my side, still get the same message...
    @DeepDiver1975 If it's not an issue, it's still clogging the log file :/

  11. bitsandnumbers commented on Oct 14, 2015

    @bitsandnumbers

    @RealRancor My bad, didn't remember log level was set to 0. Thanks

  12. deviousway commented on Jan 19, 2016

    @deviousway

    Tnx fastcgi_buffering off; in

    location ~ \.php(?:$|/) {
     fastcgi_buffering off;
    
    

    Working for me (Archlinux+Nginx+php-fpm (php7), tyvm

  13. josh4trunks commented on Jan 19, 2016

    @josh4trunks
    Contributor

    @RealRancor I'm not familiar with the implications. I personally have never tweaked that.

  14. deviousway commented on Jan 19, 2016

    @deviousway

    you can use separate location for auth just use same settings as for 'php location' location ~ .php(?:$|/)

    Make sure ~ .php is BELOW the location /remote.php/webdav
    for examle

    location /remote.php/webdav {
    fastcgi_split_path_info ^(.+\.php)(/.+)$;
                            include fastcgi_params;
                            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                            fastcgi_param PATH_INFO $fastcgi_path_info;
                            fastcgi_param HTTPS on;
                            fastcgi_param MOD_X_ACCEL_REDIRECT_ENABLED on;
                            fastcgi_buffering off;
                            fastcgi_pass unix:/var/run/php-fpm/microsoft.sucks.sock;
    }
     location ~ \.php(?:$|/) {
    .....
    }
    
    
  15. deviousway commented on Jan 19, 2016

    @deviousway

    @RealRancor sorry wrong post

  16. josh4trunks commented on Jan 19, 2016

    @josh4trunks
    Contributor

    not sure what this is needed for since I haven't experienced this myself. but if you are going to specify an exact path you can use "location =" so nginx doesn't need to do any regex.

  17. kklem0 commented on Jan 19, 2016

    @kklem0

    I was also using default buffering and it worked until 8.1.
    I'm not so sure if it is related but we have lots of huge files being sync everyday, traffic is maybe 5 TB a day.

  18. kklem0 commented on Jan 20, 2016

    @kklem0

    @RealRancor it worked up to 8.0, and stopped working on 8.1, and it works again if I downgrade it, so I don't think that one is related.

  19. lock commented on Aug 6, 2019

    @lock

    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.

  20. locked as resolved and limited conversation to collaborators on Aug 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions