# 启动器重建时出现无效的引用格式

**URL:** https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741
**Category:** Support
**Created:** [2020年五月7日 17:04 UTC](https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741 "2020-05-07T17:04:09Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![JpMaxMan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jpmaxman/32/122099_2.png) [@JpMaxMan](https://meta.discourse.org/u/JpMaxMan)
#### Post date: [2020年五月7日 17:04 UTC](https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741/1 "2020-05-07T17:04:10Z")

</div>

我在重新构建启动器时突然遇到了以下错误。这些 Discourse 实例已经运行多年，一直没有问题，而且 YAML 文件自上次成功更新 Discourse 以来也未曾修改。非常感谢您的任何帮助。

```plaintext
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 10 app
app
cd /pups && git pull && /pups/bin/pups --stdin
/usr/bin/docker: invalid reference format: repository name must be lowercase.
See '/usr/bin/docker run --help'.
cat: cids/app_bootstrap.cid: No such file or directory
"docker rm" requires at least 1 argument.
See 'docker rm --help'.

Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]

Remove one or more containers
rm: cannot remove 'cids/app_bootstrap.cid': No such file or directory
**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.

```

此外，我尝试查看 /pups 目录，但系统提示该目录不存在？

我可以通过简单地重新启动容器，让 Discourse 实例恢复正常运行。

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [2020年五月7日 21:17 UTC](https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741/2 "2020-05-07T21:17:56Z")

</div>

查看这个帖子。问题已经修复。但你可能遇到了文中描述的问题。

> [@Can't rebuild because ssh template is removed](https://meta.discourse.org/t/cant-rebuild-because-ssh-template-is-removed/150285?u=heliosurge):
>
> We are trying to rebuild our discourse installation (as asked by the admin interface) Here are the errors, please help, we are not verse in docker root@school-forum:/var/discourse# ./launcher rebuild app Ensuring launcher is up to date Fetching origin Launcher is up-to-date cat: templates/sshd.template.yml: No such file or directory cd /pups && git pull && /pups/bin/pups --stdin /usr/bin/docker: invalid reference format: repository name must be lowercase. See '/…

---

<div class="post-metadata">

### Author: ![JpMaxMan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jpmaxman/32/122099_2.png) [@JpMaxMan](https://meta.discourse.org/u/JpMaxMan)
#### Post date: [2020年五月8日 16:21 UTC](https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741/3 "2020-05-08T16:21:44Z")

</div>

非常感谢！！看来注释掉：

`templates/sshd.template.yml`

解决了这个问题。

---

<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: [2020年六月7日 16:21 UTC](https://meta.discourse.org/t/invalid-reference-format-on-launcher-rebuild/150741/4 "2020-06-07T16:21:49Z")

</div>

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