I have a lemmy-ui instance working correctly, fresh ansible install. I haven’t configured it yet, but it’s up and running and test posts work fine.
I’m mostly interested in lemmyBB, so I installed that according to “Alongside existing Lemmy instance (native)” install instructions.
Everything seems to work fine during install,
systemctl status lemmy_bb.service
shows:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch_] (FileServer: assets) GET /assets/<path..> [10]
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch] 📡 Fairings:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch_] Templating (ignite, liftoff)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch_] Shield (liftoff, response, singleton)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch_] Site data fetcher (request)
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::shield::shield] 🛡️ Shield:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket_dyn_templates::fairing] 📐 Templating:
Jan 17 06:51:57 vps-f7b29755 lemmy_bb[484]: [2023-01-17T06:51:57Z INFO rocket::launch] 🚀 Rocket has launched from http://127.0.0.1:8703
When checking in with a browser, I get 502 Bad Gateway.
error.log
2023/01/17 07:05:13 [error] 528#528: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET / HTTP/2.0"$2023/01/17 07:05:13 [error] 528#528: *33 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET /favicon.ic$2023/01/17 07:05:32 [error] 528#528: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET / HTTP/2.0"$2023/01/17 07:05:32 [error] 528#528: *50 connect() failed (111: Connection refused) while connecting to upstream, client: 205.178.101.86, server: forums.domain.com, request: "GET /favicon.ic$
Support / questions about Lemmy.
This will be impossible to debug without the nginx (or whatever reverse proxy you are using) configuration. Because it looks like lemmybb is running but it is not being served properly.
I’m using the config here: https://github.com/LemmyNet/lemmyBB/blob/main/docker/nginx.conf
the only difference is that $lemmybb_domain is replaced with the bb ui domain name. Again, the normal lemmy ui works great, ansible install so everything including config is default.
Is there something with the lemmy backend or UI I’m supposed to configure to let it know that lemmyBB exists?
Make sure these ports are the same. Since your UI is running on 8703 you should use 8703 in the nginx config as well.
I appreciate all the help! New error, 500
systemctl status lemmy_bb.service
How are you running the lemmy backend? What port is it running on?
Here’s the config I use for the lemmy backend: https://github.com/LemmyNet/lemmy/blob/main/docker/prod/nginx.conf here’s my lemmy.hjson https://github.com/LemmyNet/lemmy/blob/main/docker/prod/lemmy.hjson
like I said, aside from domain name and required variables, everything is default, running a fresh vps. Ansible install for Lemmy, “install along other instance” instructions for lemmyBB.
No messing with ports. Fresh debian 10, debian 11, ubuntu 22, all with the same result:
Lemmy-UI works fine, lemmyBB returns a 502.
Are you using docker at all? If yes, can you share the output of
docker ps
?Also, can you share your
/etc/systemd/system/lemmy_bb.service
file?Thank you for sticking with me!
docker ps
lemmy_bb.service