Talk HPB opening a conversation Error while creating the conversation

Nextcloud talk server 19.00 ubuntu 18.04 cloud.example.net
HPB signaling server (Nats, Janus, Signaling, apache2) ubunut 20.04 signal.example.net
Turnserver (Coturn) ubuntu 18.04 turnserver.example.net

I downloaded Nats-io from here:
Nats
unzipped it, copied nats-server to /usr/bin.
I start it manual in terminal window > nats-server -c /etc/signaling/gnats.conf (as regular user)
Nats-io has never logged anything, however signaling server finds it.

I installed janus
sudo apt-get janus

I installed signaling server supplied by @morph027 (thanks for that)

Everything seems right except it doesn’t create a conversation.

Error while creating conversation.

How to troubleshoot?

I am not that familiar with Janus or Signaling, so not really sure what success looks like. The signaling server seems to find the nats-server and janus videoroom, websockets seem like them are accessible to signaling server. I am not getting complaints about the SSL certs.

There is an exception at the top of the nextcloud log, complaining about expecting a string.

Not really sure how to troubleshoot from here. Any suggestions would be appreciated.

thanks
@Stevebrudi

Janus log here:
Janus Log

Syslog here : (Janus and signaling)
Syslog

signaling server config here:
Signaling Config

janus config here:
Janus config

NextCloud log here: (i could not get it to display as a text file)

