# My site is down after I installed a plugin

**URL:** https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923
**Category:** Self-hosting
**Created:** [December 6, 2022, 3:40am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923 "2022-12-06T03:40:10Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 3:40am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/1 "2022-12-06T03:40:11Z")

</div>

I went to install a plugin and it started to give this following error in the part where I do the` ./launcher rebuild app`

i use `./discourse-doctor` but dont solve

```plaintext
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 2296 exit 1>
Location of failure: /usr/local/lib/ruby/gems/2.7.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117: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.
324b6cc40db917188cb3d87640ff1a1c23142c551b71bc55b0f33ccd88e88af7

```

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 4:56am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/2 "2022-12-06T04:56:37Z")

</div>

now show this

```plaintext
root@ForumPandex:/var/discourse# ./launcher rebuild app
x86_64 arch detected.
Ensuring launcher is up to date
Fetching origin
Launcher is up-to-date
(<unknown>): could not find expected ':' while scanning a simple key at line 67 column 3 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

```

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [December 6, 2022, 5:10am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/3 "2022-12-06T05:10:00Z")

</div>

It looks like you may have a typo in your `app.yml`.

The first error message would point to your let’sencrypt email, but the second is suggesting you have a missing colon. Can you see anything obvious you may have accidentally addded/deleted while editing to add the plugin?

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 5:18am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/4 "2022-12-06T05:18:43Z")

</div>

```plaintext
ger.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-yearly-review.git
          - git clone https://github.com/mondiscourse/discourse-formatting-toolbar.git
          - git clone https://github.com/techapj/discourse-custom-topic-button.git
          - git clone https://github.com/discourse/discourse-chat.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/communiteq/discourse-delete-unreplied-topics
          - git clone https://github.com/discourse/discourse-animated-avatars
          - git clone https://github.com/gnunicorn/discourse-plugin-replygif
          - git clone https://github.com/discourse/discourse-gamification
          - git clone https://github.com/discourse/discourse-reactions.git
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-yearly-review.git
          - git clone https://github.com/mondiscourse/discourse-formatting-toolbar.git
          - git clone https://github.com/techapj/discourse-custom-topic-button.git
          - git clone https://github.com/discourse/discourse-chat.git
          - git clone https://github.com/discourse/discourse-adplugin.git
          - git clone https://github.com/communiteq/discourse-delete-unrepl>
          - git clone https://github.com/discourse/discourse-animated-avata>
          - git clone https://github.com/gnunicorn/discourse-plugin-replygif
          - git clone https://github.com/discourse/discourse-gamification
          - git clone https://github.com/discourse/discourse-reactions.git
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.>

## Any custom commands to run after building
run:
  - exec: echo "Beginning of custom commands"
  ## If you want to set the 'From' email address for your first registration, uncomment and change:
  ## After getting the first signup email, re-comment the line. It only needs to run once.
  #- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
  - exec: echo "End of custom commands"

```

---

<div class="post-metadata">

### Author: ![omarfilip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/omarfilip/32/208019_2.png) [@omarfilip](https://meta.discourse.org/u/omarfilip)
#### Post date: [December 6, 2022, 6:34am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/5 "2022-12-06T06:34:08Z")

</div>

@JammyDodger is right about the typo. I see at least three:

 ![Screenshot 2022-12-05 at 10.43.34 PM](https://global.discourse-cdn.com/meta/original/4X/8/2/a/82a35e74af162cf97a03c352cada28c23f52d584.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 6, 2022, 7:05am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/6 "2022-12-06T07:05:29Z")

</div>

That, and all your plugins are in there twice.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 8:16am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/7 "2022-12-06T08:16:33Z")

</div>

> [@omarfilip](#):
>
> @JammyDodger is right about the typo. I see at least three:

> [@RGJ](#):
>
> That, and all your plugins are in there twice.

actually, when I created it I copied it wrong, is there any way to copy everything at once from the prompt?

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 9:32am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/8 "2022-12-06T09:32:39Z")

</div>

Guys, I don’t even know what I did anymore, I just know that the site is still down, how can I know what I did wrong?

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 9:35am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/9 "2022-12-06T09:35:15Z")

</div>

now the discourse doctor says it

````plaintext
======================================== ERROR ========================================
                                    UNEXPECTED ERROR

Timeout to open TCP connection to email-smtp.us-east-1.amazonaws.com:25 (exceeds 5 seconds)

====================================== SOLUTION =======================================
This is not a common error. No recommended solution exists!

