this post was submitted on 08 Jun 2023
8 points (100.0% liked)

Lemmy Support

4634 readers
2 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] ptz@dubvee.org 3 points 1 year ago (10 children)

How did you set up Lemmy? If you used Docker, you can get them from docker logs. For a native install, I'm unclear on where the logs get written or if they go through syslog; perhaps someone else can chime in.

If you're using docker, try this:

Enter your Lemmy directory and run:

docker-compose logs --tail=10 -f lemmy

where lemmy is the name of the container running the lemmy backend (not the ui). With the logs tail-ing, try your registration process and look for any errors.

The logs are fairly easy to parse visually, which is nice because there are quite a few backend errors that do not pop up in the UI. Keeping the logs tail-ing for the first day or so was really helpful in getting my instance up and running.

For what it's worth, I've got email verification set up and working on my instance. I had some issues at first, but I had two problems, both of which gave me endless spinners in the UI:

  1. At first, I forgot to add the email settings to lemmy's config.hjson file (d'oh!)
  2. I was using the SSL port for my SMTP server but forgot to set the tls_type to tls.

If the backend has any issue connecting to the email server, it should show up in the logs.

[–] OdiousStooge@lemmy.ml 2 points 1 year ago (9 children)

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 2 points 1 year ago (5 children)

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

[–] worldcitizen101@sopuli.xyz 1 points 1 year ago

I'm also working on this - thanks to this tip, I found that Hetzner also blocks port 25 by default. Apparently you can have it unblocked by going to the network tab -- but it's greyed out until you've paid them something.

load more comments (4 replies)
load more comments (7 replies)
load more comments (7 replies)