Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Webdav #45620

Closed
5 of 8 tasks
197788 opened this issue Jun 2, 2024 · 6 comments
Closed
5 of 8 tasks

[Bug]: Webdav #45620

197788 opened this issue Jun 2, 2024 · 6 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug

Comments

@197788
Copy link

197788 commented Jun 2, 2024

⚠️ This issue respects the following points: ⚠️

Bug description

Seems that I get all checks passed green check mark as long as I don't login from another browser. As soon as I do the error shows up in the settings/admin/overview page

Steps to reproduce

  1. Delete log to get the green check mark
  2. Login from a different session (browser, private window)
  3. Error now shows up in admin/overview page

Expected behavior

Keep having a green check mark saying all checks passed

Installation method

Community Manual installation with Archive

Nextcloud Server version

29

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

PostgreSQL

Is this bug present after an update or on a fresh install?

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "token_auth_enforced": true,
        "trusted_domains": [
            "localhost",
            "nextcloud.marinaro.cc"
        ],
        "skeletondirectory": "",
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "29.0.1.1",
        "overwrite.cli.url": "http:\/\/nextcloud.marinaro.cc",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "filelocking.enabled": "true",
        "memcache.local": "\\OC\\Memcache\\Redis",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0
        },
        "default_phone_region": "US",
        "maintenance_window_start": 1,
        "logtimezone": "America\/Phoenix",
        "default_timezone": "America\/Phoenix",
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_smtpauth": 1,
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "loglevel": 0,
        "data-fingerprint": "6bb2e7f791b290911e4fd54e1ab8ea86",
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [],
        "twofactor_enforced_excluded_groups": []
    }
}

List of activated Apps

Enabled:
  - activity: 2.21.1
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - firstrunwizard: 2.18.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.0
  - password_policy: 1.19.0
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - recommendations: 2.1.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - side_menu: 3.12.0
  - support: 1.12.0
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - text: 3.10.0
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_totp: 11.0.0-dev
  - updatenotification: 1.19.1
  - user_status: 1.9.0
  - viewer: 2.3.0
  - weather_status: 1.9.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0
  - encryption: 2.17.0
  - end_to_end_encryption: 1.15.2 (installed 1.15.2)
  - files_downloadlimit: 2.0.0 (installed 2.0.0)
  - files_external: 1.21.0
  - suspicious_login: 7.0.0
  - user_ldap: 1.20.0

Nextcloud Signing status

No errors have been found.

Nextcloud Logs

{"reqId":"BmeHekzdRFWXAagnWPl0","level":0,"time":"2024-06-01T22:46:52-07:00","remoteAddr":"127.0.0.1","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/webdav","message":"No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured","userAgent":"Nextcloud Server Crawler","version":"29.0.1.1","exception":{"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php","line":88,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":172,"args":["/var/www/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","Line":152,"message":"No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured","exception":[],"CustomMessage":"No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured"},"id":"665c0753c7ade"}

Additional info

Here is the formatted output:
[webdav] Debug: No public access to this resource., No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured, No 'Authorization: Bearer' header found. Either the client didn't send one, or the server is mis-configured, No 'Authorization: Basic' header found. Either the client didn't send one, or the server is misconfigured
GET /remote.php/dav/
from 127.0.0.1 by -- at May 31, 2024, 11:55:43 PM

@197788 197788 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Jun 2, 2024
@197788 197788 changed the title [Bug]: [Bug]: Webdav Jun 2, 2024
@joshtrichards
Copy link
Member

"loglevel": 0,

So set your loglevel to a reasonable level. Something like 2, which is the default. At the moment you have it set to debug. :) https://docs.nextcloud.com/server/latest/admin_manual/configuration_server/logging_configuration.html

@joshtrichards joshtrichards closed this as not planned Won't fix, can't repro, duplicate, stale Jun 2, 2024
@197788
Copy link
Author

197788 commented Jun 2, 2024

I had seen and tried that solution before, and it still gave error message when I set it to log level 2 (and the error message still does come back at log level 2), so I thought it may be a bug. Anything less than setting the level to 3 triggers an error message again for me. I can live with that, since it is keeping the logs clean now. Thanks, @joshtrichards

@joshtrichards
Copy link
Member

Hmm. The log message you shared says it logged at level 0.

[...]"level":0, [...]

It definitely shouldn't show up at 2.

Did the entry that appeared after you adjusted your log level to 2 also say level 0 in it?

@197788
Copy link
Author

197788 commented Jun 3, 2024

@joshtrichards I put the loglevel back down to 2, logged in from a private tab, and it still throws a error, but it is a different message than what I had originally opened this bug report for/about. So maybe it was never a webdav error, because now here is what is saying (and it is a actual warning level message, not just a debug message like the webdav error was, it appears.) :
[no app in context] Warning: Transaction took 1.5632920265198s
POST /login
from 127.0.0.1 by admin at Jun 3, 2024, 5:56:00 PM
The raw output is quite long, I can post it in a new post if you like.

@solracsf
Copy link
Member

solracsf commented Jun 3, 2024

Check #45506

@197788
Copy link
Author

197788 commented Jun 3, 2024

Check #45506

Thanks, @solracsf . That is exactly what is happening. Long transaction warnings. I appreciate you pointing to this as it tells me it is a known issue. It has also taught me to filter all the debug messages to really see what is making an error appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 29-feedback bug
Projects
None yet
Development

No branches or pull requests

4 participants