# 在 DO droplet 上启动失败，使用 mailjet

**URL:** <https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660>\
**Category:** Self-hosting\
**Created:** [2020 年2 月 4 日 23:53 UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660 "2020-02-04T23:53:50Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![bifterx](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@bifterx](https://meta.discourse.org/u/bifterx)\
发布日期： [2020 年2 月 4 日 23:53 UTC](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660/1 "2020-02-04T23:53:50Z")

</div>

你好，  
我有点抓狂了。  
我按照标准安装说明操作，已经设置了 Mailjet 等，但每次启动引导都失败。

这是我的配置，我就是看不出哪里出了问题。  
有什么建议吗？

谢谢

```
这样看起来对吗？

主机名 : forum.mydomain.com
邮箱 : forumadmin@mydomain.com
SMTP 地址 : in-v3.mailjet.com
SMTP 端口 : 587
SMTP 用户名 : b91xxxxxxd3222d809xxxxxxe3de52d
SMTP 密码 :xxxxxx5b75ecdf24f31c2axxxxxx6903
Let's Encrypt : 密码（密钥）

```

* * *

然后

```
失败

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

Pups::ExecError: /bin/bash -c "if [[! \"$LETSENCRYPT_ACCOUNT_EMAIL\" =~ ([^@]+)@([^\.]+) ]]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL 不是有效的邮箱地址\"; exit 1; fi" 执行失败，返回状态为 #<Process::Status: pid 5329 exit 1>

失败位置：/pups/lib/pups/exec_command.rb:112:in `spawn'

执行失败，参数如下：{"cmd"=>["if [-z \"$LETSENCRYPT_ACCOUNT_EMAIL\"]; then echo \"LETSENCRYPT_ACCOUNT_EMAIL 环境变量是必需的但尚未设置。\"; exit 1; fi", "/bin/bash -c \"if [[! \\\"$LETSENCRYPT_ACCOUNT_EMAIL\\\" =~ ([^@]+)@([^\\.]+) ]]; then echo \\\"LETSENCRYPT_ACCOUNT_EMAIL 不是有效的邮箱地址\\\"; exit 1; fi\""]}

```

xxxxxxxxxxxxxxxxxxxxxxe6e31b17b7exxxxxxxxxxxxxxxxxx856eb0

```
**启动引导失败** 请向上滚动查看之前的错误信息，可能不止一条。

./discourse-doctor 可能有助于诊断问题。

```

---

_[View the full topic](https://meta.discourse.org/t/failing-to-bootstrap-on-do-droplet-w-mailjet/140660)._
