Nextcloud AIO (Docker), Proxy (Apache), and Collabora (Socket error)

The Basics

  • Nextcloud Server version: 30.0. 2
  • Operating system and version: Linux 6.6.44-production+truenas x86_64
  • Web server and version: AIO
  • Reverse proxy and version Apache 2.4.62
  • PHP version: 8.3.13
  • Is this the first time you’ve seen this error? Yes
  • When did this problem seem to first start? At launch / always
  • Installation method: AIO
  • Are you using CloudfIare, mod_security, or similar? No

Summary of the issue you are facing:

When attempting to edit a file online in Collabora in the web interface, I get the error:

“Failed to establish socket connection or socket connection closed unexpectedly. The reverse proxy might be misconfigured, please contact the administrator. For more info on proxy configuration please checkout Proxy settings — SDK https://sdk.collaboraonline.com/ documentation

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

  1. Install AIO instance / stack
  2. Set up Reverse Proxy
  3. Try to edit file online in Web UI

The Setup:

The hardware host is a TrueNAS system, running Nextcloud AIO in Docker, and a Rocky Linux VM with Virtualmin / Apache as a reverse proxy. Nextcloud itself is working fine, but when I click on an Open Office document, I get the error mentioned above in response.

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.

https://www.aiskon.net/public/nextcloud-log.txt

Web server / Reverse Proxy

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

Log file not found

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!):

{
    "system": {
        "one-click-instance": true,
        "one-click-instance.user-limit": 100,
        "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
            }
        ],
        "check_data_directory_permissions": false,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "overwritehost": "cloud.aiskon.net",
        "overwriteprotocol": "https",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost",
            "cloud.aiskon.net"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "30.0.2.2",
        "overwrite.cli.url": "https:\/\/cloud.aiskon.net\/",
        "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***",
        "maintenance": false,
        "updatedirectory": "\/nc-updater",
        "loglevel": 2,
        "app_install_overwrite": [
            "nextcloud-aio"
        ],
        "log_type": "file",
        "logfile": "\/var\/www\/html\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpmode": "smtp",
        "mail_sendmailmode": "smtp",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "default_phone_region": "US",
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 60,
        "enabledPreviewProviders": {
            "1": "OC\\Preview\\Image",
            "2": "OC\\Preview\\MarkDown",
            "3": "OC\\Preview\\MP3",
            "4": "OC\\Preview\\TXT",
            "5": "OC\\Preview\\OpenDocument",
            "6": "OC\\Preview\\Movie",
            "7": "OC\\Preview\\Krita",
            "0": "OC\\Preview\\Imaginary"
        },
        "enable_previews": true,
        "upgrade.disable-web": true,
        "trashbin_retention_obligation": "auto, 30",
        "versions_retention_obligation": "auto, 30",
        "activity_expire_days": 30,
        "simpleSignUpLink.shown": false,
        "share_folder": "\/Shared",
        "one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
        "upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
        "maintenance_window_start": 100,
        "allow_local_remote_servers": true,
        "davstorage.request_timeout": 3600,
        "htaccess.RewriteBase": "\/",
        "dbpersistent": false,
        "auth.bruteforce.protection.enabled": true,
        "ratelimit.protection.enabled": true,
        "files_external_allow_create_new_local": false,
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
        "documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
        "DOMAIN": "cloud.aiskon.net"
    }
}

Apps

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

Enabled:
  - bruteforcesettings: 3.0.0
  - cloud_federation_api: 1.13.0
  - dav: 1.31.1
  - federatedfilesharing: 1.20.0
  - files: 2.2.0
  - files_downloadlimit: 3.0.0
  - files_fulltextsearch: 30.0.0
  - files_pdfviewer: 3.0.0
  - files_sharing: 1.22.0
  - files_trashbin: 1.20.1
  - files_versions: 1.23.0
  - fulltextsearch: 30.0.0
  - fulltextsearch_elasticsearch: 30.0.0
  - logreader: 3.0.0
  - lookup_server_connector: 1.18.0
  - nextcloud-aio: 0.6.0
  - nextcloud_announcements: 2.0.0
  - notifications: 3.0.0
  - notify_push: 0.7.0
  - oauth2: 1.18.1
  - privacy: 2.0.0
  - provisioning_api: 1.20.0
  - related_resources: 1.5.0
  - richdocuments: 8.5.3
  - serverinfo: 2.0.0
  - settings: 1.13.0
  - sharebymail: 1.20.0
  - support: 2.0.0
  - survey_client: 2.0.0
  - suspicious_login: 8.0.0
  - text: 4.1.0
  - theming: 2.5.0
  - twofactor_backupcodes: 1.19.0
  - twofactor_totp: 12.0.0-dev
  - viewer: 3.0.0
  - webhook_listeners: 1.1.0-dev
  - workflowengine: 2.12.0
