After 11 Upgrade: Sabre Web Dav error in log

I can only reconfirm that - in investigating the WEB DAV error again - my hoster confirmed it would not really be an error but rather a logging output on debug as part of a natural procedure of the web dav authentification which would go away when changing log level from “0” (debug) to “1”.

I can cofirm the error message doesnt show anymore. I keep on having problems with contacts, but they may have a different cause.

however the screenshot from @jakobsystems i can not comment because i dont saw those problems. maybe a locked file?

Well, I changed log level to protocol failed logins in log. I use those log entries for fail2ban.

I concluded that “401 No ‘Authorization: Basic’ header found” messages can be ignored, at least when the client is Thunderbird + Lightning + SOGo connector. They are errors, probably in the Sabre code used by Nextcloud server (because they are seen when using a variety of WebDAV clients) but at least Thunderbird + Lightning + SOGo continues normally after the errors

This was with Nextcloud server 11.0.2 from https://repo.morph027.de/nextcloud, running on Debian 8 Jessie

The conclusion came after creating a new Thunderbird 45.8.0 profile, starting it at a command prompt (so error messages were displayed)

  • Installing add-ons …
    ** Lightning 4.7.8
    ** sogo-connector 31.0.4
    ** british_english_dictionary_updated 1.19.6 (not necessary)
    ** imap_received_date 1.0 (not necessary)
  • Calendar tab
  • New Calendar (accessed by context clicking in left pane)
  • On the Network
  • Format: CalDAV
  • Location: https://server-FQDN-redacted/nextcloud/remote.php/dav/calendars/c/personal/
  • Name: CS6
  • Email: None (only choice because no accounts set up yet)
  • Self-signed certificate steps (no glitches)
  • Synchronize Calendars (accessed by context clicking in left pane)
  • Entered user name and password

Back at the command prompt used to start Thunderbird, saw: “Warning: There has been an error reading data for calendar: CS6. However, this error is believed to be minor, so the program will attempt to continue. Error code: DAV_NOT_DAV. Description: The resource at https://server-FQDN-redacted/nextcloud/remote.php/dav/calendars/c/personal/ is either not a DAV collection or not available” (twice)

In the Netxtcloud server log saw the “401 No ‘Authorization: Basic’ header found” messages, three times once at 08:09:31 and twice at 08:12:07.

The calendar was populated, apparently normally.

hi, have the same issue with Nextcloud 12.0.0.29 and 2 Factor Auth enabled.

The Server need time to load an Month (e.g. August 2017).
Access with Thunderbird not possible:

the Log:

	Sabre\DAV\Exception\NotAuthenticated: HTTP/1.1 401 No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured

[internal function] Sabre\DAV\Auth\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit('beforeMethod', Array)
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/apps/dav/appinfo/v1/publicwebdav.php - line 105: Sabre\DAV\Server->exec()
/var/www/vhosts/larsmueller.net/nextcloud/public.php - line 76: require_once('/var/www/vhosts...')
{main}

6 minutes ago

Debug webdav OCA\DAV\Connector\Sabre\Exception\PasswordLoginForbidden: HTTP/1.1 401 Unauthorized

