Nextcloud talk high performance backend only works once any further calls do not connect both clients remain waiting for other

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:

Nextcloud version (eg, 20.0.5): 27.0.0
Operating system and version (eg, Ubuntu 20.04): 22.04
Apache or nginx version (eg, Apache 2.4.25): Nginx 1.24.0
PHP version (eg, 7.4): 8.2.7

The issue you are facing:
Talk allows one call i have to close browser / app on phone and try and call

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

Steps to replicate it:

  1. Make call and hang up
  2. make another call
  3. both callers remain on waiting for each other screen (andriod has beeps)

The output of your Nextcloud log in Admin > Logging: - nothing logged in error nextcloud side

PASTE HERE

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!): N/A

PASTE HERE

The output of your Apache/nginx/system log in /var/log/____: no errors logged here

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

tdjJEX0RERHY3R0NpN19tVWg5OXNEaDRLaWtHclU5MUtIZTBPXzJZX1JrMXFESk1XNDdLbzZhajJjSk54UXc3WEcwNXBwcTE5MGZIdnZJa09rfDE1MDU0ODg4NjE= has RTT of 358 ms (358.160891ms)
Jul 08 22:10:30 ubuntu signaling[1150]: client.go:284: Client from 92.27.138.96 has RTT of 186 ms (186.364725ms)
Jul 08 22:10:31 ubuntu signaling[1150]: client.go:282: Client zEt7rgmMVJMCG4shjCDZVTt1tXxTMcXg-zV0iNn8JuN8PTBmTnBpVWgtbkdtandjM2tMc2V5b3M0dnF3ZUpnMzk4U1IxdDBRRUtKUVpNVngtS2w2T3lFNVg5d2luZmZMUXRvcGhYckJDaE5EYWRHaTRibVRqLVEtdjJEX0RERHY3R0NpN19tVWg5OXNEaDRLaWtHclU5MUtIZTBPXzJZX1JrMXFESk1XNDdLbzZhajJjSk54UXc3WEcwNXBwcTE5MGZIdnZJa09rfDE1MDU0ODg4NjE= has RTT of 140 ms (140.892967ms)
Jul 08 22:10:31 ubuntu signaling[1150]: client.go:284: Client from 92.27.138.96 has RTT of 225 ms (225.365777ms)
Jul 08 22:10:31 ubuntu signaling[1150]: hub.go:740: Register user wayne@0001 from 92.27.138.96 in unknown-country (Mozilla/5.0 (Android) Nextcloud-Talk v17.0.1) JOe–JkyNXwX2wnPrk0PZYr3_Az-7x4_526pj1Cf4I58PThhT2p1NnVzTFJmZ3NpTTBEcHM0TlNVZzctcVZwZURoVHhIbkhtbHVmaVlnSlBVYy1jV2c2TlpxMzI1ZGhVYXV6WHpib0o2Ymp6Yl9BSVRtME9RSWhONUxjbmgxYTZwWE1kdWtKVXBlMFhIbGJTRkpBU3oyVjJfRTdyOXhrWVhFemJYdk1VWnN1U1RZS3JGUFhQRmZXZElxZ3p5SVYzandVWDRJTk5afDEzMjQ1ODg4NjE= (private=MTY4ODg1NDIzMXxURW9LV29FaWcxVWJOWG5fY0RWLTY2NUdVdS0yQ2owTzlUREZvbnBMNHAyV3lWZE51Tl9JcWNadXVadHdWbnNleWw0eWpIZnZiX1FUQlRNVGpSUURSQnZyaXd0dVVlM0labm5VMXpXbkltZHlPMFhQSTNNTHhVYkFEWHdiMHFiWXBWZnhKWVJRSjRkU0lfU2JULTlCcHJuel8yMXlFZXBVRFNpcXNHTT184X0REDsN0dVU59qLi7sbz7M1yfUCQtvhPQ42BNRzG7w=)
Jul 08 22:10:33 ubuntu signaling[1150]: client.go:303: Error reading from 92.27.138.96: read tcp 127.0.0.1:8080->127.0.0.1:35784: use of closed network connection

this seems to occur during the issue with the connection 
Signalling - config

[http]
listen = 127.0.0.1:8080

[https]
certificate = /etc/nginx/ssl/wh-computers.crt
key = /etc/nginx/ssl/wh-computers.key

[app]
debug = false

[sessions]
hashkey = my hash key

blockkey = my block key

[clients]
internalsecret = the-shared-secret-for-internal-clients ** this has not been set

[backend]

backends = 0001

allowall = false

timeout = 10

connectionsperhost = 8

[0001]
url = my nextcloud url

secret = nextcloud ui secret
[nats]
url = nats://localhost:4222

[mcu]
type = janus
url = ws://127.0.0.1:8188
[turn]
apikey = my api key

secret = my turn server secret

servers = My turn servers udp/tcp 3478 etc
[geoip-overrides]
[continent-overrides]
[stats]
[etcd]
[grpc]

turn server config

