HPB - WebSocket Connection Failed

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.2
  • Operating system and version (e.g., Ubuntu 24.04):
    • Ubuntu 24.04
  • Web server and version (e.g, Apache 2.4.25):
    • apache 2.4.58-1ubuntu8.5
  • PHP version (e.g, 8.3):
    • 8.3
  • Is this the first time you’ve seen this error? (Yes / No):
    • YES - With upgrade from 30 to NC31
  • When did this problem seem to first start?
    • When I try to enable my HPB
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

With Upgrade to NC 31 (with NC 30 all worked) I get the error that the WebSocket Connections failed when my HPB is configured
2025-03-21_16-04

When I check the browser console I find following:

  • Talk/Spreed Browser and Linux Talk Client still working
  • Mobil Client IOS - Error Message that I have to update the App

When I remove the HPB url from the configuration all working normal.
With upgrade to NC31 I have this behavior. Nothing changed on my hpb server (2.0.2)

Someone have an idea whats could be wrong?

Log entries

Nextcloud

Could not find any related issues in the log. Also not mit Loglevel 0

Web Browser

Arch Brave and Chromium

Web server / Reverse Proxy

192.168.12.100 - - [21/Mar/2025:16:15:56 +0100] "GET /ocs/v2.php/apps/spreed/api/v3/signaling/welcome/0 HTTP/2.0" 200 624 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
192.168.12.100 - - [21/Mar/2025:16:15:56 +0100] "GET /ocs/v2.php/apps/spreed/api/v3/signaling/settings?token= HTTP/2.0" 403 154 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"

Configuration

Nextcloud

{
    "system": {
        "default_language": "de",
        "default_locale": "de_DE",
        "default_phone_region": "DE",
        "htaccess.RewriteBase": "\/",
        "localstorage.umask": 23,
        "upgrade.disable-web": true,
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "******",
            "localhost",
            "******"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "pgsql",
        "version": "31.0.2.1",
        "overwrite.cli.url": "https:\/\/******",
        "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***",
        "log_type": "file",
        "logfile": "\/app\/logs\/nextcloud.log",
        "loglevel": 3,
        "log.condition": {
            "apps": [
                "admin_audit"
            ]
        },
        "mail_smtpmode": "smtp",
        "remember_login_cookie_lifetime": "2592000",
        "session_lifetime": "86400",
        "log_rotate_size": "10485760",
        "trashbin_retention_obligation": "auto, 60",
        "versions_retention_obligation": "auto, 180",
        "activity_expire_days": "120",
        "simpleSignUpLink.shown": false,
        "memcache.local": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": true,
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "dbindex": 0,
            "timeout": 0.5,
            "password": "***REMOVED SENSITIVE VALUE***"
        },
        "mail_smtpsecure": "ssl",
        "mail_sendmailmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": 1,
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "app_install_overwrite": [
            "files_3d",
            "news",
            "camerarawpreviews",
            "ncdownloader",
            "files_pdfviewer",
            "unsplash",
            "radio",
            "files_trackdownloads",
            "files_downloadactivity"
        ],
        "preview_concurrency_new": "4",
        "preview_concurrency_all": "8",
        "enabledPreviewProviders": [
            "OC\\Preview\\Imaginary",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\MP3",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\Krita",
            "OC\\Preview\\Illustrator",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\Movie",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOffice2007",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\PDF",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Font",
            "OC\\Preview\\PNG",
            "OC\\Preview\\ImaginaryPDF"
        ],
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "jpeg_quality": 80,
        "preview_max_memory": "256",
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [
            "******",
            "******"
        ],
        "memories.exiftool": "\/app\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/app\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "theme": "",
        "memories.db.triggers.fcu": true,
        "maintenance_window_start": 2,
        "files.chunked_upload.max_size": 104857600
    }
}

Small update.
Requested a test HPB from Struktur AG. Same behavior

The message says „Cannot use talk“, so I assume that you restricted talk to certain groups and you’re not part of any of that group. Check admin->talk settings

@SysKeeper Thanks for your reply.
Was the right hint.
I not expected that the group admin has to be added to the allow group for talk.
Was also not the behavior before (<NC31)
Makes no sense for me, that a configuration which only a user with admin privileges can edit is not allowed to verify it.

Nevertheless the connect working and expect that the failed “test” was only the permission topic.
image

But still have the problem, that my IOS Client comes up with the message that the app have to be updated (app to old) as soon the HPB configuration is in place.
The Client(s) already on the latest available Version (21.0.0). 21.0.1 not available in the app store till now.

Can you check if Nextcloud Talk ios outdated helps you?

Yes, the new encryption option was the problem. I never activated it but simply to activate and deactivate it, solved the problem.

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