Disabled:
  - activity: 3.0.0 (installed 3.0.0)
  - admin_audit: 1.20.0 (installed 1.20.0)
  - app_api: 4.0.0 (installed 4.0.0)
  - calendar: 5.0.6 (installed 5.0.6)
  - circles: 30.0.0 (installed 30.0.0)
  - comments: 1.20.1 (installed 1.20.1)
  - contacts: 6.1.1 (installed 6.1.1)
  - contactsinteraction: 1.11.0 (installed 1.11.0)
  - dashboard: 7.10.0 (installed 7.10.0)
  - deck: 1.14.2 (installed 1.14.2)
  - encryption: 2.18.0
  - federation: 1.20.0 (installed 1.20.0)
  - files_external: 1.22.0
  - files_reminders: 1.3.0 (installed 1.3.0)
  - firstrunwizard: 3.0.0 (installed 3.0.0)
  - notes: 4.11.0 (installed 4.11.0)
  - password_policy: 2.0.0 (installed 2.0.0)
  - photos: 3.0.2 (installed 3.0.2)
  - recommendations: 3.0.0 (installed 3.0.0)
  - spreed: 20.1.0 (installed 20.1.0)
  - systemtags: 1.20.0 (installed 1.20.0)
  - tasks: 0.16.1 (installed 0.16.1)
  - twofactor_nextcloud_notification: 4.0.0
  - user_ldap: 1.21.0
  - user_status: 1.10.0 (installed 1.10.0)
  - weather_status: 1.10.0 (installed 1.10.0)

I’ve gone over the other threads on troubleshooting this, but the issue persists - I’m not sure what I am missing or where to look next to troubleshoot. If anyone has guidance on what to look at, or what information to provide, I would appreciate it.

Thank you!

Hi, can you follow How to debug problems with Collabora and/or Talk · nextcloud/all-in-one · Discussion #1358 · GitHub?

Thank you. /etc/hosts does not include cloud.aiskon.net, although it does include its own hostname (truenas.aiskon.net)

Tried adding the ,0.0.0.0/0 and no change. Here’s the output of the commands:

<wopi-discovery>
    <net-zone name="external-http">

        <!-- Writer documents -->
        <app favIconUrl="https://cloud.aiskon.net/browser/9f2e55c/images/x-office-document.svg" name="writer">
            <action default="true" ext="sxw" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="odt" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fodt" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Text template documents -->
            <action default="true" ext="stw" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="ott" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- MS Word -->
            <action default="true" ext="doc" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="dot" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- OOXML wordprocessing -->
            <action default="true" ext="docx" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="docm" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="dotx" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="dotm" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="wpd" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="pdb" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="hwp" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wps" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wri" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="lrf" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="mw" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="rtf" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="txt" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fb2" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="cwk" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="pages" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="abw" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="602" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <app name="writer-global">
            <!-- Text master documents -->
            <action default="true" ext="sxg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="odm" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Writer master document templates -->
            <action default="true" ext="otm" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <app name="writer-web">
            <action default="true" ext="oth" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Calc documents -->
        <app favIconUrl="https://cloud.aiskon.net/browser/9f2e55c/images/x-office-spreadsheet.svg" name="calc">
            <action default="true" ext="sxc" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="ods" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fods" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Spreadsheet template documents -->
            <action default="true" ext="stc" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="ots" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- MS Excel -->
            <action default="true" ext="xls" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xla" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- OOXML spreadsheet -->
            <action default="true" ext="xltx" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xltm" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xlsx" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xlsb" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xlsm" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="dif" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="slk" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="csv" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="tsv" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="dbf" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wk1" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wks" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="xlr" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="123" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="qpw" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wb1" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wq1" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wq2" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="gnumeric" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="numbers" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Impress documents -->
        <app favIconUrl="https://cloud.aiskon.net/browser/9f2e55c/images/x-office-presentation.svg" name="impress">
            <action default="true" ext="sxi" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="odp" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fodp" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Presentation template documents -->
            <action default="true" ext="sti" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="otp" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- MS PowerPoint -->
            <action default="true" ext="ppt" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="pot" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- OOXML presentation -->
            <action default="true" ext="pptx" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="pptm" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="potx" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="potm" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="ppsx" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Others -->
            <action default="true" ext="cgm" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="key" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Draw documents -->
        <app name="draw">
            <action default="true" ext="sxd" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="odg" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fodg" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Drawing template documents -->
            <action default="true" ext="std" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="otg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <!-- Others -->
            <action ext="svg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="dxf" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="emf" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wmf" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="cdr" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="vsd" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="vsdx" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="vss" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="pub" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="p65" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="wpg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action default="true" ext="fh" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="bmp" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="png" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="gif" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="tiff" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="jpg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="jpeg" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
            <action ext="pdf" name="view_comment" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Math documents -->
        <!-- In fact Math documents are not supported at all.
             See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
        <app name="math">
            <action name="view" default="true" ext="sxm"/>
            <action name="edit" default="true" ext="odf"/>
        </app>
        -->

        <!-- Legacy MIME-type actions (compatibility) -->

        <app name="image/svg+xml">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Writer documents -->
        <app name="application/vnd.sun.xml.writer">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Calc documents -->
        <app name="application/vnd.sun.xml.calc">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Impress documents -->
        <app name="application/vnd.sun.xml.impress">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Draw documents -->
        <app name="application/vnd.sun.xml.draw">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics-flat-xml">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Chart documents -->
        <app name="application/vnd.oasis.opendocument.chart">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Text master documents -->
        <app name="application/vnd.sun.xml.writer.global">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-master">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Math documents -->
        <!-- In fact Math documents are not supported at all.
             See: https://bugs.documentfoundation.org/show_bug.cgi?id=97006
        <app name="application/vnd.sun.xml.math">
            <action name="view" default="true" ext=""/>
        </app>
        <app name="application/vnd.oasis.opendocument.formula">
            <action name="edit" default="true" ext=""/>
        </app>
        -->
        <!-- Text template documents -->
        <app name="application/vnd.sun.xml.writer.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Writer master document templates -->
        <app name="application/vnd.oasis.opendocument.text-master-template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Spreadsheet template documents -->
        <app name="application/vnd.sun.xml.calc.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.spreadsheet-template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Presentation template documents -->
        <app name="application/vnd.sun.xml.impress.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.presentation-template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Drawing template documents -->
        <app name="application/vnd.sun.xml.draw.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.graphics-template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- MS Word -->
        <app name="application/msword">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/msword">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- MS Excel -->
        <app name="application/vnd.ms-excel">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- MS PowerPoint -->
        <app name="application/vnd.ms-powerpoint">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- OOXML wordprocessing -->
        <app name="application/vnd.openxmlformats-officedocument.wordprocessingml.document">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-word.document.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.wordprocessingml.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-word.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- OOXML spreadsheet -->
        <app name="application/vnd.openxmlformats-officedocument.spreadsheetml.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.sheet.binary.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-excel.sheet.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- OOXML presentation -->
        <app name="application/vnd.openxmlformats-officedocument.presentationml.presentation">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint.presentation.macroEnabled.12">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.presentationml.template">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-powerpoint.template.macroEnabled.12">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- Others -->
        <app name="application/vnd.wordperfect">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-aportisdoc">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-hwp">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-works">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-office">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-mswrite">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-dif-document">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="text/spreadsheet">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="text/csv">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-dbase">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.lotus-1-2-3">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/cgm">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/vnd.dxf">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/x-emf">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/x-wmf">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/coreldraw">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.visio2013">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.visio">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.ms-visio.drawing">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-mspublisher">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-sony-bbeb">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-gnumeric">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/macwriteii">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-iwork-numbers-sffnumbers">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.oasis.opendocument.text-web">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-pagemaker">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="text/rtf">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="text/plain">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-fictionbook+xml">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/clarisworks">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/x-wpg">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-iwork-pages-sffpages">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.openxmlformats-officedocument.presentationml.slideshow">
            <action default="true" ext="" name="edit" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-iwork-keynote-sffkey">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-abiword">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/x-freehand">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/vnd.sun.xml.chart">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/x-t602">
            <action default="true" ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/bmp">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/png">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/gif">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/tiff">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/jpg">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="image/jpeg">
            <action ext="" name="view" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>
        <app name="application/pdf">
            <action ext="" name="view_comment" urlsrc="https://cloud.aiskon.net/browser/9f2e55c/cool.html?"/>
        </app>

        <!-- End of legacy MIME-type actions -->

        <app name="Capabilities">
            <action ext="" name="getinfo" urlsrc="https://cloud.aiskon.net/hosting/capabilities"/>
        </app>
    </net-zone>
</wopi-discovery>

Including my Apache config as well:

ServerName cloud.aiskon.net
ServerAlias www.cloud.aiskon.net
ServerAlias mail.cloud.aiskon.net
ServerAlias webmail.cloud.aiskon.net
ServerAlias admin.cloud.aiskon.net
DocumentRoot /home/aiskon/domains/cloud.aiskon.net/public_html
ErrorLog /var/log/virtualmin/cloud.aiskon.net_error_log
CustomLog /var/log/virtualmin/cloud.aiskon.net_access_log combined
DirectoryIndex index.php index.php4 index.php5 index.htm index.html
<Directory /home/aiskon/domains/cloud.aiskon.net/public_html>
    Options -Indexes +IncludesNOEXEC +SymLinksIfOwnerMatch 
    Require all granted
    AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