{“reqId”:“vg7bCfGjGXyE1HqKUOrx”,“level”:3,“time”:“2020-07-08T14:38:22+00:00”,“remoteAddr”:“192.168.26.119”,“user”:“Steve”,“app”:“no app in context",“method”:“POST”,“url”:"/ocs/v2.php/apps/spreed/api/v2/room",“message”:{“Exception”:“Exception”,“Message”:“strtolower() expects parameter 1 to be string, null given”,“Code”:0,“Trace”:[{“file”:"/var/www/cixcloud/lib/private/AppFramework/App.php”,“line”:137,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Talk\Controller\RoomController”},“createRoom”]},{“file”:"/var/www/cixcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“funcNextCloud Log here:tion”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Talk\Controller\RoomController”,“createRoom”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“file”:"/var/www/cixcloud/lib/private/Route/Router.php",“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“file”:"/var/www/cixcloud/ocs/v1.php",“line”:82,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/ocsapp/apps/spreed/api/v2/room"]},{“file”:"/var/www/cixcloud/ocs/v2.php",“line”:24,“args”:["/var/www/cixcloud/ocs/v1.php"],“function”:“reqNextCloud Log here:uire_once”}],“File”:"/var/www/cixcloud/lib/private/AppFramework/Http/Dispatcher.php",“Line”:110,“Previous”:{“Exception”:“TypeError”,“Message”:“strtolower() NextCloud Log here:expects parameter 1 to be string, null given”,“Code”:0,“Trace”:[{“file”:"/var/www/cixcloud/lib/private/Http/Client/Client.php",“line”:162,“function”:“strtolower”,“args”:[null]},{“file”:"/var/www/cixcloud/lib/private/Http/Client/Client.php",“line”:293,“function”:“preventLocalAddress”,“class”:“OC\Http\Client\Client”,“type”:"->",“args”:[“pbx.brudi.net/api/v1/room/jtkuzgja",{“headers”:{“Content-Type”:“application/json”,“Spreed-Signaling-Random”:“rll1r/sr2uTB0lVCsz3WIRRTBR/xApTWC7euHi+OihOVeEGj7VfA7ECDqgQ+KaQM”,“Spreed-Signaling-Checksum”:“749593c19e8253648044bfc6a61a78c14db850597278d3d2168218e37eaa9924”},“body”:"{“type”:“message”,“message”:{“data”:{“type”:“chat”,“chat”:{“refresh”:true}}}}”}]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:75,“function”:“post”,“class”:“OC\Http\Client\Client”,“type”:"->",“args”:[“pbx.brudi.net/api/v1/room/jtkuzgja",{“headers”:{“Content-Type”:“application/json”,“Spreed-Signaling-Random”:“rll1r/sr2uTB0lVCsz3WIRRTBR/xApTWC7euHi+OihOVeEGj7VfA7ECDqgQ+KaQM”,“Spreed-Signaling-Checksum”:“749593c19e8253648044bfc6a61a78c14db850597278d3d2168218e37eaa9924”},“body”:"{“type”:“message”,“message”:{“data”:{“type”:“chat”,“chat”:{“refresh”:true}}}}”}]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:124,“function”:“doRequest”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->",“args”:[“pbx.brudi.net/api/v1/room/jtkuzgja",{“headers”:{“Content-Type”:“application/json”,“Spreed-Signaling-Random”:“rll1r/sr2uTB0lVCsz3WIRRTBR/xApTWC7euHi+OihOVeEGj7VfA7ECDqgQ+KaQM”,“Spreed-Signaling-Checksum”:“749593c19e8253648044bfc6a61a78c14db850597278d3d2168218e37eaa9924”},“body”:"{“type”:“message”,“message”:{“data”:{“type”:“chat”,“chat”:{“refresh”:true}}}}”}]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:328,“function”:“backendRequest”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->",“args”:[{“class”:“OCA\Talk\Room”},{“type”:“message”,“message”:{“data”:{“type”:“chat”,“chat”:{“refresh”:true}}}}]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Signaling/Listener.php",“line”:264,“function”:“sendRoomMessage”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->",“args”:[{“class”:“OCA\Talk\Room”},{“type”:“chat”,“chat”:{“refresh”:true}}]},{“file”:"/var/www/cixcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:“OCA\Talk\Signaling\{closure}”,“class”:“OCA\Talk\Signaling\Listener”,“type”:"::",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/cixcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[[{“class”:“Closure”},{“class”:“Closure”}]," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/cixclhttps://gitlab.com/packaging/nextcloud-spreed-signalingoud/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Chat/ChatManager.php",“line”:104,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Chat/SystemMessage/Listener.php",“line”:272,“function”:“addSystemMessage”,“class”:“OCA\Talk\Chat\ChatManager”,“type”:"->",“args”:[{“class”:“OCA\Talk\Room”},“users”,“Steve”,"{“message”:“conversation_created”,“parameters”:[]}",{“date”:“2020-07-08 14:38:22.288970”,“timezone_type”:3,“timezone”:“UTC”,“class”:“DateTime”},false]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Chat/SystemMessage/Listener.php",“line”:98,“function”:“sendSystemMessage”,“class”:“OCA\Talk\Chat\SystemMessage\Listener”,“type”:"->",“args”:[{“class”:“OCA\Talk\Room”},“conversation_created”]},{“file”:"/var/www/cixcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:“OCA\Talk\Chat\SystemMessage\{closure}”,“class”:“OCA\Talk\Chat\SystemMessage\Listener”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/cixcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[[{“class”:“Closure”}]," sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/cixcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced "]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Manager.php",“line”:683,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->",“args”:[" sensitive parameter replaced "," sensitive parameter replaced ***"]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Manager.php",“line”:604,“function”:“createRoom”,“class”:“OCA\Talk\Manager”,“type”:"->",“args”:[2,“fgff”,"",""]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Controller/RoomController.php",“line”:749,“function”:“createGroupRoom”,“class”:“OCA\Talk\Manager”,“type”:"->",“args”:[“fgff”]},{“file”:"/var/www/cixcloud/apps/spreed/lib/Controller/RoomController.php",“line”:566,“function”:“createEmptyRoom”,“class”:“OCA\Talk\Controller\RoomController”,“type”:"->",“args”:[“fgff”,false]},{“file”:"/var/www/cixcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:170,“function”:“createRoom”,“class”:“OCA\Talk\Controller\RoomController”,“type”:"->",“args”:[2,"",“fgff”,""]},{“file”:"/var/www/cixcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Talk\Controller\RoomController”},“createRoom”]},{“file”:"/var/www/cixcloud/lib/private/AppFramework/App.php",“line”:137,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->",“args”:[{“class”:“OCA\Talk\Controller\RoomController”},“createRoom”]},{“file”:"/var/www/cixcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::",“args”:[“OCA\Talk\Controller\RoomController”,“createRoom”,{“class”:“OC\AppFramework\DependencyInjection\DIContainer”},{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->",“args”:[{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“file”:"/var/www/cixcloud/lib/private/Route/Router.php",“line”:297,“function”:“call_user_func”,“args”:[{“class”:“OC\AppFramework\Routing\RouteActionHandler”},{“apiVersion”:“v2”,"_route":“ocs.spreed.Room.createRoom”}]},{“file”:"/var/www/cixcloud/ocs/v1.php",“line”:82,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->",“args”:["/ocsapp/apps/spreed/api/v2/room"]},{“file”:"/var/www/cixcloud/ocs/v2.php",“line”:24,“args”:["/var/www/cixcloud/ocs/v1.php"],“function”:“require_once”}],“File”:"/var/www/cixcloud/lib/private/Http/Client/Client.php",“Line”:162},“CustomMessage”:"–"},“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0”,“version”:“19.0.0.12”}

There seems to be an issue with your nextcloud config in the admin interface of talk.

Thanks so much for the response.

Talk works when the HPB entry is removed.

I left the stun server as the default:
stun.nextcloud.com:443
I did not configure a stun server in the signaling server.

I left my turnserver configured as before I added signaling server.
turnserver.example.com
I configured the signaling server to point to my turnserver.

How should i address the signaling server in the talk admin.
I have tried:

signal.example.com
returns OK: Running Version:

signal.example.com:443
returns Error: Server responded with 400

http:signal.example.com
returns OK: Running version:

https:signal.example.com
returns OK: Running version:

http://signal.example.com
return Error: Server responded with 404

http://signal.example.com:443 (included to show all possibilities)
return Error responded with 400

https://signal.example.com
returns Error: Server responded with 404

https://signal.example.com:443
returns Error: server responded with 404

ws:signal.example.com
returns OK: Running version:

ws://signal.example.com
return Error: Server responded with 404

all four that return OK: Running version
Also Error while creating the conversation.

thanks
@Stevebrudi

Try wss://signal.example.com

Nick
I really appreciate your input thanks so much.

wss://signal.example.com
returns Error: Server responded with 404

wss:signal.example.com
returns OK:Running version:

Error while creating the conversation

Update:
wss://signal.example.com
returns Error: Server responded with 404

I tried creating the conversation while admin page displayed the error message, it worked, conversation created.

an initial attempt to start a call, failed to establish a connection to the signaling server.
tried again, this time no complaints about connections.
then attempted start a call again is now waiting others.

Error while creating the conversation is resolved, thanks so much. A misleading error msg.

Update2
It was not a misleading error code. the OK message never completed.
the apache2 rewrite rule used /standalone-signaling/ to determine which request to forward.

wss://signal.example.com/standalone-signaling/
returns OK: Running version:
a number in hex is displayed.

Hi … I have a similar problem …
On my server install Nextcloud 19.0.2, Talk 9.0.3, Ubuntu server 20.04, Nginx, PHP 7.4, etc … domain cloud.example.com
In VPS install Nginx, HPB Signaling Server (Nats, Janus, Signaling, coturn) signaling.example.com
Turnserver (Coturn) turn.example.com

Without HPB Signaling Server communications can be established, as soon as I configure the server in nextcloud, communications are not established …

This is the Nextcloud log:

{“reqId”:“69ZnTa5aphdhBm4pgF5P”,“level”:3,“time”:“2020-09-04T05:15:05+00:00”,“remoteAddr”:“190.183.211.30”,“user”:“xxxxxx”,“app”:“spreed”,“method”:“DELETE”,“url”:"/ocs/v2.php/apps/spreed/api/v1/call/axnmsrq9",“message”:{“Exception”:“GuzzleHttp\Exception\ClientException”,“Message”:“Client error: POST https://signaling.example.com/standalone-signaling/api/v1/room/axnmsrq9 resulted in a 403 Forbidden response:\nAuthentication check failed\n\n”,“Code”:403,“Trace”:[{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Middleware.php",“line”:65,“function”:“create”,“class”:“GuzzleHttp\Exception\RequestException”,“type”:"::"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:203,“function”:“GuzzleHttp\{closure}”,“class”:“GuzzleHttp\Middleware”,“type”:"::",“args”:["*** sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:156,“function”:“callHandler”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"::"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/TaskQueue.php",“line”:47,“function”:“GuzzleHttp\Promise\{closure}”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"::",“args”:[" sensitive parameters replaced "]},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:246,“function”:“run”,“class”:“GuzzleHttp\Promise\TaskQueue”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:223,“function”:“invokeWaitFn”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:267,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:225,“function”:“invokeWaitList”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/promises/src/Promise.php",“line”:62,“function”:“waitIfPending”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Client.php",“line”:183,“function”:“wait”,“class”:“GuzzleHttp\Promise\Promise”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Http/Client/Client.php",“line”:299,“function”:“request”,“class”:“GuzzleHttp\Client”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:80,“function”:“post”,“class”:“OC\Http\Client\Client”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:133,“function”:“doRequest”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Signaling/BackendNotifier.php",“line”:320,“function”:“backendRequest”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Signaling/Listener.php",“line”:203,“function”:“roomInCallChanged”,“class”:“OCA\Talk\Signaling\BackendNotifier”,“type”:"->"},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:251,“function”:“OCA\Talk\Signaling\{closure}”,“class”:“OCA\Talk\Signaling\Listener”,“type”:"::",“args”:[" sensitive parameters replaced ***"]},{“file”:"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php",“line”:73,“function”:“callListeners”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php",“line”:86,“function”:“dispatch”,“class”:“Symfony\Component\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Room.php",“line”:950,“function”:“dispatch”,“class”:“OC\EventDispatcher\EventDispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/apps/spreed/lib/Controller/CallController.php",“line”:116,“function”:“changeInCall”,“class”:“OCA\Talk\Room”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:170,“function”:“leaveCall”,“class”:“OCA\Talk\Controller\CallController”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php",“line”:100,“function”:“executeController”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/App.php",“line”:137,“function”:“dispatch”,“class”:“OC\AppFramework\Http\Dispatcher”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php",“line”:47,“function”:“main”,“class”:“OC\AppFramework\App”,“type”:"::"},{“function”:"__invoke",“class”:“OC\AppFramework\Routing\RouteActionHandler”,“type”:"->"},{“file”:"/var/www/nextcloud/lib/private/Route/Router.php",“line”:297,“function”:“call_user_func”},{“file”:"/var/www/nextcloud/ocs/v1.php",“line”:88,“function”:“match”,“class”:“OC\Route\Router”,“type”:"->"},{“file”:"/var/www/nextcloud/ocs/v2.php",“line”:24,“args”:["/var/www/nextcloud/ocs/v1.php"],“function”:“require_once”}],“File”:"/var/www/nextcloud/3rdparty/guzzlehttp/guzzle/src/Exception/RequestException.php",“Line”:113,“CustomMessage”:“Failed to send message to signaling server”},“userAgent”:“Mozilla/5.0 (Android) Nextcloud-Talk v8.0.9”,“version”:“19.0.2.2”,“id”:“5f52406d8e869”}

This is my talk setup in nextcloud

I’m sincerely lost, I don’t know where else to look …
Pd: sorry for the way I write … it’s google translator

Hi!
I’m dealing with the same issue as your wrote.
In my case it is a matter of the backend config in the server.conf of the signaling server.
As soon as I set “allowall = true” the connection works instead of the 403 error.
(Although I think that I configured the backend right without using allowall, it did not work…could not find out why yet).

Although my setup does not work completely yet, I at least got beyond this problem :wink:
Hope this helps.
Bernhard