I have tried installing it with docker on Ubuntu 20.04 and 22.04 LTS but cannot seem to get it working. The build keeps erroring out with docker errors.

  • Qazwsxedcrfv000@lemmy.unknownsys.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I spawned up a LXC in my Proxmox for it as soon as the Reddit fiasco began. Originally tried the Docker way, failed… My Docker is installed the official way by the way. Tried the “install from scratch” way, also failed… Finally gave the source a casual read and decided to compile it from source.

    The pict-rs bit is a hassle. It has taken me some time to get all the dependencies right and compile Imagemagick version 7 for Ubuntu 22.04 from source. But it worked eventually.

    I then installed the rust toolchain and checked out the latest stable release tag at the time aka 0.17.3 and compiled lemmy. Nothing went astray and I followed the remaining steps in the “install from scratch” doc to complete the setup. P.S. Oh right you need to make the lemmy PostgreSQL user SUPERUSER otherwise the database migration script would not work. A commit was already made to make it unnecessary. It will make its way to 0.18.0 release I guess.

    I initially encountered some issues in federation. Subscriptions stuck at pending for remote instances, regardless of their size and traffic. I tried many ways and still it did not work. I have thought of axing the container and restarting from the beginning.

    While I was weighing my options, I found an advice in an issue at lemmy GitHub repo that suggested the problem was leftover from previous hostname changes and dumping the existing database and recreating from sketch would help. I have indeed altered the hostname once or twice during setup. So I followed the advice and federation is working now.

    So far not a butter smooth experience but not the worst I have ever encountered. It does take some troubleshooting capacity and patience. But heck selfhosting has been like that since time immemorial.

  • aggelalex@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    You are using two technologies that have a bad of working like shit, together; Ubuntu/snap and docker. You can try podman if you want, or a different distro. Or, at least, install the official docker way.

  • seang96@spgrn.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If your using docker I recommend getting a docker-compose file that does 98% of the config work for you. Pretty sure there’s one in the install docs.

    • TCGM@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      arrow-down
      1
      ·
      1 year ago

      I’ve been having trouble understanding how the docker-compose thing works, and the whole… impermanence of docker containers. Got any tutorials you’d recommend? Note I’m on Windows.

      • mim@lemmy.sdf.org
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Are you planning to host it on a Windows machine?

        If you don’t have experience with docker, don’t jump straight to docker compose. Start simpler.

        If you want to have data persist after a container is killed, have a look at the -v option of “docker run”. It allows you to mount a volume.

  • ctr1@fl0w.cc
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I was able to get it running from source on Gentoo (without docker). Building from source is an option but you need to manage the dependencies and daemons yourself. This is my first comment! Good luck with your setup

  • marsta@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    If you post your configs and errors we might be able to help you. I set up a vm with docker compose and proxy it through traefik instead of nginx

  • corne@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    Will self-hosting Lenny have the limitation that you’ll be missing a lot of comments when subscribing to magazines from other instances? I am considering it tough

  • TheOneCurly@feddit.online
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    I had some luck with the prebuilt images from dessalines’ dockerhub and using the compose file in the repo with logging commented out.

    It was stable for about a week before I tried to update and broke my database and federation completely. I might try again when 0.18 stable drops.

    • pascal@lemm.ee
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      Would it be possible to teach us? Or give a quick step-by-step guide to make in run at least?

      • Re4mstr@lemmy.re4mstr.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Well, if it’s your first time selfhosting and setting up your environment, I’d to things in steps. Great thing about virtualization is that you can snapshot.

        Once you get proxmox up and running, choose an OS to virtualize, snapshot once made. Snapshot once configuration for users etc, snapshot once docker has been installed, snapshot after docker-compose has been configured… You get the idea.

        Set up backup of the VMs/containers, set up lemmy using the official docker-compose step-by-step guide. Once you reach it on port 80, set up nginx.