Closed om26er closed 2 years ago
The error can be reproduced with this config (had pasted this config in the wrong issue)
{
"version": 2,
"controller": {
"id": "center1"
},
"workers": [
{
"id": "cfrouter1",
"type": "router",
"options": {
"expose_controller": true
},
"realms": [
{
"name": "com.crossbario.fabric",
"roles": [
{
"name": "authenticator",
"permissions": [
{
"uri": "com.crossbario.fabric.authenticate",
"match": "exact",
"allow": {
"call": true,
"register": true
}
},
{
"uri": "crossbarfabriccenter.node.",
"match": "prefix",
"allow": {
"subscribe": true
}
},
{
"uri": "crossbarfabriccenter.mrealm.",
"match": "prefix",
"allow": {
"subscribe": true
}
}
]
}
]
}
],
"transports": [
{
"type": "rawsocket",
"serializers": ["cbor"],
"endpoint": {
"type": "unix",
"path": "sock1"
},
"options": {
"max_message_size": 1048576
},
"auth": {
"anonymous": {
"type": "static",
"role": "trusted"
}
}
},
{
"type": "rawsocket",
"serializers": ["cbor"],
"endpoint": {
"type": "unix",
"path": "sock2"
},
"options": {
"max_message_size": 1048576
},
"auth": {
"anonymous": {
"type": "static",
"role": "user",
"authid": "superuser"
}
}
},
{
"type": "web",
"endpoint": {
"type": "tcp",
"port": 9000
},
"paths": {
"/": {
"type": "nodeinfo"
},
"ws": {
"type": "websocket",
"serializers": [
"cbor", "msgpack", "json"
],
"auth": {
"anonymous": {
"type": "static",
"role": "public"
},
"cryptosign": {
"type": "dynamic",
"authenticator": "com.crossbario.fabric.authenticate",
"authenticator-realm": "com.crossbario.fabric",
"authenticator-role": "authenticator"
}
}
}
}
}
],
"components": [
{
"type": "class",
"classname": "crossbar.master.node.authenticator.Authenticator",
"realm": "com.crossbario.fabric",
"role": "authenticator",
"extra": {
"mailgun": {
"submit_url": "https://api.mailgun.net/v3/mailing.crossbar.io/messages",
"access_key": null
}
}
}
]
},
{
"id": "cfrealmmanager1",
"type": "container",
"options": {
"pythonpath": [".."],
"expose_shared": true,
"expose_controller": true,
"restart": "restart-always",
"shutdown": "shutdown-manual"
},
"components": [
{
"type": "class",
"classname": "crossbar.master.node.DomainController",
"realm": "com.crossbario.fabric",
"transport": {
"type": "rawsocket",
"serializer": "cbor",
"endpoint": {
"type": "unix",
"path": "sock1"
},
"options": {
"max_message_size": 1048576
}
}
}
]
}
]
}
duplicate of https://github.com/crossbario/crossbar/issues/1885
Running the command
crossbar master start
fail with the below error. However if used with the exact config available here https://github.com/crossbario/crossbar/blob/master/crossbar/master/node/config.json it starts fine.