E-mails de verificação não estão sendo enviados

Olá novamente,

Li este tópico aqui e o problema que estou enfrentando é muito semelhante ao que está acontecendo neste link:

Exceto pelo fato de que os e-mails de verificação não estão sendo enviados de forma alguma — seja para um novo membro ou para um existente. Parece que, neste tópico, os e-mails estavam sendo enviados em alguma medida.

Eu já tinha uma conta de teste existente nos meus fóruns (não sou o dono dos fóruns, apenas um administrador criado) apenas para testar as coisas com as quais estamos tendo problemas. Essa conta de teste já havia sido verificada há cerca de 2 anos. Cliquei no botão “Desativar Conta” na página de administração da minha conta de teste, que diz “Um usuário desativado deve revalidar seu e-mail”, mas um e-mail nunca foi recebido.

Então, aqui está o que fiz:

Vi naquele tópico que postei acima que há uma opção na aba de Login onde a equipe deve aprovar todas as contas de novos usuários, então marquei essa caixa. Criei outra conta de teste totalmente nova e, após clicar no botão “Criar Nova Conta”, fui levado para outra página dizendo “Não conseguimos detectar se sua conta foi criada; certifique-se de que os cookies estão habilitados”. Vá para a aba de novos usuários nas configurações e a conta estava lá em letras cinzas (o que significa que não está ativada). Cliquei no nome da nova conta que criei e no botão “Ativar Conta” dentro da página de administração da conta, e ela foi ativada. Em seguida, recebi uma notificação dizendo que precisava revisar e aprovar a conta que acabei de ativar. Cliquei em “Aprovar Usuário”. Voltei para a aba de novos usuários e o nome de usuário agora está em azul, o que significa que está ativado e pronto para uso.

Um e-mail nunca foi enviado durante todo esse processo.

Verifiquei os últimos novos membros e as últimas 37 contas criadas nos fóruns têm nome de usuário em cinza, ou seja, não foram ativadas.

Não alterei nenhuma configuração para fazer isso acontecer. A única coisa que consigo pensar é que alguma atualização que realizei pode ter causado isso.

Digo, eu e os outros moderadores dos fóruns podemos ativar e aprovar manualmente todos os usuários, mas deveria ser… não automático, mas sem envolver a equipe do fórum.

Algo mudou recentemente que está causando isso, ou há alguma configuração que preciso alterar ou corrigir? Procurei em todos os lugares nas configurações e não encontrei nada. A versão 2.4.0.beta7 é a que está instalada atualmente.

Obrigado!

What do your mail logs say? Can you send a test email? What do your mail service logs show?

Specifically, where do I find the mail logs? Are you talking about screened emails under logs in the settings? If so, it says “No results found.” Test emails don’t work either. I forgot to mention that. I also don’t know where to find the mail service logs.

You might want to take a quick check on your disable emails setting.

You can find various logs at /admin/email. :slight_smile:

Sorry for the wait.

The disable emails setting is currently set to ‘no’.

I skimmed through the /admin/email settings and nothing really stood out. Is there anything else I can check, or something specific I need to look for?

Edit: I think I did an upgrade just a bit ago (it told me an upgrade was needed, so I started it and it told me it failed. Then it said there were no updates available) and it said something about sideqik not working and that it does multiple functions such as emails, if I remember correctly. Would this cause my problem?

Yes

How was this instance installed?

Honestly, I’ve never seen sideqik mentioned before. I’ve looked through the settings several times and never saw anything about sideqik until this last update maybe an hour ago.

I’m assuming it’s something needed?

Yep. Same happened to me on a recent update. If it’s the same, your best bet is to have it manually update:

cd /var/discourse
git pull
./launcher rebuild app

I manually retried the failed mail queues, because I like seeing screens automatically refresh, but I believe it will clear itself up after running a while. You can check the logs.

Sidekiq handles all the scheduling in the back-end.

A rebuild as indicated above may help, but without more insight on your instance I honestly can’t say.

I’ve done a couple more updates since then and it’s still telling me sideqik isn’t working at the end of it. At this point I think it’s safe to say it won’t fix itself and someone has to go in manually and fix it?

Also, I don’t know if this is super important, but it doesn’t seem normal to me, but when it was in the middle of updating the last time, in the midst of all the text flying by on my screen, it was throwing a whole bunch of:

WARN: Side effects in initialization of unused variable [more text here]

WARN: Dropping unused variable _value [more text here]

and

WARN: Dropping unused variable _desc [more text here]

at me. 615 lines. Is this still something from sideqik or something completely different? And should I be worried about this?

Edit: just performed another update. Here’s what it gave me:

https://pastebin.com/YaEkiD5v

It’s still saying it failed to update, but when I go back it says everything is up to date, along with this still on the dashboard: