Hello! I’m trying to use Crossbar as a WAMP router for Buildbot multimaster configuration.
My simple setup has a UI master, a build master and a crossbar router, each in separate docker container. At the moment, my buildmaster does not start the scheduler after receiving changes when I use WAMP router. The same buildmaster configuration with a “simple MQ” (native to Buildbot) works just fine.
I see in the logs that the UI master is connecting to the websocket port:
2023-08-10 15:01:39+0000 [-] <autobahn.websocket.protocol.WebSocketServerProtocol._connectionMade>: connection accepted from peer tcp4:192.168.100.1:33484
There are no such messages in the buildmaster logs. Both containers have the same MQ configuration and debug level set for WAMP logging.
This makes me think that my Crossbar configuration is wrong, because buildmaster works fine without Crossbar. But maybe I’m missing something.
Does anyone have a working example of a Crossbar configuration to use with Buildbot? I would really appreciate any example.
My JSON configuration is below. If you have any question or need logs, please, ask me.
config.json
{
"$schema": "https://raw.githubusercontent.com/crossbario/crossbar/master/crossbar.json",
"version": 2,
"controller": {},
"workers": [
{
"type": "router",
"realms": [
{
"name": "buildbot",
"roles": [
{
"name": "anonymous",
"permissions": [
{
"uri": "*",
"allow": {
"call": true,
"register": true,
"publish": true,
"subscribe": true
},
"disclose": {
"caller": true,
"publisher": true
},
"cache": false
}
]
}
]
}
],
"transports": [
{
"type": "websocket",
"endpoint": {
"type": "tcp",
"port": 8080,
"backlog": 1024
},
"auth": {
"anonymous": {
"type": "static",
"role": "anonymous"
}
},
"options": {
"allowed_origins": [
"*"
],
"allow_null_origin": true,
"enable_webstatus": false,
"fail_by_drop": true,
"open_handshake_timeout": 2500,
"close_handshake_timeout": 1000,
"auto_ping_interval": 10000,
"auto_ping_timeout": 5000,
"auto_ping_size": 12
}
}
]
}
]
}