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?

  • mindlessLump@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    10 months ago

    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.

  • Kayn@dormi.zone
    link
    fedilink
    arrow-up
    5
    ·
    10 months ago

    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.

  • Max-P@lemmy.max-p.me
    link
    fedilink
    arrow-up
    3
    ·
    10 months ago

    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.

  • leanleft@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    9 months ago

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

      • conorab@lemmy.conorab.com
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        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