Nextcloud all in one with external Talk High Performance Backend

Hello Nextcloud-Team
Nextcloud version AIO: 25.0.4
Operating system and version (eg, Ubuntu 20.04): Ubuntu 22.04 (Docker)

The issue you are facing:
I installed the All in One Instance and everything is working fine.
Now I want to use a external Talk Server Instance, because my internet connection is very bad (slow and sometimes drops).
When I remove the Talk Instance from the AIO Interface Nextcloud also removes the Nextcloud App. Is there a enviroment variable for AIO which tells the instance to not install HPB and also not remove the App ?
I searched but did not found a solution.

Second question is High Performance backend compatible with older nextcloud instances ? So when I now install the HPB on a VPS Server with the newest version (for 26) would this work with my 25 instance ?

Thanks for your help.

hi @David_F welcome to the forum :handshake:

Please take a look at official AiO docs:

I’m not sure it’s possible to switch HPB off… but definitely you can install fully customized “manual” install with docker compose

Hello @wwe yes I read the documentation but nothing mentioned there thats why im asking here. Customized install is ok for me but for my familie update in CLI is not really a possible solution.

But if its not possible maybe I do it manually.

Hi, what should work is leaving the talk-hpb enabled and simply adjusting the values of the turnserver and hpb in https://yourdomain.com/settings/admin/talk to your custom ones.

1 Like

I tried this with coturn on a public VPS server. On the Nextcloud Admin Talk Settings everything was green with HPB and Turnserver with secret but when I start a call the client can’t connect to each other and I got the following errors in HPB Log…

