nextcloud / nextcloud/spreed

[Bug] Error "Lost connection to signaling server. Trying to reconnect." on signaling timeout

Open
#17,545 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug feature: signaling 📶 needs info
Dominant language
JavaScript
Stars
2.2k
Forks
586
Avg merge
18h 27m
Merged PRs (30d)
333

Description

[!TIP]

How to use GitHub
  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Open conversation in Talk
  2. Wait
Expected behaviour

Not much

Actual behaviour

The following error is shown:

Lost connection to signaling server. Trying to reconnect.

Image

Talk app

Talk app version: 22.0.10

Custom Signaling server configured: no

Custom TURN server configured: yes, tried it without

Custom STUN server configured: yes, tried it without

Browser

Microphone available: yes

Camera available: yes

Operating system: macOS

Browser name: Zen

Browser version: 1.19.5b (Firefox 149.0) (aarch64)

Browser log

In the network log the URL /ocs/v2.php/apps/spreed/api/v3/signaling/$ROOM_ID is called repeatedly.
The first time the response is without issues and contains JSON.
All subsequent requests contain this:

<html><body><h1>504 Gateway Time-out</h1>
The server didn't respond in time.
</body></html>

The only difference I could find is the Header TE: trailers.

Server configuration

Operating system: Debian

Web server: Apache with Caddy Reverse Proxy in front

Database: MariaDB

PHP version: 8.3.30

Nextcloud Version: 32.0.7

List of activated apps:

Enabled:
  - activity: 5.0.0
  - admin_audit: 1.22.0
  - announcementbanner: 2.4.2
  - announcementcenter: 7.3.0
  - bruteforcesettings: 5.0.0
  - calendar: 6.2.1
  - camerarawpreviews: 0.8.8
  - checksum: 2.0.3
  - circles: 32.0.0
  - cloud_federation_api: 1.16.0
  - collectives: 4.2.0
  - comments: 1.22.0
  - contacts: 8.3.6
  - cospend: 3.2.0
  - dashboard: 7.12.0
  - data_request: 4.0.1
  - dav: 1.34.2
  - deck: 1.16.3
  - drawio: 4.1.4
  - event_update_notification: 2.8.0
  - federatedfilesharing: 1.22.0
  - federation: 1.22.0
  - files: 2.4.0
  - files_accesscontrol: 3.0.2
  - files_downloadlimit: 5.0.0-dev.0
  - files_linkeditor: 1.1.24
  - files_pdfviewer: 5.0.0
  - files_reminders: 1.5.0
  - files_sharing: 1.24.1
  - files_trashbin: 1.22.0
  - files_versions: 1.25.0
  - forms: 5.2.5
  - groupfolders: 20.1.12
  - impersonate: 3.0.1
  - integration_google: 4.3.0
  - jsloader: 2.0.0
  - keeweb: 0.6.22
  - logreader: 5.0.0
  - lookup_server_connector: 1.20.0
  - mail: 5.7.5
  - metadata: 0.23.0
  - nextcloud_announcements: 4.0.0
  - notes: 4.13.1
  - notifications: 5.0.0
  - notify_push: 1.3.1
  - oauth2: 1.20.0
  - password_policy: 4.0.0
  - passwords: 2026.3.20
  - passwords_handbook: 2026.3.20
  - photos: 5.0.0
  - polls: 8.6.3
  - privacy: 4.0.0
  - profile: 1.1.0
  - provisioning_api: 1.22.0
  - quota_warning: 1.23.0
  - recommendations: 5.0.0
  - registration: 2.9.0
  - related_resources: 3.0.0
  - richdocuments: 9.0.5
  - serverinfo: 4.0.0
  - settings: 1.15.1
  - sharebymail: 1.22.0
  - spreed: 22.0.10
  - suspicious_login: 10.0.0
  - tasks: 0.17.1
  - text: 6.0.1
  - theming: 2.7.0
  - theming_customcss: 1.20.0
  - twofactor_admin: 4.11.1
  - twofactor_backupcodes: 1.21.0
  - twofactor_email: 2.8.5
  - twofactor_nextcloud_notification: 6.0.0
  - twofactor_totp: 14.0.0
  - twofactor_webauthn: 2.6.0
  - updatenotification: 1.22.0
  - user_migration: 10.1.0
  - user_retention: 1.16.0
  - user_usage_report: 3.0.0
  - viewer: 5.0.0
  - weather_status: 1.12.0
  - welcome: 1.4.0
  - workflowengine: 2.14.0