</Directory>
<Directory /home/aiskon/domains/cloud.aiskon.net/cgi-bin>
    Require all granted
    AllowOverride All Options=ExecCGI,Includes,IncludesNOEXEC,Indexes,MultiViews,SymLinksIfOwnerMatch
    SetHandler proxy:unix:/var/fcgiwrap/173067727966765.sock/socket|fcgi://localhost
    ProxyFCGIBackendType GENERIC
</Directory>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} =webmail.cloud.aiskon.net
RewriteRule ^/(?!.well-known)(.*)$ https://cloud.aiskon.net:20000/ [R]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} =admin.cloud.aiskon.net
RewriteRule ^/(?!.well-known)(.*)$ https://cloud.aiskon.net:10000/ [R]
ScriptAlias /cgi-bin/ /home/aiskon/domains/cloud.aiskon.net/cgi-bin/
RemoveHandler .php
RemoveHandler .php7.4
RemoveHandler .php8.0
RemoveHandler .php8.3
<FilesMatch \.php$>
    SetHandler proxy:unix:/run/php-fpm/173067727966765.sock|fcgi://127.0.0.1
</FilesMatch>
SSLEngine on
SSLCertificateFile /etc/ssl/virtualmin/1684940163240537/ssl.combined
SSLCertificateKeyFile /etc/ssl/virtualmin/1684940163240537/ssl.key
SSLCACertificateFile /etc/ssl/virtualmin/1684940163240537/ssl.ca
SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1
SSLHonorCipherOrder     off
SSLSessionTickets       off
ProxyPass / http://10.0.0.253:11000/ nocanon
ProxyPassReverse / http://10.0.0.253:11000/
ProxyPreserveHost On
RequestHeader set X-Real-IP %{REMOTE_ADDR}s
AllowEncodedSlashes NoDecode
RewriteCond %{HTTP:UPGRADE} ^WebSocket$ [NC]
RewriteCond %{HTTP:CONNECTION} ^Upgrade$ [NC]
RewriteCond %{THE_REQUEST} "^[a-zA-Z]+ /(.*) HTTP/\d+(\.\d+)?$"
RewriteRule ^/?(.*) "ws://10.0.0.253:11000/$1" [P,L,UnsafeAllow3F]
Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains"
# Disable HTTP TRACE method.
TraceEnable off
<Files ".ht*">
    Require all denied
</Files>
# Support big file uploads
LimitRequestBody 0
Timeout 86400
ProxyTimeout 86400

Hi, can you make sure that the condig matches this one? all-in-one/reverse-proxy.md at main · nextcloud/all-in-one · GitHub

Updated Apache config - unfortunately, the error is still happening.

<VirtualHost *:443>
    ServerName cloud.aiskon.net

    # Reverse proxy based on https://httpd.apache.org/docs/current/mod/mod_proxy_wstunnel.html
    RewriteEngine On
    ProxyPreserveHost On
    RequestHeader set X-Real-IP %{REMOTE_ADDR}s
    AllowEncodedSlashes NoDecode
    
    ProxyPass / http://10.0.0.253:11000/ nocanon
    ProxyPassReverse / http://10.0.0.253:11000/
    
    RewriteCond %{HTTP:Upgrade} websocket [NC]
    RewriteCond %{HTTP:Connection} upgrade [NC]
    RewriteCond %{THE_REQUEST} "^[a-zA-Z]+ /(.*) HTTP/\d+(\.\d+)?$"
    RewriteRule .? "ws://localhost:11000/%1" [P,L,UnsafeAllow3F]

    # Enable h2, h2c and http1.1
    Protocols h2 h2c http/1.1
    
    # Solves slow upload speeds caused by http2
    H2WindowSize 5242880

    # TLS
    SSLEngine               on
    SSLProtocol             -all +TLSv1.2 +TLSv1.3
    SSLCipherSuite          ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
    SSLHonorCipherOrder     off
    SSLSessionTickets       off

    # If running apache on a subdomain (eg. nextcloud.example.com) of a domain that already has an wildcard ssl certificate from certbot on this machine, 
    # the <your-nc-domain> in the below lines should be replaced with just the domain (eg. example.com), not the subdomain. 
    # In this case the subdomain should already be secured without additional actions
    SSLCertificateFile /etc/ssl/virtualmin/1684940163240537/ssl.combined
    SSLCertificateKeyFile /etc/ssl/virtualmin/1684940163240537/ssl.key
    SSLCACertificateFile /etc/ssl/virtualmin/1684940163240537/ssl.ca

    # Disable HTTP TRACE method.
    TraceEnable off
    <Files ".ht*">
        Require all denied
    </Files>

    # Support big file uploads
    LimitRequestBody 0
    Timeout 86400
    ProxyTimeout 86400
</VirtualHost>

I got it! I missed a “localhost” that I needed to change to 10.0.0.253 - once I did this, it worked.

Thank you!

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