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 broken after update Nextcloud 30.0.6 to 31 - plus Workaround - Solved by removing "emlviewer" #51138

Closed
4 of 8 tasks
tobefrank1 opened this issue Feb 28, 2025 · 11 comments
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap 31-feedback bug needs info

Comments

@tobefrank1
Copy link

tobefrank1 commented Feb 28, 2025

⚠️ This issue respects the following points: ⚠️

Bug description

After updating Nextcloud from 30.0.6 to 31.0. Webdav stopped working.

There is a new setup errors warning:

Your web server is not yet properly set up to allow file synchronization, because the WebDAV interface seems to be broken. To allow this check to run, you have to make sure that your Web server can connect to itself. Therefore, it must be able to resolve and connect to at least one of its trusted_domains or the overwrite.cli.url. This failure may be the result of a server-side DNS mismatch or outbound firewall rule.
Your web server is not properly set up to resolve .well-known URLs, failed on: /.well-known/caldav For more details, see the documentation ↗.

The point is that Webdav and caldav were working in 30.0.6 without a problem, now they are broken.
I have no clue what to do, as Google tell that in older problems only "Wait for the new update" was the solution.

Workaround:
The Nextcloud desktop app is working. Trying to mount Webdav with Mountain Duck (proprietary for Win) fails, but using Mountain Duck in Nextcloud mode works.

Steps to reproduce

  1. Update to Nextcloud 31

Expected behavior

Webdav - Caldav - working.
Update with no errors.

Nextcloud Server version

31

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

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

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

None

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***",
        "trusted_domains": [
            "https:\/\/cloud.server.com",
            "localhost",
            "127.0.0.1",
            "cloud.server.com",
            "192.168.188.160",
            "192.168.188.0"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.0.18",
        "overwrite.cli.url": "https:\/\/cloud.server.com",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "activity_expire_days": 14,
        "allow_local_remote_servers": true,
        "auth.bruteforce.protection.enabled": true,
        "forbidden_filenames": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "cron_log": true,
        "default_phone_region": "NL",
        "enable_previews": true,
        "preview_max_filesize_image": "5",
        "preview_libreoffice_path": "\/usr\/bin\/libreoffice",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI"
        ],
        "filesystem_check_changes": 0,
        "filelocking.enabled": "true",
        "htaccess.RewriteBase": "\/",
        "integrity.check.disabled": false,
        "knowledgebaseenabled": false,
        "log_rotate_size": "104857600",
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "loglevel": 2,
        "logtimezone": "Europe\/Berlin",
        "maintenance_window_start": 1,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "https",
        "preview_max_x": 1024,
        "preview_max_y": 768,
        "preview_max_scale_factor": 1,
        "profile.enabled": false,
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0.5,
            "dbindex": 1
        },
        "quota_include_external_storage": false,
        "share_folder": "\/Freigaben",
        "skeletondirectory": "",
        "trashbin_retention_obligation": "auto, 7",
        "maintenance": false,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "ail_domain": "sherart.com",
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpauth": 1,
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "theme": "",
        "app_install_overwrite": [],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "data-fingerprint": "1a23d33daba1b5f12b4e13440a1c17"
    }

List of activated Apps

Enabled:
  - activity: 4.0.0
  - admin_audit: 1.21.0
  - app_api: 5.0.2
  - assistant: 2.4.0
  - bookmarks: 15.1.0
  - calendar: 5.1.2
  - circles: 31.0.0-dev.0
  - cloud_federation_api: 1.14.0
  - collectives: 2.16.1
  - comments: 1.21.0
  - contacts: 7.0.1
  - contactsinteraction: 1.12.0
  - dashboard: 7.11.0
  - dav: 1.33.0
  - emlviewer: 1.0.11
  - end_to_end_encryption: 1.17.0
  - event_update_notification: 2.6.1
  - federatedfilesharing: 1.21.0
  - files: 2.3.1
  - files_downloadlimit: 4.0.0
  - files_external: 1.23.0
  - files_pdfviewer: 4.0.0
  - files_reminders: 1.4.0
  - files_sharing: 1.23.1
  - files_trashbin: 1.21.0
  - files_versions: 1.24.0
  - logreader: 4.0.0
  - lookup_server_connector: 1.19.0
  - mail: 4.2.2
  - nextcloud_announcements: 3.0.0
  - notes: 4.11.0
  - notifications: 4.0.0
  - oauth2: 1.19.1
  - password_policy: 3.0.0
  - photos: 4.0.0-dev.1
  - previewgenerator: 5.8.0
  - privacy: 3.0.0
  - profile: 1.0.0
  - provisioning_api: 1.21.0
  - recommendations: 4.0.0
  - related_resources: 2.0.0
  - richdocuments: 8.6.2
  - richdocumentscode: 24.4.1204
  - serverinfo: 3.0.0
  - settings: 1.14.0
  - sharebymail: 1.21.0
  - systemtags: 1.21.1
  - tasks: 0.16.1
  - text: 5.0.0
  - theming: 2.6.1
  - twofactor_backupcodes: 1.20.0
  - twofactor_nextcloud_notification: 5.0.0
  - twofactor_totp: 13.0.0-dev.0
  - updatenotification: 1.21.0
  - user_status: 1.11.0
  - viewer: 4.0.0
  - weather_status: 1.11.0
  - webapppassword: 25.2.0
  - workflowengine: 2.13.0