Disabled:
  - app_api: 32.0.0 (installed 32.0.0)
  - audioplayer: 3.8.0 (installed 3.8.0)
  - bookmarks: 16.1.3 (installed 16.1.3)
  - contactsinteraction: 1.13.1 (installed 1.9.0)
  - encryption: 2.20.0 (installed 2.16.0)
  - files_external: 1.24.1 (installed 1.19.0)
  - files_photospheres: 1.32.0 (installed 1.32.0)
  - firstrunwizard: 5.0.0 (installed 4.0.0)
  - google_synchronization: 4.1.0 (installed 4.1.0)
  - group_everyone: 0.1.19 (installed 0.1.19)
  - integration_discourse: 3.2.0 (installed 3.2.0)
  - integration_mattermost: 2.1.1 (installed 2.1.1)
  - issuetemplate: 0.7.0 (installed 0.7.0)
  - maps: 1.6.0 (installed 1.6.0)
  - sentry: 8.18.1 (installed 8.18.1)
  - sharelisting: 1.3.0 (installed 1.3.0)
  - support: 4.0.0 (installed 1.10.0)
  - survey_client: 4.0.0 (installed 2.0.0)
  - systemtags: 1.22.0 (installed 1.17.0)
  - thesearchpage: 2.1.2 (installed 2.1.2)
  - user_ldap: 1.23.0 (installed 1.17.0)
  - user_status: 1.12.0 (installed 1.8.1)
  - webhook_listeners: 1.3.0 (installed 1.1.0-dev)

Nextcloud configuration:

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "example.com",
            "cloud.example.com"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "version": "32.0.7.1",
        "dbtype": "mysql",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 104857600,
        "overwrite.cli.url": "https:\/\/cloud.freiheitswolke.org\/",
        "skeletondirectory": "",
        "auth.bruteforce.protection.enabled": true,
        "check_for_working_webdav": true,
        "maintenance": false,
        "loglevel": 0,
        "debug": false,
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "filelocking.enabled": true,
        "filelocking.ttl": 3600,
        "filelocking.debug": false,
        "updater.release.channel": "stable",
        "mysql.utf8mb4": true,
        "theme": "",
        "sentry.dsn": "***REMOVED SENSITIVE VALUE***",
        "sentry.public-dsn": "***REMOVED SENSITIVE VALUE***",
        "sentry.csp-report-url": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "auto,30",
        "versions_retention_obligation": "auto,180",
        "activity_expire_days": 180,
        "sentry.minimum.log.level": 3,
        "enabledPreviewProviders": [
            "OC\\Preview\\BMP",
            "OC\\Preview\\GIF",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\Krita",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\MP3",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\PNG",
            "OC\\Preview\\TXT",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\Imaginary"
        ],
        "preview_format": "webp",
        "encryption.legacy_format_support": false,
        "htaccess.RewriteBase": "\/",
        "htaccess.IgnoreFrontController": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "overwriteprotocol": "https",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "password": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "default_phone_region": "DE",
        "data-fingerprint": "0a71252cc297829dce9353d8d0677157",
        "maintenance_window_start": 1,
        "preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
        "config_is_read_only": false,
        "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "session_lifetime": 86400,
        "remember_login_cookie_lifetime": 1296000,
        "session_keepalive": true,
        "enable_email": false,
        "defaultapp": "dashboard,activity,announcementcenter,files,photos,collectives,notes,contacts,calendar,deck,tasks,mail,forms,polls,keeweb,passwords,cospend",
        "reference_opengraph": false,
        "forbidden_filename_characters": [
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            ".filepart",
            ".part"
        ],
        "mail_smtpmode": "smtp",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtpsecure": "ssl",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtptimeout": 10,
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "files.chunked_upload.max_size": 104857600
    }
}
Server log (data/nextcloud.log)

The only related logs I could find where these:

{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"serverDI","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\IServerContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"serverDI"}}
{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"serverDI","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\IServerContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"serverDI"}}
{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"serverDI","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\IServerContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"serverDI"}}
{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"dav","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\AppFramework\\IAppContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"dav"}}
{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"dav","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\AppFramework\\IAppContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"dav"}}
{"reqId":"OFMp31ehfvcgAgMgax5P","level":0,"time":"2026-03-30T01:33:49+02:00","remoteAddr":"***REMOVED SENSITIVE VALUE***","user":"***REMOVED SENSITIVE VALUE***","app":"serverDI","method":"GET","url":"/ocs/v2.php/apps/spreed/api/v3/signaling/xwk4rtgj","scriptName":"/ocs/v2.php","message":"The requested alias \"OCP\\IServerContainer\" is deprecated. Please request \"Psr\\Container\\ContainerInterface\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:149.0) Gecko/20100101 Firefox/149.0","version":"32.0.7.1","data":{"app":"serverDI"}}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue in the Talk conversation and inspect repeated requests to /ocs/v2.php/apps/spreed/api/v3/signaling/$ROOM_ID. Compare the successful first response with later 504 responses, including the TE: trailers header, through the Apache and Caddy setup. Done means the signaling connection no longer reports a timeout under the reported conditions.

Written by the indexing model from the issue text.

Assessment

Tech stack
apache, javascript, mariadb, php
Domain
api, backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.