Brand new docker install, web interface returns 'Connection reset by peer' despite no errors in the gateway #5012
|
What I did:
Then I launch it as shown below, but I can't open http://ip-of-desktop:8765 with Firefox. test commands on the host: There are no errors appearing in the nanobot-gateway docker logs. Nothing added, in fact. I also ran the following commands inside the container: Since a curl to localhost:8765 from inside the container fails, then that's clearly a a Nanobot bug, right? |
Replies: 1 comment 1 reply
|
Not a bug — nothing is listening on 8765. Your log already says it: The WebUI is served by the websocket channel, not the gateway. 18790 answers because that's the health endpoint. With no channel enabled, nothing binds 8765, so Docker accepts the connection on the host, finds no backend, and resets it. There's a second trap right behind it: the channel defaults to host 127.0.0.1, which inside a container means the container itself. Set both in your config.json: {
"channels": {
"websocket": {
"enabled": true,
"host": "0.0.0.0",
"port": 8765,
"tokenIssueSecret": "long-random-string",
"websocketRequiresToken": true
}
}
}Restart and you should see Heads up: the shipped compose publishes 8765 to all interfaces, so once you set 0.0.0.0 your whole LAN can reach the UI. Keep the token on and make the secret a real random one ( |
Not a bug — nothing is listening on 8765. Your log already says it:
The WebUI is served by the websocket channel, not the gateway. 18790 answers because that's the health endpoint. With no channel enabled, nothing binds 8765, so Docker accepts the connection on the host, finds no backend, and resets it.
There's a second trap right behind it: the channel defaults to host 127.0.0.1, which inside a container means the container itself. Set both in your config.json:
{ "channels": { "websocket": { "enabled": true, "host": "0.0.0.0", "port": 8765, "tokenIssueSecret": "long-random-string", "websocketRequiresToken": true } } }…