Please report the exact error message above to https://meta.discourse.org/
(And a solution, if you find one!)
=======================================================================================
Replacing: SMTP_PASSWORD
Replacing: LETSENCRYPT_ACCOUNT_EMAIL
Replacing: DEVELOPER_EMAILS
Replacing: DISCOURSE_DB_PASSWORD
Replacing: Sending mail to

==================== DONE! ====================
Would you like to serve a publicly available version of this file? (Y/n)```
````

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 6, 2022, 11:06am UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/10 "2022-12-06T11:06:55Z")

</div>

You should be able to restart the old container with

```
./launcher start app

```

Then you need to straighten out your yml.

Oh, discourse doctor should have restatred the old container.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 12:54pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/11 "2022-12-06T12:54:21Z")

</div>

still bad  
i’m desperate

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 6, 2022, 3:03pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/12 "2022-12-06T15:03:11Z")

</div>

The easiest thing to do might be to rename your app.yml to broken.yml, then run `./discourse-setup`. That will create a new app.yml, but don’t delete your existing data.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 6:16pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/13 "2022-12-06T18:16:39Z")

</div>

i try it and now show it

```plaintext
Checking your domain name . . .
WARNING: Port 443 of computer does not appear to be accessible using hostname: www.dexforum.com.br].
WARNING: Connection to http://www.dexforum.com.br] (port 80) also fails.

This suggests that www.dexforum.com.br] resolves to some IP address that does not reach this
machine where you are installing discourse.

The first thing to do is confirm that www.dexforum.com.br] resolves to the IP address of this server.
You usually do this at the same place you purchased the domain.

If you are sure that the IP address resolves correctly, it could be a firewall issue.
A web search for "open ports YOUR CLOUD SERVICE" might help.

This tool is designed only for the most standard installations. If you cannot resolve
the issue above, you will need to edit containers/app.yml yourself and then type

./launcher rebuild app

```

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 6:29pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/14 "2022-12-06T18:29:00Z")

</div>

well, now I managed to do the discourse setup, but when rebuilding, this appears

```plaintext
(<unknown>): mapping values are not allowed in this context at line 98 column 12 -e LANG=en_US.UTF-8
YAML syntax error. Please check your containers/*.yml config files.

```

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [December 6, 2022, 6:43pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/15 "2022-12-06T18:43:43Z")

</div>

> [@Danielabc](#):
>
> now I managed to do the discourse setup, but when rebuilding, this appears

Did you edit the `app.yml` by hand, to, say, ,add a plugin?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 6, 2022, 7:06pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/16 "2022-12-06T19:06:51Z")

</div>

Yep, that’s where the after\_code hooks for plugins are.

@danielabc if you want us to help you then you need to provide feedback on the steps we provide, ideally without coloring outside the lines. Installing plugins will come after we help you rebuild a working instance.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 7:39pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/17 "2022-12-06T19:39:43Z")

</div>

> [@pfaffman](#):
>
> Did you edit the `app.yml` by hand, to, say, ,add a plugin?

> [@Stephen](#):
>
> Yep, that’s where the after\_code hooks for plugins are.
> 
> @danielabc if you want us to help you then you need to provide feedback on the steps we provide, ideally without coloring outside the lines. Installing plugins will come after we help you rebuild a working instance.

I managed to solve it, but do you know what I found strange, was that all the .yml that Discourse created had the wrong formatting? Is this possible? I didn’t do anything, I didn’t even edit it, but the .yml was always created with the wrong formatting.

I used [https://www.yamllint.com/](https://www.yamllint.com/) which I found on google, it helped me with the right formatting, and finally I was able to do a rebuild

but I never took into account that the .yml file could be being badly formatted by the system, this left me confused

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 6, 2022, 7:53pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/18 "2022-12-06T19:53:19Z")

</div>

Discourse-setup hasn’t been changed in about six months.

The only way I can think that it could produce poorly-formed yaml is through the responses to the prompts.

Did you copy and paste the responses, or enter them by hand?

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 6, 2022, 9:25pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/19 "2022-12-06T21:25:09Z")

</div>

> [@Danielabc](#):
>
> `www.dexforum.com.br]`

That bracket should not be there.

---

<div class="post-metadata">

### Author: ![danielabc](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@danielabc](https://meta.discourse.org/u/danielabc)
#### Post date: [December 6, 2022, 10:00pm UTC](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923/20 "2022-12-06T22:00:03Z")

</div>

I just generated a command to create a new .yml, but I didn’t change anything in the new .yml, I just did the rebuild which gave an error due to bad formatting

[Next page](https://meta.discourse.org/t/my-site-is-down-after-i-installed-a-plugin/247923.md?page=2)
