# Failing to bootstrap on DO droplet w/mailjet

**URL:** https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660
**Category:** Self-hosting
**Created:** [4 בפברואר,‏ 2020,‏ 11:53pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660 "2020-02-04T23:53:50Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [4 בפברואר,‏ 2020,‏ 11:53pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/1 "2020-02-04T23:53:50Z")

</div>

Hi  
Im pulling my hair out a bit here.  
I following the [standard install](https://meta.discourse.org/t/142537?silent=true) instructions, have setup mailjet etc but the bootstrap fails every time.

heres the setup, I just cant see what Im missing  
Any ideas?

Thanks

```
Does this look right?

Hostname : forum.mydomain.com
Email : forumadmin@mydomain.com
SMTP address : in-v3.mailjet.com
SMTP port : 587
SMTP username : b91xxxxxxd3222d809xxxxxxe3de52d
SMTP password :xxxxxx5b75ecdf24f31c2axxxxxx6903
Let's Encrypt : PASSWORD (SECRET KEY)

```

* * *

then

```
FAILED

--------------------

Pups::ExecError: /bin/bash -c "if [[! \"$LETSENCRYPT_ACCOUNT_EMAIL\" =~ ([^@]+)@([^\.]+) ]]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL is not a valid email address\"; exit 1; fi" failed with return #<Process::Status: pid 5329 exit 1>

Location of failure: /pups/lib/pups/exec_command.rb:112: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\""]}

```

xxxxxxxxxxxxxxxxxxxxxxe6e31b17b7exxxxxxxxxxxxxxxxxx856eb0

```
**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.

```

---

<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: [5 בפברואר,‏ 2020,‏ 7:53am UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/2 "2020-02-05T07:53:08Z")

</div>

Why would the email in the let’s encrypt field be a password or secret key? It’s supposed to be an email address.

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 8:53am UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/3 "2020-02-05T08:53:22Z")

</div>

The script won’t let me enter anything for LETS ENCRYPT.  
As soon as I enter the SMTP username and password, off it goes.

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 12:18pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/4 "2020-02-05T12:18:45Z")

</div>

Yes it seems to be the Lets Encrypt variable but as I said above, the install script will not permit an opportunity to provide an email address. As soon as the SMTP password is received, it seems to jump past that stage, and pops an error.

You can see that here…

```
Hostname for your Discourse? [forum.uaptn.com]: 
Email address for admin account(s)? [forumadmin@uaptn.com]: xxxxxxxxe@protonmail.com
SMTP server address? [in-v3.mailjet.com]: 
SMTP port? [587]: 
SMTP user name? [b91xxxxxxxxxxxxxxxxxxde52d]: 
SMTP password? [1d2xxxxxxxxxxxxxxxxxxxxxxxxxxxx903]: 
./discourse-setup: line 438: [: too many arguments

Checking your domain name . . .
Connection to forum.uaptn.com succeeded.

Does this look right?

Hostname : forum.uaptn.com
Email : xxxxxxxxx@protonmail.com
SMTP address : in-v3.mailjet.com
SMTP port : 587
SMTP username : b91xxxxxxxxxxxxxxxxxxxxxe52d
SMTP password : 1d2cxxxxxxxxxxxxxxxxxxx5086903
Let's Encrypt : PASSWORD (SECRET KEY)

ENTER to continue, 'n' to try again, Ctrl+C to exit:

```

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [5 בפברואר,‏ 2020,‏ 12:52pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/5 "2020-02-05T12:52:25Z")

</div>

> [@bifterx](#):
>
> Let’s Encrypt

Enter an email address here instead of a Secret Password.

That email address is used to create an account in letsencrypt to get SSL certificate for discourse.

---

<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: [5 בפברואר,‏ 2020,‏ 12:53pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/6 "2020-02-05T12:53:29Z")

</div>

I don’t know how you’ would not be able I enter the let’s encrypt email address. Are you pasting an extra return?

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 12:53pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/7 "2020-02-05T12:53:57Z")

</div>

that sir, is a thought, let me try

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 12:57pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/8 "2020-02-05T12:57:53Z")

</div>

its not that. the script just breezes past the Lets Encrypt bit, as soon as I enter the password it pops that line 438: [: too many arguments and continues

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [5 בפברואר,‏ 2020,‏ 1:01pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/9 "2020-02-05T13:01:52Z")

</div>

Do your password has special characters? Try to enter a fake password without special characters like `123456` in the password and see if it asks the Let’s Encrypt email.

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 1:03pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/10 "2020-02-05T13:03:46Z")

</div>

no it doesn’t, its the generated p/word straight from mailjet but Ill try entering fake one.

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 1:05pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/11 "2020-02-05T13:05:27Z")

</div>

no dice. tried that - same error.

---

<div class="post-metadata">

### Author: ![lucasbasquerotto](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lucasbasquerotto/32/133376_2.png) [@lucasbasquerotto](https://meta.discourse.org/u/lucasbasquerotto)
#### Post date: [5 בפברואר,‏ 2020,‏ 1:13pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/12 "2020-02-05T13:13:31Z")

</div>

Perhaps the script is not asking because it’s already in your `app.yml` and then gives the error due to [this](https://stackoverflow.com/a/13781217/4850646) (because the email is already wrong in the file `app.yml`).

Try changing the email in the file manually and see if it works (`nano containers/app.yml`).

The [line that gave the error](https://github.com/discourse/discourse_docker/blob/master/discourse-setup#L438) tests to see if the Let’s Encrypt email is not empty to show it to you and ask if you want to change it, but because the condition doesn’t wrap the variable in double quotes, the value that is in your `app.yml` is expanded and give the error of `Too many arguments`.

I think that if the discourse team wrapped the variable in double quotes would help to avoid cases like those, but they should be rare anyway (probably the 1st time you run the setup, the value was set incorrectly).

---

<div class="post-metadata">

### Author: ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)
#### Post date: [5 בפברואר,‏ 2020,‏ 1:32pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/13 "2020-02-05T13:32:01Z")

</div>

that worked 👍 - as in it offers me that step after changing app.yml manually

fingers crossed for the bootstrap

thanks. a bunch

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [6 במרץ,‏ 2020,‏ 1:41pm UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/14 "2020-03-06T13:41:35Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