client.go:303: Error reading from ClientIP: read tcp 172.20.0.2:8081->172.20.0.8:58386: use of closed network connection
client.go:284: Client from ClientIP has RTT of 35 ms (35.476139ms)
hub.go:744: Register anonymous@backend-1 from ClientIP in unknown-country (Mozilla/5.0 (Linux; Android 13; SM-S908B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36) 3pS7WAkI4p4vcBgdMMTscho3A2M01BwoeVB9tboyDvp8PXN0NVhDRTdSb0lfR3c0bWNSYVhIZ00tUnJHQmJsYVVJWTkxeVVJTzdwRS02djZ6ZWJUUEJMbVFINUFZRkctUFBPc08zdTNrdUZTYXpUWGI5T2VvdW1PWGpFLVY4a1pHM3FCaFVDNFVsNTkxT1NPRnZrS2lCSk13NTQ3VDFNVjNVMzVyN0otVkI5ZWhWcVhxd2thNDBIcWhTT0JvakpYWE5FQS1fUmpxT2tfTGZESVl8Njg1NTM1MDg2MQ== (private=MTY4MDUzNTU4NnxHal95d1ZzTWxOa2c0X0FEZ1g2Mkl1SnIzMVNiTmticUlONjR2eV9xTVI0X1ZCWnhaYTlsa1ZDajJLM0tXNDRMM1cxcTVoTTJJU2o2WkhJT1ZtSWhuQTZXWkpPQld1UF9IbmN0cEdDSFB4YjFPLWxaSG1WMDdSalRkbzhyWl9McmVtWlFkaUxYel80b2hWVjBDaGxoMVNoWTJIbVFEQ0EyTXlBcUxoZG5LUzQ3RURZPXy628OmRVOQWxnwXNeMRhNlJZvtcHMWC0wlQ2eerNT31Q==)
backend_client.go:167: Could not send request {"type":"room","room":{"version":"1.0","roomid":"8dgrytya","userid":"","sessionid":"Ldpau086I+DmX69D1hJs48iBLPu52pnGG2BJ170XvaCKXhMCdDzolx75DDDTgCgLM3Der3QzeebSxJMAbTipv65YAUoJ/cMcccZiRD8ASpmDhv8qvcdkocECJGRHNg8FxZXb21B4HjfNuoZelDB+a/UUoCJL8BKGmhDEjKEnSsidh5bSMGbl329yOiH50Gd3lxtTSPUzHD3Fe02jft0IiXqrdQDwfu4W87jj/BsrCiHxnZIgiP86SEyYHehj3it"}} to https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend: Post "https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend": context deadline exceeded
client.go:303: Error reading from ClientIP2: read tcp 172.20.0.2:8081->172.20.0.8:58398: use of closed network connection
client.go:284: Client from ClientIP2 has RTT of 20 ms (20.521224ms)
hub.go:744: Register anonymous@backend-1 from ClientIP2 in unknown-country (Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/111.0) 3SEDfqmlPDMgdR3AJduRiAaqX5QadjI4psy4pDothAx8PWdhSlpQaG9xTWozUloyM294YzQwcE5vZUhVY3c0NEFyakFuc2lNOGFadHdzTjhTdmZBbjdObXFSVFBYSnZyZXNKTW5HUEdtc2RjLUJnOU56UnB2endVX2ltdFZURXp3WERxLWdfMkZhakJNOFR2aHhiajFvM3pFSUJ3bmI1MGZTeXVHbWZvSzZIeWFwZmxvbjlPclRQRmlMb19xd2tiUFhSRVRRdWlrV0NORnk5MHN8OTg1NTM1MDg2MQ== (private=MTY4MDUzNTU4OXxLZGZHcmZ5ZVpEX2JZeS0zN1hBNUpvOW9WaXptbzZ1M1hkY29jLXBoS3dwcEhCWWpUYVdpTnhua2k2M2YzdnViVTZKenJSb25ubzJOQnZ6cnBJOFRjQUp4dVFYS3RnQTdBTHVOVVRyTzB5TUxzNnRqQUhmeGdjWmozWGpWNjRLNTA5dVJLZ1J6TXg1NFJSem5LRVJFZEs4ZEVjM1pEaHhNa2lPSlN2YTRiNzVNUERnPXxD9ZWUUUd1tgqcHI7-vf417sn_4XuuDOJ4y6ON4qU0vQ==)
backend_client.go:167: Could not send request {"type":"room","room":{"version":"1.0","roomid":"8dgrytya","userid":"","sessionid":"GXlKxhxxq7BhRzJj7p9ELembNWSTv15FSdmI2Y9mau3c5qXS43E4qVhfkcSoVSe/yESISQK3S15tcsCMaaYsCKDYw5/OgcJR/GuM54E/tXWeeTEj0xPkaLB0q72+PCFPwbUNQYDtLPQbOAgR5GJiQnYKXzYoylcmfS/jFKlOiPmCDl9iJ7Ubf7M1ZUcwrs5fYeA/adIUcqADZTdxpWVO7CcPYelXtg5Wz8ziH7TMh/LYbtAXF7ZJ5IevvCVca/H"}} to https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend: Post "https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend": context deadline exceeded
client.go:303: Error reading from ClientIP: read tcp 172.20.0.2:8081->172.20.0.8:41864: use of closed network connection
client.go:284: Client from ClientIP has RTT of 23 ms (23.5701ms)
client.go:284: Client from ClientIP has RTT of 23 ms (23.489406ms)
hub.go:744: Register anonymous@backend-1 from ClientIP in unknown-country (Mozilla/5.0 (Linux; Android 13; SM-S908B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Mobile Safari/537.36) 8XcMlZiclKL5TmGr4tLZB1O7YVTYRcdyidzIPEwWxl18PW9mbnByNHFQSUtrbkZybXFTbTB3VzZCOUxOdVdZeWVhaFBpeW9HN0lReTg0SnBOeHRtRHJBRmdyQjVsUDY0T0ZxRE1nbG1QZ3VucDRvLTZkc1VzSFQ5Q1VjTU5pd1paMDdhUUZkUXAyUThQa1Nka2toT1FSTGhZYTNVcDN3Z0QtU2FrUGFWNXhSWGRtSThsVmhMOVZCRGRrS2pleDBrVFlxaUsyalJSRjl1UnZFR0t8OTk1NTM1MDg2MQ== (private=MTY4MDUzNTU5OXxXT0l1M3l5QWFXOGtpdklVSEhlUEhlSEdzUDBPcFM4cEZCMlg2RzIyeWRhdE5WYVpDbi1TZHI4QjJkOEFmc2d4bFZBUk5LTjI4eDVsRHIwUlIxYTY0YzlzcHlWejVpZElhWm1jS09fU2hUWFZSOGR5Q2MxdWV6TXRSeW9WbW1laTloTDJEbC14dl9VNGU4TFZyMGc3UV9fekV5dDctQ1RWLTdmX280aFZPYmJScmtrPXx7OWFN7NWqGgcD6P6GZueWCpzL9Db51Q8RYs-DpinCNQ==)
backend_client.go:167: Could not send request {"type":"room","room":{"version":"1.0","roomid":"8dgrytya","userid":"","sessionid":"Ldpau086I+DmX69D1hJs48iBLPu52pnGG2BJ170XvaCKXhMCdDzolx75DDDTgCgLM3Der3QzeebSxJMAbTipv65YAUoJ/cMcccZiRD8ASpmDhv8qvcdkocECJGRHNg8FxZXb21B4HjfNuoZelDB+a/UUoCJL8BKGmhDEjKEnSsidh5bSMGbl329yOiH50Gd3lxtTSPUzHD3Fe02jft0IiXqrdQDwfu4W87jj/BsrCiHxnZIgiP86SEyYHehj3it"}} to https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend: Post "https://nextcloud.domain.de/ocs/v2.php/apps/spreed/api/v3/signaling/backend": context deadline exceeded
client.go:301: Error reading from client 3SEDfqmlPDMgdR3AJduRiAaqX5QadjI4psy4pDothAx8PWdhSlpQaG9xTWozUloyM294YzQwcE5vZUhVY3c0NEFyakFuc2lNOGFadHdzTjhTdmZBbjdObXFSVFBYSnZyZXNKTW5HUEdtc2RjLUJnOU56UnB2endVX2ltdFZURXp3WERxLWdfMkZhakJNOFR2aHhiajFvM3pFSUJ3bmI1MGZTeXVHbWZvSzZIeWFwZmxvbjlPclRQRmlMb19xd2tiUFhSRVRRdWlrV0NORnk5MHN8OTg1NTM1MDg2MQ==: read tcp 172.20.0.2:8081->172.20.0.8:48350: use of closed network connection

The same turnserver with the same secret is working for the nextcloud of a friend. The only differents is that he has a custom NX 26 install so no AIO.

Do calls work in the browser or was that what you tested?

Also did you adjust all, Stun Turn and HPB?

I tested 2 scenatios:

  1. Turn and Stun external HPB internal
  2. Turn Stun and HPB external
    both are not working.

All Internal with 3478 Nat is working but because of the impressive german internet connection in some towns unusable for most of the calls (because of drops caling with the server at home is unusable for the file stuff this is ok because performance is not so important)

I tested browser and smartphone (chrome, firefox and vivaldi and UMTS and local internet connection) all not working when I use external servers.
I really dont know why because internal this is working and the server is hosted by strato has all ports opened (I know maybe not a good idear) and works with another nextcloud instance without any problems (I also added the second backend in HPB config) …

I fear this must be something related to your network-infrastructure then. Sorry cannot help further as everything works as expected here and it is always really hard to help debugging if you cannot reproduce things.

I tested it now with external stun/turn but without HPB and this is working. Because I dont really need the HPB this is fine for me.
Thanks for the Support @szaimen and @wwe