• RoundSparrowOP
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    2 years ago

    sudo -iu postgres psql -c “ALTER USER lemmy WITH SUPERUSER;”

    Ok, that seems to have helped!
    curl localhost:8536/api/v3/site now works!

    • cablepick@lemmy.cablepick.net
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      curl localhost:8536/api/v3/site now works!

      Nice! Sorry my notes are a mess and nothing is in order since I was trying a lot of different things at the time.

    • cablepick@lemmy.cablepick.net
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Lemmy logs everything, and I mean everything. I haven’t found a setting to dial it back so I’ve banned it from writing to syslog and moved journal to memory only. Here is what I ran to stop it from filling up my disk with logs.

      echo 'if $programname == "lemmy_server" then stop' >> /etc/rsyslog.d/ignore-lemmy_server.conf
      systemctl restart rsyslog

      sed -i 's/#SystemMaxUse=/SystemMaxUse=25M/g' /etc/systemd/journald.conf
      sed -i 's/#Storage=auto/Storage=volatile/g' /etc/systemd/journald.conf systemctl restart systemd-journald