# 更新时遇到一些麻烦（很多bug）

**URL:** https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525
**Category:** Support
**Created:** [2021年七月18日 18:34 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525 "2021-07-18T18:34:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Ana\_d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ana_d/32/184836_2.png) [@Ana\_d](https://meta.discourse.org/u/Ana_d)
#### Post date: [2021年七月18日 18:34 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525/1 "2021-07-18T18:34:53Z")

</div>

你好，

我正尝试通过 DigitalOcean 的 Droplet 控制台更新我的 Discourse 论坛。我对 Docker 不太熟悉。

我尝试了以下操作：

> [@Manually update Discourse and Docker image to latest](https://meta.discourse.org/t/how-do-i-manually-update-discourse-and-docker-image-to-latest/23325):
>
> bookmark This guide provides step-by-step instructions for manually updating Discourse, the Docker container, and the Ubuntu operating system on a self-hosted setup. person_raising_hand Required user level: System Administrator warning SSH access to the server. If you self-host Discourse, you occasionally need to run a manual update via the command line to get the latest security releases and newest libraries. These updates are not picked up in admin/upgrade, which is why you’ll occa…

但收到了以下错误信息：

参数过多

之后，我点击了错误信息末尾的链接：

> [@Troubleshoot docker installation issues](https://meta.discourse.org/t/how-do-i-debug-docker-installation-issues/13657):
>
> I just ran: cd /var/discourse git pull ./launcher rebuild app And am getting: Your Docker installation is not working correctly See: https://meta.discourse.org/t/docker-error-on-bootstrap/13657/18?u=sam What do I do? First things first … scroll up. The error will usually contain multiple lines, the last line just points you here, previous lines point at the actual issue. Second thing … can you run a trivial container… try. docker run -it --rm hello-world If this is not working…

并尝试运行以下命令：

> docker run -it --rm hello-world

我尝试了清理操作，但担心会丢失我的工作成果。

有人能帮我吗？

感谢您的阅读。

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [2021年七月18日 19:31 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525/2 "2021-07-18T19:31:41Z")

</div>

您好，

考虑到您的论坛已上线（您仍然可以下载备份以防万一），并且假设您的主机并非过于陈旧且此功能此前曾正常工作，这可能只是暂时的网络问题。您能再尝试重建一次吗？

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2021年七月18日 20:09 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525/3 "2021-07-18T20:09:17Z")

</div>

你可以运行 `./launcher start app` 来重新启动你的实例，跳过更新。

关于更新过程中出现的错误，这似乎是 [hub.docker.com](http://hub.docker.com) 服务的问题。请稍后再试，他们可能正面临一些技术故障。

---

<div class="post-metadata">

### Author: ![Ana\_d](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ana_d/32/184836_2.png) [@Ana\_d](https://meta.discourse.org/u/Ana_d)
#### Post date: [2021年七月19日 17:56 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525/4 "2021-07-19T17:56:22Z")

</div>

成功了！

看来当我复制/粘贴命令时：

> cd /var/discourse  
> git pull  
> ./launcher rebuild app

空格太多了，这就是我收到“参数过多”错误的原因：

![too many arguments](https://cdck-file-uploads-global.s3.dualstack.us-west-2.amazonaws.com/meta/optimized/3X/b/c/bcc3a160aa6ad021546c757e8ef47cc7ba8c7bc6_2_690x50.png)

所以我逐行单独复制/粘贴，结果完美运行。感谢大家的时间！

---

<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: [2021年八月18日 17:56 UTC](https://meta.discourse.org/t/some-trouble-updating-many-bugs/197525/5 "2021-08-18T17:56:24Z")

</div>

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