Failed to establish signaling connection. Retrying …

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.

In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:

example

Or for longer, use three backticks above and below the code snippet:

longer
example
here

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:

Some useful links to gather information about your Nextcloud Talk installation:
Information about Signaling server: /index.php/index.php/settings/admin/talk#signaling_server
Information about TURN server: /index.php/settings/admin/talk#turn_server
Information about STUN server: /index.php/settings/admin/talk#stun_server

Nextcloud version (eg, 24.0.1): 24.0.1
Talk Server version (eg, 14.0.2): 14.0.2
Custom Signaling server configured: yes/no and version
Custom TURN server configured: yes/no
Custom STUN server configured: yes/no

In case the web version of Nextcloud Talk is involved:
Operating system (eg, Windows/Ubuntu/…): windows
Browser name and version (eg, Chrome v101): `chrome’

In case mobile Nextcloud Talk apps are involved:
Talk iOS version (eg, 14.0.2): replace me
Talk Android version (eg, 14.0.2): replace me

The issue you are facing:
Try to connect to the HPB server, it shows cannot connect to the server

Is this the first time you’ve seen this error? (Y/N):Y

Steps to replicate it:

The output of your Nextcloud log in Admin > Logging or errors in nextcloud.log in /var/www/:

Warning	fulltextsearch_elasticsearch	debug - request: {"providers":["all"],"author":"admin","search":"ta","empty_search":false,"page":1,"size":5,"parts":[],"queries":[],"options":[],"metatags":[],"subtags":[],"tags":[]} - query: {"params":{"index":"index","size":5,"from":0,"body":{"query":{"bool":{"must":{"bool":{"should":[{"match_phrase_prefix":{"content":"ta"}},{"match_phrase_prefix":{"title":"ta"}}]}},"filter":[{"bool":{"must":{"term":{"provider":"deck"}}}},{"bool":{"should":[{"term":{"owner":"admin"}},{"term":{"users":"admin"}},{"term":{"users":"__all"}},{"term":{"groups":"admin"}}]}},{"bool":{"should":[]}},{"bool":{"must":[]}},{"bool":{"must":[]}}]}},"highlight":{"fields":{"content":{}},"pre_tags":[""],"post_tags":[""]}}}}		2022-07-28T12:29:50+0200
Warning	fulltextsearch_elasticsearch	debug - request: {"providers":["all"],"author":"admin","search":"tal","empty_search":false,"page":1,"size":5,"parts":[],"queries":[],"options":[],"metatags":[],"subtags":[],"tags":[]} - query: {"params":{"index":"index","size":5,"from":0,"body":{"query":{"bool":{"must":{"bool":{"should":[{"match_phrase_prefix":{"content":"tal"}},{"match_phrase_prefix":{"title":"tal"}}]}},"filter":[{"bool":{"must":{"term":{"provider":"deck"}}}},{"bool":{"should":[{"term":{"owner":"admin"}},{"term":{"users":"admin"}},{"term":{"users":"__all"}},{"term":{"groups":"admin"}}]}},{"bool":{"should":[]}},{"bool":{"must":[]}},{"bool":{"must":[]}}]}},"highlight":{"fields":{"content":{}},"pre_tags":[""],"post_tags":[""]}}}}		2022-07-28T12:20:40+0200
Warning	fulltextsearch_elasticsearch	debug - request: {"providers":["all"],"author":"admin","search":"ta","empty_search":false,"page":1,"size":5,"parts":[],"queries":[],"options":[],"metatags":[],"subtags":[],"tags":[]} - query: {"params":{"index":"index","size":5,"from":0,"body":{"query":{"bool":{"must":{"bool":{"should":[{"match_phrase_prefix":{"content":"ta"}},{"match_phrase_prefix":{"title":"ta"}}]}},"filter":[{"bool":{"must":{"term":{"provider":"deck"}}}},{"bool":{"should":[{"term":{"owner":"admin"}},{"term":{"users":"admin"}},{"term":{"users":"__all"}},{"term":{"groups":"admin"}}]}},{"bool":{"should":[]}},{"bool":{"must":[]}},{"bool":{"must":[]}}]}},"highlight":{"fields":{"content":{}},"pre_tags":[""],"post_tags":[""]}}}}		2022-07-28T12:20:38+0200
Error	PHP	Error: Undefined array key 2 at /var/www/nextcloud/apps/fulltextsearch_elasticsearch/lib/Platform/ElasticSearchPlatform.php#287		2022-07-28T12:19:28+0200
Error	PHP	Error: Undefined array key 2 at /var/www/nextcloud/apps/fulltextsearch_elasticsearch/lib/Platform/ElasticSearchPlatform.php#287		2022-07-28T12:19:28+0200
Warning	no app in context	Host 10.x.x.x was not connected to because it violates local access rules		2022-07-28T12:19:09+0200
Warning	no app in context	Host 10.x.x.x was not connected to because it violates local access rules		2022-07-28T12:19:09+0200
Warning	no app in context	Host 10.x.x.x was not connected to because it violates local access rules		2022-07-28T12:19:09+0200
Warning	no app in context	Host 10.x.x.x. was not connected to because it violates local access rules		2022-07-28T12:19:08+0200
Warning	no app in context	Host 10.x.x.x was not connected to because it violates local access rules

The output of your Apache/nginx/system log in /var/log/____: Apache
[Thu Jul 28 00:00:05.413119 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 00:00:05.413181 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 01:54:34.549954 2022] [proxy:error] [pid 95279] (70014)End of file found: [client 154.73.30.109:50002] AH03307: ap_proxy_transfer_between_connections: error on origin - ap_pass_brigade
[Thu Jul 28 01:54:34.550224 2022] [proxy:error] [pid 95279] [client 154.73.30.109:50002] AH10221: proxy: websocket: client flushing failed (-102)
[Thu Jul 28 02:11:17.955431 2022] [php:error] [pid 95279] [client 185.7.214.104:46360] script ‘/var/www/html/index.php’ not found or unable to stat
[Thu Jul 28 11:32:10.030398 2022] [mpm_prefork:notice] [pid 90484] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 11:32:10.839857 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:32:10.839904 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:33:14.923508 2022] [mpm_prefork:notice] [pid 90484] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 11:33:15.273342 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:33:15.273379 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:33:20.267334 2022] [mpm_prefork:notice] [pid 90484] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 11:33:20.518977 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:33:20.518998 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:33:24.337190 2022] [mpm_prefork:notice] [pid 90484] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 11:33:24.646506 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:33:24.646526 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:33:25.831086 2022] [mpm_prefork:notice] [pid 90484] AH00171: Graceful restart requested, doing restart
[Thu Jul 28 11:33:26.127015 2022] [mpm_prefork:notice] [pid 90484] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:33:26.127045 2022] [core:notice] [pid 90484] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:35:01.721036 2022] [authz_core:error] [pid 131156] [client 68.183.75.40:45752] AH01630: client denied by server configuration: /var/www/html/server-status
[Thu Jul 28 11:35:01.755852 2022] [php:error] [pid 131143] [client 68.183.75.40:45766] script ‘/var/www/html/info.php’ not found or unable to stat
[Thu Jul 28 11:35:02.531554 2022] [authz_core:error] [pid 131327] [client 206.81.18.165:51758] AH01630: client denied by server configuration: /var/www/html/server-status
[Thu Jul 28 11:35:02.707043 2022] [php:error] [pid 131118] [client 206.81.18.165:51772] script ‘/var/www/html/info.php’ not found or unable to stat
[Thu Jul 28 11:36:24.152250 2022] [mpm_prefork:notice] [pid 90484] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jul 28 11:36:24.809233 2022] [mpm_prefork:notice] [pid 131384] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 11:36:24.809342 2022] [core:notice] [pid 131384] AH00094: Command line: ‘/usr/sbin/apache2’
[Thu Jul 28 11:43:23.224628 2022] [php:error] [pid 131423] [client 185.7.214.104:35966] script ‘/var/www/html/index.php’ not found or unable to stat
[Thu Jul 28 11:48:49.038111 2022] [php:error] [pid 131386] [client 159.223.193.4:44126] script ‘/var/www/html/system_api.php’ not found or unable to stat
[Thu Jul 28 11:48:49.951839 2022] [php:error] [pid 131392] [client 159.223.193.4:45278] script ‘/var/www/html/system_api.php’ not found or unable to stat
[Thu Jul 28 12:18:29.155862 2022] [mpm_prefork:notice] [pid 131384] AH00170: caught SIGWINCH, shutting down gracefully
[Thu Jul 28 12:18:29.748082 2022] [mpm_prefork:notice] [pid 132501] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured – resuming normal operations
[Thu Jul 28 12:18:29.748174 2022] [core:notice] [pid 132501] AH00094: Command line: ‘/usr/sbin/apache2’

Your browser log if relevant (javascript console log, network log, etc.):

PASTE HERE

This happens when you joining a room or in the admin section where you specify the connection details?

yes, but also the issue is that i’m getting Error: Cannot connect to server when try to connect my server in talk settings

Okay, so the error when joining a room is expected when the connection to the HPB fails. So that needs to work first (in the admin settings). Looks like the HPB is either not running or a connection between your nextcloud server and your HPB server. I’m not quite sure if there’s a separate error when the secret does not match, so please double check the secret is correct.

this is the error i get
Error: Cannot connect to server
and yes i double check the secret

I’m using reverse proxy and it on the same server as nextcloud, any idea what could be the issue?

How to test if spreed-signaling is working?, anyone can help!

please try the search:

The solution was to setup a certificate which then enables https, which I already did.
How to test if the spreed-signaling working or not so that I can exclude the apache reverse proxy effect.