# Discourse Docker 在 K8S 上启动时出现 ERROR

**URL:** https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319
**Category:** Support
**Tags:** unsupported-install
**Created:** [2020年六月19日 06:56 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319 "2020-06-19T06:56:28Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Divyaanand\_Sinha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/divyaanand_sinha/32/182302_2.png) [@Divyaanand\_Sinha](https://meta.discourse.org/u/Divyaanand_Sinha)
#### Post date: [2020年六月19日 06:56 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319/1 "2020-06-19T06:56:28Z")

</div>

我尝试在 Kubernetes 上的 Docker 中运行 Discourse。但在部署 Docker 后，当我尝试访问 Discourse 时，遇到了以下错误：

 ![Screenshot 2020-06-19 at 12.21.58 PM](https://global.discourse-cdn.com/meta/original/3X/a/0/a0dd1e31ff2e29ead6f8b3eb51c62deda0187866.png)

我检查了 `/var/www/discourse/log/unicorn_stderr.log`，看到了以下错误信息：

```
I, [2020-06-19T06:03:12.458829 #95] INFO -- : Refreshing Gem list
I, [2020-06-19T06:03:22.012156 #95] INFO -- : listening on addr=0.0.0.0:3000 fd=10
I, [2020-06-19T06:03:49.744882 #95] INFO -- : master process ready
E, [2020-06-19T06:04:06.155398 #95] ERROR -- : reaped #<Process::Status: pid 200 SIGKILL (signal 9)> worker=0
E, [2020-06-19T06:04:06.744237 #95] ERROR -- : reaped #<Process::Status: pid 214 SIGKILL (signal 9)> worker=1
E, [2020-06-19T06:04:06.744368 #95] ERROR -- : reaped #<Process::Status: pid 228 SIGKILL (signal 9)> worker=2
E, [2020-06-19T06:04:06.744453 #95] ERROR -- : reaped #<Process::Status: pid 242 SIGKILL (signal 9)> worker=3
E, [2020-06-19T06:04:11.048128 #95] ERROR -- : reaped #<Process::Status: pid 274 SIGKILL (signal 9)> worker=5
E, [2020-06-19T06:04:40.041398 #95] ERROR -- : reaped #<Process::Status: pid 311 SIGKILL (signal 9)> worker=7

```

我在其他日志文件中没有发现太多有用的信息。有人能给我一些建议吗？

---

<div class="post-metadata">

### Author: ![Divyaanand\_Sinha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/divyaanand_sinha/32/182302_2.png) [@Divyaanand\_Sinha](https://meta.discourse.org/u/Divyaanand_Sinha)
#### Post date: [2020年六月19日 07:03 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319/2 "2020-06-19T07:03:05Z")

</div>

有时候我也会遇到 502 网关错误

---

<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: [2020年六月19日 19:03 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319/3 "2020-06-19T19:03:45Z")

</div>

问题可能出在很多地方，比如你使用的 Docker 镜像、数据库配置、Ingress 等。正因如此，这里仅支持标准的 Docker 安装方式。你之前是否成功部署过？

---

<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: [2020年六月22日 07:55 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319/5 "2020-06-22T07:55:59Z")

</div>

哎呀，标准安装中的错误通常是由损坏的插件引起的。请注释掉除 Docker 管理器之外的所有内容，然后运行 `./launcher rebuild app`。

我们无法为您提供 Kubernetes 方面的帮助。

---

<div class="post-metadata">

### Author: ![Divyaanand\_Sinha](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/divyaanand_sinha/32/182302_2.png) [@Divyaanand\_Sinha](https://meta.discourse.org/u/Divyaanand_Sinha)
#### Post date: [2020年六月22日 16:27 UTC](https://meta.discourse.org/t/discourse-docker-startup-error-on-k8s/155319/6 "2020-06-22T16:27:07Z")

</div>

谢谢，但我看到 unicorn\_stderr.log 中的错误，这可能是一个问题吗？是否有特定原因，还是同样可能由多种因素引起？
