Le email di verifica non vengono inviate

Ciao di nuovo,

Ho letto questo argomento e il problema che sto riscontrando è molto simile a quanto descritto qui:

Con la differenza che, nel mio caso, le email di verifica non vengono inviate affatto, sia per i nuovi membri che per quelli esistenti. Sembra che in quell’argomento le email venissero inviate, almeno in qualche misura.

Avevo già un account di test esistente sui miei forum (non sono il proprietario, ma un amministratore creato appositamente) solo per testare le funzionalità che stavamo riscontrando. Questo account di test era già stato verificato circa due anni fa. Ho cliccato sul pulsante “Disattiva account” nella pagina amministrativa del mio account di test, che riporta la dicitura “Un utente disattivato deve rieseguire la validazione dell’email”, ma non ho mai ricevuto alcuna email.

Ecco cosa ho fatto:

Nell’argomento che ho linkato sopra ho notato che c’è un’opzione nella scheda Accesso in cui lo staff deve approvare tutti i nuovi account utente, quindi ho spuntato quella casella. Ho appena creato un altro nuovo account di test e, dopo aver cliccato sul pulsante “Crea nuovo account”, sono stato reindirizzato a un’altra pagina con il messaggio: “Non è possibile rilevare se il tuo account è stato creato; assicurati che i cookie siano abilitati”. Sono andato alla scheda Nuovi utenti nelle impostazioni e l’account era presente in grigio (il che significa che non è stato attivato). Ho cliccato sul nome del nuovo account che ho creato e ho premuto il pulsante “Attiva account” nella pagina amministrativa dell’account, che l’ha attivato. Successivamente ho ricevuto una notifica che mi informava della necessità di rivedere e approvare l’account appena attivato. Ho cliccato su “Approva utente”. Sono poi tornato alla scheda Nuovi utenti e il nome utente ora è blu, il che significa che è attivato e pronto all’uso.

Durante tutto questo processo non è stata inviata alcuna email.

Ho controllato l’elenco degli ultimi nuovi membri e gli ultimi 37 account creati sui forum hanno un nome utente in grigio, ovvero non sono stati attivati.

Non ho modificato alcuna impostazione per causare questo comportamento. L’unica cosa a cui riesco a pensare è che un aggiornamento che ho eseguito possa aver provocato questo problema.

Insomma, io e gli altri moderatori dei forum possiamo attivare e approvare manualmente tutti gli utenti, ma dovrebbe essere… non automatico, ma comunque non richiedere l’intervento dello staff del forum.

È cambiato qualcosa di recente che sta causando questo comportamento, o c’è un’impostazione che devo modificare o correggere? Ho cercato ovunque nelle impostazioni ma non ho trovato nulla. Attualmente è installata la versione 2.4.0.beta7.

Grazie!

2 Mi Piace

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

1 Mi Piace

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.

2 Mi Piace

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

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

3 Mi Piace

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?

3 Mi Piace

Yes

How was this instance installed?

2 Mi Piace

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?

2 Mi Piace

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.

3 Mi Piace

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.

2 Mi Piace

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:

2 Mi Piace