openbooks: Unable to connect to IRC server.

Hello! I am experiencing the following issue when attempting to use OpenBooks (via Docker). When the webUI is loaded, it gives the error: “Unable to connect to IRC server.”

Here is a chunk of the log, starting from a restart of the container:

2022/09/12 10:27:40 SERVER: Base Path: /
2022/09/12 10:27:40 SERVER: OpenBooks is listening on port 80
2022/09/12 10:27:40 SERVER: Download Directory: /books
2022/09/12 10:27:40 SERVER: Open http://localhost:80/ in your browser.
2022/09/12 10:27:40 SERVER: Base Path: /
2022/09/12 10:27:40 SERVER: OpenBooks is listening on port 80
2022/09/12 10:27:40 SERVER: Download Directory: /books
2022/09/12 10:27:40 SERVER: Open http://localhost:80/ in your browser.
2022/09/12 10:27:49 SERVER: Client connected from XXX.XXX.XXX.XXX:XXXX
2022/09/12 10:27:49 CLIENT (straight_contracst_1): New client created.
2022/09/12 10:27:49 CLIENT (straight_contracts_1): CONNECT Message Received
2022/09/12 10:27:50 CLIENT (straight_contracts_1): EOF
2022/09/12 10:27:50 CLIENT (straight_contracts_1): EOF

In my docker configuration I am pulling evanbuss/openbooks:latest, so I believe I am up to date. (I don’t see a version number in the webUI anywhere.) I have tried setting the name flag, but it did not change the outcome.

Any assistance would be appreciated. If there is any other information I can provide, please let me know!

Thank you for this tool!

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 15
  • Comments: 21 (4 by maintainers)

Most upvoted comments

I have solved it with simply adding one bit next to presist

-s "irc.irchighway.net:9999" with this I am able to connect to irchightway.net without issue. so basically i just changed default irc port

Running docker run -d -p 8080:80 -v ~/Downloads:/books evanbuss/openbooks --persist also gave me this kind of error but having changed 8080:80 to 80:80 I can finally establish connection. No idea if this workaround works for everyone

For those of you using nginx proxy manager, make sure you enable “websocket support” for openbooks. I was seeing an unable to connect error and the lower left of the page would show disconnected until I enabled websocket support.

Issue exists when keeping TLS authentication enabled, as IRCHighway certs seem to be self-signed. With their root CA added to the cert store or with --tls=false the connection works. Despite that, no commands seem to reach the server. User and messages also can’t manually be found in the users list/chat log of the channel when connecting with a common IRC client.