Collabora integration not working hosting/discovery not found

I’m reading Collabora integration guide

According the troubleshooting checklist I open https://office.mydomain/hosting/discovery

But this page cannot be found.

How do I continue?

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

  • Nextcloud Server version:
    • Nextcloud 31.0.6
  • Operating system and version:
    • #1 SMP PREEMPT Debian 1:6.12.25-1+rpt1 (2025-04-30)
  • Web server and version:
    • Server version: Apache/2.4.62 (Debian)
  • Reverse proxy and version:
    • nginx version: openresty/1.27.1.1
  • PHP version:
    • PHP 8.3.22 (cli) (built: Jun 11 2025 00:56:01) (NTS)
  • Is this the first time you’ve seen this error? (Yes / No):
    • yes
  • When did this problem seem to first start?
    • prob direct after installation
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • OMV Container
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • nope

Configuration

Nextcloud

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "srv-nas-pi.kingma:8080",
            "office.kingma.ch",
            "office.king.ma"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "31.0.6.2",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smpttimeout": 30,
        "mail_smtpsecure": "ssl",
        "loglevel": 3,
        "maintenance": false,
        "maintenance_window_start": 3,
        "default_phone_region": "CH",
        "app_install_overwrite": [],
        "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory"
    }
}

Apps

Enabled:

  • activity: 4.0.0
  • admin_audit: 1.21.0
  • app_api: 5.0.2
  • bruteforcesettings: 4.0.0
  • calendar: 5.3.4
  • circles: 31.0.0
  • cloud_federation_api: 1.14.0
  • comments: 1.21.0
  • contacts: 7.1.4
  • contactsinteraction: 1.12.0
  • cookbook: 0.11.3
  • dashboard: 7.11.0
  • dav: 1.33.0
  • federatedfilesharing: 1.21.0
  • federation: 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
  • firstrunwizard: 4.0.0
  • fulltextsearch: 31.0.0
  • groupfolders: 19.1.2
  • logcleaner: 1.1.8
  • logreader: 4.0.0
  • lookup_server_connector: 1.19.0
  • nextcloud_announcements: 3.0.0
  • notes: 4.12.1
  • notifications: 4.0.0
  • oauth2: 1.19.1
  • password_policy: 3.0.0
  • photos: 4.0.0-dev.1
  • privacy: 3.0.0
  • profile: 1.0.0
  • provisioning_api: 1.21.0
  • recommendations: 4.0.0
  • related_resources: 2.0.0
  • richdocuments: 8.7.1
  • richdocumentscode_arm64: 25.4.202
  • serverinfo: 3.0.0
  • settings: 1.14.0
  • sharebymail: 1.21.0
  • support: 3.0.0
  • survey_client: 3.0.0
  • suspicious_login: 9.0.1
  • systemtags: 1.21.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_ldap: 1.22.0
  • user_status: 1.11.0
  • viewer: 4.0.0
  • weather_status: 1.11.0
  • webhook_listeners: 1.2.0
  • workflowengine: 2.13.0
    Disabled:
  • encryption: 2.19.0 (installed 2.19.0)
  • files_antivirus: 6.0.2 (installed 6.0.2)
  • richdocumentscode: 25.4.202

Summary of the issue you are facing:

sudo docker exec --user www-data nextcloud php occ richdocuments:activate-config
✓ Reset callback url autodetect
Checking configuration
🛈 Configured WOPI URL: https://office.kingma.ch
🛈 Configured public WOPI URL: https://office.kingma.ch
🛈 Configured callback URL:

Failed to fetch discovery endpoint from https://office.kingma.ch
Client error: `GET https://office.kingma.ch/hosting/discovery` resulted in a `404 Not Found` response:
<!DOCTYPE html>
<html class="ng-csp" data-placeholder-focus="false" lang="en" data-locale="en" translate="no" >
        <head

Steps to replicate it (hint: details matter!):

I try to follow these steps: Collabora integration guide

  1. docker compose exec ${service name} php occ config:app:set richdocuments wopi_url --value ${CODE_URL}
  2. docker compose exec ${service name} php occ richdocuments:activate-config

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

none

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

PASTE

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

PASTE HERE

Apps

The output of occ app:list (if possible).

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

also
https://office.kingma.ch/apps/richdocumentscode/proxy.php?req=/hosting/discovery

not found

you are mixing 2 different Installation methods. the url with proxy belongs to built-in CODE the other to dedicated. which one are you using. I’m sorry OMV container is not self explaining for me..

in Collabora integration guide I read under prerequisites:

prerequisites

  • Nextcloud (WOPI server)
  • Collabora CODE (WOPI client)
    • public DNS name
    • valid TLS certificate

So that doesn’t mean I need Nextcloud Ofice and Collabora CODE? I’m totally confused with the documentation

Collabora Online is a LibreOffice-based online office suite with collaborative editing, which supports all major documents, spreadsheet and presentation file formats and works together with all modern browsers. The Nextcloud Office integration app provides a Nextcloud interface for editing documents with Collabora Online.

Collabora CODE (Collabora Office Development Edition) is the development version of Collabora Online. It is perfect for testing, home use or small teams, but not recommended for production environments. Collabora CODE together with Nextcloud Office enables editing Office documents within your Nextcloud instance.

There are various methods to run Collabora CODE together with Nextcloud Office.

TIP

Regardless which Collabora CODE service you’re planning to use, Nextcloud Office is required and must be installed on your Nextcloud instance to provide an interface for editing documents in Nextcloud.

1 Like

as you can see in the list of apps both Nextcould Office and Collabora Online Build-in CODE Server (ARM64) are installed. What else is needed?

in this case your CODE URL is .../apps/richdocumentscode/proxy.php?req=/hosting/discovery the logic and troubleshooting steps remain the same.. in the guide there are many references related to collabora-built-in as well also showing many problems.

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.