Any good resources/Discord servers (to discuss with other devs) for troubleshooting user login/email verification issues?

I have a self-hosted instance and was able to make the admin user, but when trying to create a new test user, the user does not get the verification email.

I assume its related to this issue because I see the same issue but on login rather than sign up: https://github.com/LemmyNet/lemmy-ui/issues/1080

I am able to create the new user but get no email verification and then when I try to login the login button gets stuck with the spinner. No frontend console logs so I assume something is dying server-side and not bubbling the error.

Really just looking for some guidance/links to docs on how I can access logs to troubleshoot server-side errors (and my gut tells me maybe an email issue but I am a novice in this space so not sure).

Any help is appreciated.

Thank you.

  • OdiousStoogeOP
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 year ago

    Nice! Thanks your mention of the config.hjson makes me wonder lol. I probably goofed that too.

    I did the ansible install which I believe just adds orchestration on top of the Docker install. I’ll ssh in and try the docker-compose command.

    Do you know, if I did goof the email config, can I just tweak the config locally and then re-run ansible? Or do I need to do some manual tweaks to the deployed solution? Or I suppose at this point it might be easier to just blow the instance away and start fresh.

    • majorswitcher@lemmyfly.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      where are you running your environment ? I’m on DigitalOcean for example since last night, found out this morning that digitalocean blocks smtp port 25 to prevent being used for spammers. when checking the logs, also check the postfix container, that’s the email server. if that reads it can’t connect you probably have the same issue. see this thread for setting up sendgrid as a relay to your postfix mail server

    • Admiral Patrick@dubvee.org
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year ago

      I’m not clear on the ansible install, but if it’s just a layer on top of the docker deployment, you should be able to find the config file, edit it, and restart the container for the Lemmy back end.

      I think that will work for testing, but I don’t know if that will get wiped out if you ever redeploy from ansible.

      • OdiousStoogeOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Cool thanks! Last thing for now, and then I’ll go do some debugging.

        Dumb Q: The lemmy install includes an SMTP server correct? Like I don’t need to use an external service for that?

        • Admiral Patrick@dubvee.org
          link
          fedilink
          English
          arrow-up
          3
          ·
          1 year ago

          No, it doesn’t. You’ll need an SMTP server to plug into it. You can use any that you want, though, including Gmail, etc. Just plug in the relevant details. That will vary from provider to provider, but they all generally have setup instructions for email clients such as Thunderbird, Outlook, etc. The relevant portions of those guides are the “outgoing” configurations.

          This post talks about running Postfix locally/alongside Lemmy and using Postfix to relay through SendGrid. Lemmy sends to postfix and postfix relays through SendGrid.