listening-port=3478
tls-listening-port=5349
cert=/etc/nginx/ssl/wh-computers.co.uk
pkey=/etc/nginx/ssl/wh-computers.key
fingerprint
use-auth-secret
static-auth-secret: my turn server secret
realm=rtc.wh-computers.co.uk
total-quota=100
bps-capacity=0
stale-nonce
no-multicast-peers
no-stdout-log
log-file=/var/log/coturn.log
syslog
simple-log

Janus Jcfg

interface ‘lo’
debug_level = 4
full_trickle = true
turn_rest_api_key = “my api key”

http.transport.jcfg - im unable to paste all of the config and the # so ive condensed 

interface lo
json = “indented” # Whether the JSON messages should be indented (default),
# plain (no indentation) or compact (no indentation and no spaces)
base_path = “/janus” # Base path to bind to in the web server (plain HTTP only)
http = true # Whether to enable the plain HTTP interface
port = 8088 # Web server HTTP port
interface = “lo”

transport.websockets
interface lo
ws = true # Whether to enable the WebSockets API
ws_port = 8188 # WebSockets server port
ws_interface = “lo”
wss = false
``
Coturn Status

Jul 08 17:35:29 ubuntu turnserver[583]: 0: : IO method (general relay thread): epoll (with changelist)
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : turn server id=0 created
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : IO method (general relay thread): epoll (with changelist)
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : turn server id=1 created
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : Total General servers: 2
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : IO method (auth thread): epoll (with changelist)
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : IO method (auth thread): epoll (with changelist)
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : IO method (admin thread): epoll (with changelist)
Jul 08 17:35:29 ubuntu turnserver[583]: 0: : SQLite DB connection success: /var/lib/turn/turndb
Jul 08 17:35:29 ubuntu systemd[1]: Started coTURN STUN/TURN Server.
signaling service 

mcu_janus.go:294: Connected to Janus WebRTC Server 1.1.4 by Meetecho s.r.l.
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:300: Found JANUS VideoRoom plugin 0.0.9 by Meetecho s.r.l.
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:305: Data channels are supported
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:309: Full-Trickle is enabled
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:311: Maximum bandwidth 1048576 bits/sec per publishing stream
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:312: Maximum bandwidth 2097152 bits/sec per screensharing stream
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:318: Created Janus session 2490700262625372
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:325: Created Janus handle 7771927885688715
Jul 08 22:51:32 ubuntu signaling[1150]: mcu_janus.go:251: Reconnection to Janus gateway successful

janus status 

Jul 08 22:53:43 ubuntu systemd[1]: Started Service for snap application janus-gateway.janus-gateway.
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Janus version: 1104 (1.1.4)
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Janus commit: f87538dbdd81c4d969770cef23566ed394eb8967
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Compiled on: Sun May 21 06:56:09 UTC 2023
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Logger plugins folder: /opt/janus/lib/janus/loggers
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] Couldn’t access logger plugins folder…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: ---------------------------------------------------
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Starting Meetecho Janus (WebRTC Server) v1.1.4
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: ---------------------------------------------------
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Checking command line arguments…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Debug/log level is 4
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Debug/log timestamps are disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Debug/log colors are disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Adding ‘vmnet’ to the ICE ignore list…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Using 74.208.204.218 as local IP…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Token based authentication disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Initializing recorder code
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Initializing ICE stuff (Full mode, ICE-TCP candidates disabled, full-trickle, IPv6 support disabled)
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: TURN REST API backend: (disabled)
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Crypto: OpenSSL >= 1.1.0
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: No cert/key specified, autogenerating some…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Fingerprint of our certificate: B9:D9:07:1B:92:BF:13:75:9A:0B:43:D7:F5:E4:F3:50:5D:9F:AE:21:26:F9:1C:1A:2B:D0:11:49:5B:35:82:CF
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Event handlers support disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Plugins folder: /opt/janus/lib/janus/plugins
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_audiobridge.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Sessions watchdog started
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Joining Janus requests handler thread
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS AudioBridge plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_echotest.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS EchoTest plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_nosip.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS NoSIP plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_recordplay.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS Record&Play plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_sip.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS SIP plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_streaming.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS Streaming plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_textroom.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS TextRoom plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_videocall.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS VideoCall plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading plugin ‘libjanus_videoroom.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS VideoRoom plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Transport plugins folder: /opt/janus/lib/janus/transports
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading transport plugin ‘libjanus_http.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: HTTP transport timer started
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: HTTP webserver started (port 8088, /janus path listener)…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS REST (HTTP/HTTPS) transport plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading transport plugin ‘libjanus_mqtt.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: MQTT SSL support disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] MQTT support disabled for both Janus and Admin API, giving up
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS MQTT transport plugin destroyed!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] The ‘janus.transport.mqtt’ plugin could not be initialized
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading transport plugin ‘libjanus_pfunix.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] No Unix Sockets server started, giving up…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] The ‘janus.transport.pfunix’ plugin could not be initialized
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading transport plugin ‘libjanus_rabbitmq.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: RabbitMQ SSL support disabled
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] RabbitMQ support disabled for both Janus and Admin API, giving up
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] The ‘janus.transport.rabbitmq’ plugin could not be initialized
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Loading transport plugin ‘libjanus_websockets.so’…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: [WARN] libwebsockets has been built without IPv6 support, will bind to IPv4 only
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: libwebsockets logging: 0
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: Websockets server started (port 8188)…
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: JANUS WebSockets transport plugin initialized!
Jul 08 22:53:43 ubuntu janus-gateway.janus-gateway[1769]: WebSockets thread started
Jul 08 22:53:44 ubuntu janus-gateway.janus-gateway[1769]: Creating new session: 2363319609241197; 0x7f95e8004550
Jul 08 22:53:44 ubuntu janus-gateway.janus-gateway[1769]: Creating new handle in session 2363319609241197: 1920618186178629; 0x7f95e8004550 0x7f95e8002f60