Disabled:
  - bruteforcesettings: 4.0.0 (installed 4.0.0)
  - context_chat: 4.1.0 (installed 4.1.0)
  - deck: 1.15.0 (installed 1.15.0)
  - encryption: 2.19.0
  - external: 6.0.1 (installed 6.0.1)
  - extract: 1.3.6 (installed 1.3.6)
  - federation: 1.21.0 (installed 1.14.0)
  - files_accesscontrol: 2.0.0 (installed 2.0.0)
  - files_fulltextsearch: 30.0.0 (installed 30.0.0)
  - files_inotify: 0.2.2 (installed 0.1.15)
  - fileslibreofficeedit: 2.0.1 (installed 2.0.1)
  - firstrunwizard: 4.0.0 (installed 2.13.0)
  - fulltextsearch: 31.0.0 (installed 31.0.0)
  - fulltextsearch_elasticsearch: 31.0.0 (installed 31.0.0)
  - geoblocker: 0.5.15 (installed 0.5.15)
  - groupfolders: 19.0.3 (installed 19.0.3)
  - openotp_auth: 1.30.5 (installed 1.30.5)
  - ownershiptransfer: 1.1.0 (installed 1.1.0)
  - side_menu: 4.0.1 (installed 4.0.1)
  - spreed: 21.0.0 (installed 21.0.0)
  - support: 3.0.0 (installed 1.7.0)
  - survey_client: 3.0.0 (installed 1.12.0)
  - suspicious_login: 9.0.1
  - translate: 2.2.0 (installed 2.2.0)
  - user_ldap: 1.22.0
  - user_migration: 7.0.1 (installed 7.0.1)
  - webhook_listeners: 1.2.0 (installed 1.1.0-dev)
  - whiteboard: 1.0.5 (installed 1.0.5)
  - workflow_script: 2.0.0 (installed 2.0.0)

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

@tobefrank1 tobefrank1 added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Feb 28, 2025
@susnux
Copy link
Contributor

susnux commented Feb 28, 2025

Do you have any issues except the setup check?

The setup check means that the server - as stated - cannot connect to the webdav endpoint.
Please make sure that you can connect from your server machine to itself, if you have shell access you can try:

curl -I URL/remote.php/webdav -X PROPFIND 2>/dev/null | grep HTTP

Where URL is the value of your cli.override.url setting.

The expected output is one of this:

  • HTTP/2 401
  • HTTP/1.1 401
  • HTTP/2 207
  • HTTP/1.1 207

@susnux susnux added needs info and removed high labels Feb 28, 2025
@kjllmeplz
Copy link

i had same problem after update to 31.
Tried the command above and the result is : HTTP/2 500

@susnux
Copy link
Contributor

susnux commented Feb 28, 2025

HTTP/2 500

In this case please look for an entry in your nextcloud.log - if there is nothing related please also check your webserver error logs.

@kjllmeplz
Copy link

HTTP/2 500

In this case please look for an entry in your nextcloud.log - if there is nothing related please also check your webserver error logs.

Thank you for your suggest. When i traced log in nextcloud.log, based on log file, I've found that one of my apps is not update.
After updating this app, webdav is back to normal.

@susnux
Copy link
Contributor

susnux commented Mar 1, 2025

@tobefrank1 can you please check if this also helps for you?

@duanvt
Copy link

duanvt commented Mar 3, 2025

Having the same problem, my problem is that the "emlviewer" app is not compatible.
try removing it from the app list

@tobefrank1
Copy link
Author

Yes, I found that out yesterday too.
Since I have 2 Nextclouds running, the one without “emlviewer” had no update problems :).

So the cause and solution would be to

** remove emlviewer **

as it is not compatible and also causes a serious problem with Nextcloud Mail.

It looks like, the system is back to normal now.

Thank you for your help.

@tobefrank1 tobefrank1 changed the title [Bug]: Webdav broken after update Nextcloud 30.0.6 to 31 - plus Workaround [Bug]: Webdav broken after update Nextcloud 30.0.6 to 31 - plus Workaround - Solved by removing "emlviewer" Mar 3, 2025
@TheMBeat
Copy link

TheMBeat commented Mar 5, 2025

I have the same error and no emlviewer installed. i get 500 as response any idea what i can do?

@susnux
Copy link
Contributor

susnux commented Mar 5, 2025

@TheMBeat check your nextcloud log for anything related

@tobefrank1
Copy link
Author

@susnux as you suggested, I ran after removing elmviewer.

curl -I URL/remote.php/webdav -X PROPFIND 2>/dev/null | grep HTTP

Where URL is the value of your cli.override.url setting.

the output is HTTP/2 401,
as you said, that should be normal.

@susnux
Copy link
Contributor

susnux commented Mar 5, 2025

@tobefrank1 yes that can be normal meaning then there should be not setup check warning about webdav anymore ✅

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 31-feedback bug needs info
Projects
None yet
Development

No branches or pull requests

6 participants