Today, I tried (again) to install lemmy on my linux server. I tried in the past but the documentation was so lacking that I only encountered errors after errors just following exactly every command.

Today I tried again, using the Docker method, I correctly downloaded all the files, but as soon as I run “docker compose up” I get the error “/lemmy/docker-compose.yml: yaml: line 32: found character that cannot start any token”

That’s usually a common error if the yaml file contains TABs instead of spaces, but it’s not the case here.

So, again I’m lost and I’m looking for someone here that can bring me some light on the issue, it would be very appreciated.

  • pascal@lemm.eeOP
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    What’s on and around line 32 in the config?

    {% if lemmy_env_vars is defined and lemmy_env_vars|length > 0 %}

    I did the ansible install, other than mail setup, the instructions were easy to follow.

    you’re not the first suggesting this. Some guides I’ve found online suggest to use the Ansible files “because they’re less broken”.

    At this point I’m wondering if the documentation is bad “on purpose” to prevent too many script kiddies to install their own instance.

      • pascal@lemm.eeOP
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        Nope, the documentation suggests 3 ways for installation: from scratch, docker and ansible.

        I tried both from scratch and docker and I’m stuck. Eventually I’ll try the ansible way, but first I have to learn ansible…

        I’m far from not disappointed.

        • Valmond@lemmy.mindoki.com
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          Gotta merit that instance!

          I had a lot of trouble (docker install) but it was mostly because I thought I needed to install a database (no, it’s in the docker files), nginx being difficult to configure(had to learn how it works) and the config stuff, like should I keep those brackets, the http part etc etc. Got a lot of help too.

          But then it started and is running since.

          Good luck!