I wanted to do some testing with Discourse so I took a backup of my instance, wiped the DB (rm -fr /var/discourse/shared) and rebuilt the container.
I then created an admin user again and instead of following the setup wizard I went straight to admin, enabled restores, uploaded the backup and restored.
For whatever reason the outgoing email is disabled by an administrator message appeared.
I can confirm that the outgoing email was never disabled on the instance where the backup was made.
I did tick the option to enable readonly mode when performing backup operations.
Você deve ver essa mensagem apenas por um curto período. Ela deve desaparecer assim que a restauração for concluída, desde que os e-mails de saída não tenham sido desativados no momento da criação do backup. Se a mensagem não desaparecer automaticamente, atualizar a página no seu navegador deve ajudar.
Deixo isso como Contribute > Bug, porque a maneira como atualmente desativamos os e-mails de saída antes da restauração é bastante inútil. O Sidekiq é desativado durante a restauração, portanto, nada pode acontecer nesse período. Além disso, a restauração sobrescreve o valor da configuração disable_email. Corrigir o bug exigiria alterar a configuração do site após a restauração.
@eviltrout Você adicionou isso em When restoring a backup, disable emails. · discourse/discourse@ccf9b70 · GitHub. Qual é a sua opinião sobre isso? Devemos corrigir o bug ou remover o código? Na minha opinião, alterar uma configuração do site após a restauração seria bastante inesperado, então voto pela remoção. Além disso, ninguém reclamou desse problema em quase 3 anos…
I think the idea was that when a restore finishes the administrator might want to poke around and make sure everything is OK. Right now emails will start going out the second it finishes and the site might not be “approved.”
Maybe Discourse should make it a bit more clear to the admin (e.g. entry inserted in the backup log panel). The site setting for disable_emails is set to no while the message renders and this is confusing (admin panel says disable emails is off while the message on the top of the screen still says its disabled)