/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Backend/AbstractBasic.php - line 105: OCA\DAV\Connector\Sabre\Auth->validateUserPass('lars', 'lamue80@cloud')
/var/www/vhosts/larsmueller.net/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php - line 252: Sabre\DAV\Auth\Backend\AbstractBasic->check(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/apps/dav/lib/Connector/Sabre/Auth.php - line 154: OCA\DAV\Connector\Sabre\Auth->auth(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php - line 201: OCA\DAV\Connector\Sabre\Auth->check(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php - line 150: Sabre\DAV\Auth\Plugin->check(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
[internal function] Sabre\DAV\Auth\Plugin->beforeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/event/lib/EventEmitterTrait.php - line 105: call_user_func_array(Array, Array)
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 466: Sabre\Event\EventEmitter->emit('beforeMethod', Array)
/var/www/vhosts/larsmueller.net/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php - line 254: Sabre\DAV\Server->invokeMethod(Object(Sabre\HTTP\Request), Object(Sabre\HTTP\Response))
/var/www/vhosts/larsmueller.net/nextcloud/apps/dav/lib/Server.php - line 253: Sabre\DAV\Server->exec()
/var/www/vhosts/larsmueller.net/nextcloud/apps/dav/appinfo/v2/remote.php - line 33: OCA\DAV\Server->exec()
/var/www/vhosts/larsmueller.net/nextcloud/remote.php - line 162: require_once('/var/www/vhosts...')
{main}

Setup-Details:

   {
    "id": "ocm85hmjn2qr",
    "items": [
        [
            "server",
            "version",
            "12.0.0.29"
        ],
        [
            "server",
            "code",
            "other"
        ],
        [
            "server",
            "enable_avatars",
            "yes"
        ],
        [
            "server",
            "enable_previews",
            "yes"
        ],
        [
            "server",
            "memcache.local",
            "\\OC\\Memcache\\Redis"
        ],
        [
            "server",
            "memcache.distributed",
            "none"
        ],
        [
            "server",
            "asset-pipeline.enabled",
            "no"
        ],
        [
            "server",
            "filelocking.enabled",
            "yes"
        ],
        [
            "server",
            "memcache.locking",
            "none"
        ],
        [
            "server",
            "debug",
            "no"
        ],
        [
            "server",
            "cron",
            "cron"
        ],
        [
            "php",
            "version",
            "7.0.18"
        ],
        [
            "php",
            "memory_limit",
            -1
        ],
        [
            "php",
            "max_execution_time",
            0
        ],
        [
            "php",
            "upload_max_filesize",
            2097152
        ],
        [
            "database",
            "type",
            "mysql"
        ],
        [
            "database",
            "version",
            "5.7.18"
        ],
        [
            "database",
            "size",
            54312960
        ],
        [
            "apps",
            "Object",
            "disabled"
        ],
        [
            "apps",
            "activity",
            "2.5.2"
        ],
        [
            "apps",
            "admin_audit",
            "1.2.0"
        ],
        [
            "apps",
            "admin_notifications",
            "1.0.0"
        ],
        [
            "apps",
            "afterlogic",
            "disabled"
        ],
        [
            "apps",
            "audioplayer",
            "disabled"
        ],
        [
            "apps",
            "bookmarks",
            "0.10.0"
        ],
        [
            "apps",
            "bruteforcesettings",
            "1.0.2"
        ],
        [
            "apps",
            "calendar",
            "1.5.3"
        ],
        [
            "apps",
            "circles",
            "0.10.0"
        ],
        [
            "apps",
            "comments",
            "1.2.0"
        ],
        [
            "apps",
            "contacts",
            "1.5.3"
        ],
        [
            "apps",
            "dav",
            "1.3.0"
        ],
        [
            "apps",
            "direct_menu",
            "disabled"
        ],
        [
            "apps",
            "documents",
            "disabled"
        ],
        [
            "apps",
            "drawio",
            "disabled"
        ],
        [
            "apps",
            "fbsync",
            "disabled"
        ],
        [
            "apps",
            "federatedfilesharing",
            "1.2.0"
        ],
        [
            "apps",
            "federation",
            "1.2.0"
        ],
        [
            "apps",
            "files",
            "1.7.2"
        ],
        [
            "apps",
            "files_accesscontrol",
            "1.2.4"
        ],
        [
            "apps",
            "files_automatedtagging",
            "1.2.2"
        ],
        [
            "apps",
            "files_downloadactivity",
            "disabled"
        ],
        [
            "apps",
            "files_external",
            "1.3.0"
        ],
        [
            "apps",
            "files_markdown",
            "1.0.1"
        ],
        [
            "apps",
            "files_pdfviewer",
            "1.1.1"
        ],
        [
            "apps",
            "files_retention",
            "1.1.2"
        ],
        [
            "apps",
            "files_sharing",
            "1.4.0"
        ],
        [
            "apps",
            "files_texteditor",
            "2.4.1"
        ],
        [
            "apps",
            "files_trashbin",
            "1.2.0"
        ],
        [
            "apps",
            "files_versions",
            "1.5.0"
        ],
        [
            "apps",
            "files_videoplayer",
            "1.1.0"
        ],
        [
            "apps",
            "firstrunwizard",
            "2.1"
        ],
        [
            "apps",
            "gallery",
            "17.0.0"
        ],
        [
            "apps",
            "gpxpod",
            "disabled"
        ],
        [
            "apps",
            "logreader",
            "2.0.0"
        ],
        [
            "apps",
            "lookup_server_connector",
            "1.0.0"
        ],
        [
            "apps",
            "mail",
            "disabled"
        ],
        [
            "apps",
            "mozilla_sync",
            "disabled"
        ],
        [
            "apps",
            "music",
            "disabled"
        ],
        [
            "apps",
            "news",
            "disabled"
        ],
        [
            "apps",
            "nextant",
            "1.0.8"
        ],
        [
            "apps",
            "nextcloud_announcements",
            "1.1"
        ],
        [
            "apps",
            "notes",
            "2.2.0"
        ],
        [
            "apps",
            "notifications",
            "2.0.0"
        ],
        [
            "apps",
            "oauth2",
            "1.0.5"
        ],
        [
            "apps",
            "ocdownloader",
            "1.5"
        ],
        [
            "apps",
            "ocr",
            "2.3.0"
        ],
        [
            "apps",
            "ocsms",
            "disabled"
        ],
        [
            "apps",
            "onlyoffice",
            "disabled"
        ],
        [
            "apps",
            "passman",
            "2.1.2"
        ],
        [
            "apps",
            "password_policy",
            "1.2.2"
        ],
        [
            "apps",
            "passwords",
            "disabled"
        ],
        [
            "apps",
            "piwik",
            "0.3.1"
        ],
        [
            "apps",
            "provisioning_api",
            "1.2.0"
        ],
        [
            "apps",
            "rainloop",
            "5.0.0"
        ],
        [
            "apps",
            "registration",
            "disabled"
        ],
        [
            "apps",
            "richdocuments",
            "1.12.32"
        ],
        [
            "apps",
            "roundcube",
            "disabled"
        ],
        [
            "apps",
            "serverinfo",
            "1.2.0"
        ],
        [
            "apps",
            "sharebymail",
            "1.2.0"
        ],
        [
            "apps",
            "survey_client",
            "1.0.0"
        ],
        [
            "apps",
            "systemtags",
            "1.2.0"
        ],
        [
            "apps",
            "tasks",
            "0.9.5"
        ],
        [
            "apps",
            "templateeditor",
            "0.2"
        ],
        [
            "apps",
            "theming",
            "1.3.0"
        ],
        [
            "apps",
            "twofactor_backupcodes",
            "1.1.1"
        ],
        [
            "apps",
            "twofactor_totp",
            "disabled"
        ],
        [
            "apps",
            "updatenotification",
            "1.2.0"
        ],
        [
            "apps",
            "user_ldap",
            "disabled"
        ],
        [
            "apps",
            "weather",
            "disabled"
        ],
        [
            "apps",
            "workflowengine",
            "1.2.0"
        ],
        [
            "stats",
            "num_files",
            25955
        ],
        [
            "stats",
            "num_users",
            4
        ],
        [
            "stats",
            "num_storages",
            31
        ],
        [
            "stats",
            "num_storages_local",
            1
        ],
        [
            "stats",
            "num_storages_home",
            5
        ],
        [
            "stats",
            "num_storages_other",
            25
        ],
        [
            "stats",
            "num_comments",
            1
        ],
        [
            "stats",
            "num_comment_markers",
            2
        ],
        [
            "stats",
            "num_systemtags",
            13
        ],
        [
            "stats",
            "num_systemtags_mappings",
            71
        ],
        [
            "files_sharing",
            "num_shares",
            21
        ],
        [
            "files_sharing",
            "num_shares_user",
            12
        ],
        [
            "files_sharing",
            "num_shares_groups",
            0
        ],
        [
            "files_sharing",
            "num_shares_link",
            5
        ],
        [
            "files_sharing",
            "num_shares_link_no_password",
            5
        ],
        [
            "files_sharing",
            "num_fed_shares_sent",
            4
        ],
        [
            "files_sharing",
            "num_fed_shares_received",
            4
        ],
        [
            "files_sharing",
            "permissions_3_1",
            "4"
        ],
        [
            "files_sharing",
            "permissions_3_3",
            "1"
        ],
        [
            "files_sharing",
            "permissions_0_17",
            "4"
        ],
        [
            "files_sharing",
            "permissions_0_19",
            "6"
        ],
        [
            "files_sharing",
            "permissions_6_19",
            "3"
        ],
        [
            "files_sharing",
            "permissions_0_31",
            "2"
        ],
        [
            "files_sharing",
            "permissions_6_31",
            "1"
        ],
        [
            "encryption",
            "enabled",
            "no"
        ],
        [
            "encryption",
            "default_module",
            "no"
        ]
    ]
}