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?

-3 points

use wayland then

permalink
report
reply
1 point

all i know is… that ssh can have configuration turned on for x11 forwarding.

permalink
report
reply
1 point

What’s the error you’re seeing?

permalink
report
reply
1 point

Cannot autolaunch D-Bus without X11 $DISPLAY

permalink
report
parent
reply
2 points

Ah 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

permalink
report
parent
reply
1 point

I haven’t even got Lemmy running yet, I’ll still trying to compose Docker.

permalink
report
parent
reply
3 points

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.

permalink
report
reply
25 points

Sounds like something is incorrect in your setup. Nothing Lemmy does requires x11, dbus, or any display technology.

permalink
report
reply
3 points

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

permalink
report
parent
reply
4 points

No idea. Sorry.

permalink
report
parent
reply

Lemmy Support

!lemmy_support@lemmy.ml

Create post

Support / questions about Lemmy.

Matrix Space: #lemmy-space

Community stats

  • 152

    Monthly active users

  • 1.2K

    Posts

  • 5.6K

    Comments

Community moderators