how can we increase realiability of the server? any help would be appreciated
many thanks
extra: 
Nextcloud running behind NAT -
High performance backend on a public VPS 
 
Jul 08 22:46:09 ubuntu signaling[1150]: client.go:303: Error reading from 92.27.138.96: read tcp 127.0.0.1:8080->127.0.0.1:40890: use of closed network connection --  ??

further testing :

RLNWFXTGg4Sl83WXh0VXFKdnhYNm9hNHdmam45SHZzY2twNm80MGdnMTFlLVRlNnBKOE4yUEx8NzkyOTM5ODg2MQ== left call 77j45iw7
Jul 09 22:54:09 turn signaling[182714]: client.go:301: Error reading from client cBvO75Vt-NrR_3L5qhn_2mMZ_vsjBK1k_bu_5dRBAFV8PT13TmFwakU1UW04UFVENDNudTZ3VFVCQXgwdG1mR21kYVZxdTFKYkd6U19QN2NMLXROQmlqN1A4TFNjYmFqTkVIWlNnTE9oZWhJOWpYVXhiV3ZERW9oNXpkOXFBSWtuSDZFWGNXNEpDZ0VDZGFkSzRJTFdCZGYwMHkxSFBnQlhIYWxFWk1FSlpxWE0zTVF0ak5lQnNoMWFjcWkxZ25jNE1DQUFqTFVyUFJNTEt1c0d8MTc1OTM5ODg2MQ==: read tcp 127.0.0.1:8080->127.0.0.1:59570: use of closed network connection

Jul 09 22:54:13 turn signaling[182714]: clientsession.go:491: Removed room session n/Ty4TqTfpHMstTKxbPFBUy/ca6vlnEjmuqf9Egha4kmRIqndztuGuZivhHuwwr8MRcCAoOkcILf0OeMNwIKVevI3te4nXaK+BzmR2bOPWGMD4HeQhu35aMmFw7nGkqMozNorF6mDM+YkmGoTfiTBWZjAfHxRcuYaNBcIrx9u7QFhyFIGEldMLnimgaKQaNdLHh8xKkjKhWKgkfoVB53MB8gs7AuNjMndt1pk3o7hDYTcsNy3Ga9Nr2k8UgSGCy: map[error:map[code:no_such_room message:The user is not invited to this room.] type:error]

The first intial call goes through and you can talk no problem if you make a subsquent call almost a few seconds after you get the above error messages

you have to physically close the andriod app or the web browser to make another call

nextcloud log does not log anything at all
when you call the caller back you get a lot of missed calls in your notifications

tried outside network

Jul 09 23:07:27 turn signaling[182714]: clientsession.go:448: Session Ua0d5eQmrhiCUCsuiNOXz6tJIza4BBhsT1ZPPnVjyJp8PT1nQmNnLXROSG1nQmZmZ052UXEzR3RiaTJma2piRmJvX1RIV3lzMHE0akVFb2NjYi1aZjE0N0g3N0V0UFYxTzdfcXJkeEozQnZlMUU4SFIteEtkZXphanYySHQxU0U2MlhhbDdmNC1mUUExWTN2WHBOMmtsS3FxT0ZHLUszWnN3UEtibk9ybzNxOFdnTk5QVm9OOTFIenVsWmw1Wm5BSEQyU3lfWEVZSUtuUkhXZjZ8ODEzMDQ5ODg2MQ== left call 77j45iw7
Jul 09 23:07:28 turn signaling[182714]: client.go:303: Error reading from 92.40.198.39: read tcp 127.0.0.1:8080->127.0.0.1:55076: use of closed network connection
Jul 09 23:07:28 turn signaling[182714]: clientsession.go:491: Removed room session aiKBUOmnAhYE6/C1hMArE1ceCFQQqqWiub3QD01Dixcu2ZC8VCUatITJPJMURo8ezpKCyD1ilfCksyGo6ZPbPHN6BsvCySKJ1BTOoLRsoq7QLqBnkhCyrpJd2nY0/C8pkVIpinNM53SLGzje/2WFYrekHaGlirAJMffW9U1krpbizyzDpTKb+KBI/RHlEKG0hp5s6NpJLeybVr2Ko+UaiK75BuGkBvgShj+Ck4WhZpfYEokUYkOBdrGE0WDhxBV: map[error:map[code:no_such_room message:The user is not invited to this room.] type:error]

I have exactly the same problem. Did you found a solution?

Thanks