Why does hosting Lemmy require a display?
I'm trying to set up my own Lemmy server with Docker. I think I have everything set up, but I'm getting an error Cannot autolaunch D-Bus without X11 $DISPLAY. This error kind of makes sense, because I'm SSHing into my server and have not forwarded D-Bus connections, so $DISPLAY is undefined. But why does a Lemmy server need a display in the first place? Is this a bug and a display isn't actually needed? If I set $DISPLAY to whatever, will it still run okay?
Sounds like something is incorrect in your setup. Nothing Lemmy does requires x11, dbus, or any display technology.
Thanks. Do you know what I could have done wrong? I've looked through all the config files and there's nothing about a display in them, unless you count lemmy-ui
No idea. Sorry.
what's your docker-compose.yml look like, and what command are you using to start it?
I'm starting with
sudo docker compose up -dand my docker-compose.yml is:I'm following this guide: https://patrickwu.space/2023/11/04/install-lemmy-simplified/. My .env file is:
The image for the pictrs service is wrong.
No idea what it should be, but it shouldnt be
docker.io/c:0.4.3Thanks. I get the same error even with pictrs image set to
docker.io/asonix/pictrs:0.5.4I mean, i dont see anything strange.
Maybe just destroy the droplet and start fresh? Or spin up another just to test with?
Are you familiar with installing docker? I always just use docker's convenience script to install it, and never had any problems.
You sure you havent accidentally installed docker desktop instead of docker engine? I dont know if docker has a desktop version for linux.
I keep meaning to figure out rootless mode or swap to podman
I've never used docker before. It's a strange newfangled technology I don't understand. Back in my day you either used apt-get, or you compiled it yourself. I want to learn, and I thought installing Lemmy would be a good learning opportunity, but I'm finding myself chasing my own tail instead. My docker version is
Docker version 24.0.2, build cb74dfc, and google is seeming to indicate that's docker engine. I can't see how docker desktop would be trying to run on ubuntu.I think there is some info missing. You’re using SSH to access the server where you are running the docker image? Why does your server have X server installed?
I have no experience running Lemmy. It could be the Lemmy instance includes X server to run some kind of GUI? Seems strange.
My server is running the default ubuntu image from Oracle Cloud. I don't think it has X server installed.
It doesn’t. No idea what you’ve done.
As others have already said, Lemmy does not require a display.
You might want to try the Ansible method of setting up a Lemmy instance. I personally found it much easier.
The problem is likely Ubuntu not Lemmy or not even the Lemmy setup process.
You seem to not have a dbus session going which you should by default even with SSH. It sounds like it might be falling back to trying to get it from X11 and fails that too (obviously).
So, just Ubuntu being Ubuntu.
all i know is.. that ssh can have configuration turned on for x11 forwarding.
What’s the error you’re seeing?
Cannot autolaunch D-Bus without X11 $DISPLAYAh my bad. Memmy didn’t display the code block in your OP or this post. I see it on the web version.
That error might be less about needing X11 and more about wanting D-Bus. Since D-Bus isn’t running, it’s trying to start it by itself using X11, which also doesn’t work.
Does the error actually make Lemmy quit out?
FWIW I have a sanitised copy of my Lemmy k8s config on Gitlab that might help: https://gitlab.com/conorab/k8s-lemmy
I haven't even got Lemmy running yet, I'll still trying to compose Docker.
use wayland then