# Erro do LetsEncrypt ao reconstruir o fórum

**URL:** <https://meta.discourse.org/t/letsencrypt-error-when-rebuilding-forum/361846>\
**Category:** Product Support\
**Created:** [15 Abril , 2025 05:22 UTC](https://meta.discourse.org/t/letsencrypt-error-when-rebuilding-forum/361846 "2025-04-15T05:22:38Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)\
**Post date:** [15 Abril , 2025 05:22 UTC](https://meta.discourse.org/t/letsencrypt-error-when-rebuilding-forum/361846/1 "2025-04-15T05:22:38Z")

</div>

Veja este erro:

```plaintext
I, [2025-04-14T12:47:09.997719 #1] INFO -- : > if [-z "$LETSENCRYPT_ACCOUNT_EMAIL"]; then echo "LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set."; exit 1; fi
I, [2025-04-14T12:47:10.004236 #1] INFO -- : LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set.

I, [2025-04-14T12:47:10.232706 #1] INFO -- : Terminating async processes
I, [2025-04-14T12:47:10.237265 #1] INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 43
2025-04-14 12:47:10.238 UTC [43] LOG: received fast shutdown request
I, [2025-04-14T12:47:10.239346 #1] INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 110
110:signal-handler (1744634830) Received SIGTERM scheduling shutdown...
2025-04-14 12:47:10.246 UTC [43] LOG: aborting any active transactions
110:M 14 Apr 2025 12:47:10.469 # User requested shutdown...
110:M 14 Apr 2025 12:47:10.470 * Saving the final RDB snapshot before exiting.
2025-04-14 12:47:10.477 UTC [43] LOG: background worker "logical replication launcher" (PID 57) exited with exit code 1
2025-04-14 12:47:10.491 UTC [52] LOG: shutting down
2025-04-14 12:47:10.495 UTC [52] LOG: checkpoint starting: shutdown immediate
2025-04-14 12:47:11.995 UTC [52] LOG: checkpoint complete: wrote 220 buffers (1.3%); 0 WAL file(s) added, 0 removed, 0 recycled; write=1.475 s, sync=0.006 s, total=1.502 s; sync files=11, longest=0.004 s, average=0.001 s; distance=1706 kB, estimate=1706 kB
2025-04-14 12:47:12.475 UTC [43] LOG: database system is shut down
110:M 14 Apr 2025 12:47:12.492 * DB saved on disk
110:M 14 Apr 2025 12:47:12.493 # Redis is now ready to exit, bye bye...

FAILED
--------------------
Pups::ExecError: if [-z "$LETSENCRYPT_ACCOUNT_EMAIL"]; then echo "LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set."; exit 1; fi failed with return #<Process::Status: pid 2923 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cmd"=>["if [-z \"$LETSENCRYPT_ACCOUNT_EMAIL\"]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL ENV variable is required and has not been set.\"; exit 1; fi", "/bin/bash -c \"if [[! \\\"$LETSENCRYPT_ACCOUNT_EMAIL\\\" =~ ([^@]+)@([^\\\\.]+) ]]; then echo \\\"LETSENCRYPT_ACCOUNT_EMAIL is not a valid email address\\\"; exit 1; fi\""]}
bootstrap failed with exit code 1
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.
9a7cc1d7e6fbf0611632c1a8ffd0355718fd76510460435570375f22f1566651

```

Infelizmente, não consigo postar nada acima disso, pois parece que não consigo rolar no terminal (o que eu costumava conseguir).

Meu `app.yml`:

 ![A imagem mostra uma seção de configuração com várias variáveis ​​redigidas relacionadas ao envio de e-mails e à configuração de um servidor SMTP para notificações de comentários na plataforma Discourse. (Legenda por IA)](https://global.discourse-cdn.com/meta/original/4X/7/6/4/7645a3de4a93d11913a1bc1851835ccb2d27f41c.png)

Como você pode ver, meu e-mail da conta LetsEncrypt está comentado, já que não o uso (acho que meu provedor de domínio já coloca proteções de domínio com https em seus domínios), então por que encontro esse problema?

---

_[View the full topic](https://meta.discourse.org/t/letsencrypt-error-when-rebuilding-forum/361846)._
