# 安装时出错

**URL:** https://meta.discourse.org/t/error-when-attempting-install/94850
**Category:** Self-hosting
**Created:** [2018年八月16日 06:05 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850 "2018-08-16T06:05:04Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [2018年八月16日 06:05 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/1 "2018-08-16T06:05:04Z")

</div>

Hi,

Have installed Docker / Git  
Cloned Image  
Copied templates app.yml, redis.yml & data.yml

Then modified the app.yml file to include my postgreSQL & Redis details along with host, notifications & so on.

When I run sudo ./launcher bootstrap app

I get following error message

Status: Downloaded newer image for discourse/base:2.0.20180802  
cd /pups && git pull && /pups/bin/pups --stdin  
/usr/bin/docker: Error response from daemon: could not get container for data: No such container: data.  
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

Thanks in advance for any assistance.

Todd

---

<div class="post-metadata">

### Author: ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)
#### Post date: [2018年八月16日 06:28 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/2 "2018-08-16T06:28:44Z")

</div>

Is this a fresh install or an upgrade? Which installation instructions are you following?

You normally shouldn’t have to edit the .yml files for a basic install, ./discourse-setup should handle all that for you.  
If there isn’t a specific need for separate containers and a more complex setup I would just follow [discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md) and keep it as simple as possible until you have the instance up and running.

I’m unfamiliar with the data.yml container but it’s probably meant to handle persistent storage in a fully cloud-native installation like on Kubernetes when overlayfs isn’t an option.

---

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [2018年八月16日 06:47 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/3 "2018-08-16T06:47:47Z")

</div>

Thanks for your response.

It’s a fresh install but I want to use my own PostgreSQL & Redis

---

<div class="post-metadata">

### Author: ![ssvenn](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ssvenn/32/86740_2.png) [@ssvenn](https://meta.discourse.org/u/ssvenn)
#### Post date: [2018年八月16日 06:51 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/4 "2018-08-16T06:51:43Z")

</div>

…oh wait data.yml is the postgres server container I think. It should probably be paired up with web\_only.yml instead of app.yml but I would really just go with the easy single-container setup unless you have a good reason to split it up.

You probably also have to build build the redis and postgres containers before the rest, have you tried “./launcher bootstrap data” and “./launcher bootstrap redis” ?

When you say “my own” do you mean outside of docker, or just the separate containers? I don’t think providing your own postgresql and redis is officially supported, you would have to pick apart the scripts to see how the Discourse bootstrap process configures everything…

---

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [2018年八月16日 08:54 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/5 "2018-08-16T08:54:56Z")

</div>

Thanks again for your response,

Yes outside docker- AWS

---

<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: [2018年八月16日 09:30 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/6 "2018-08-16T09:30:14Z")

</div>

There is an article about using external postgres which may fit your usecase.

> [@Configure Discourse to use a separate PostgreSQL server](https://meta.discourse.org/t/running-discourse-with-a-separate-postgresql-server/46375):
>
> Let’s say you’re using AWS RDS, or an existing PostgreSQL server managed elsewhere. It’s fairly straightforward to get Discourse to use such a setup, without needing to grant superuser privileges to anything that Discourse itself runs. Here’s how. Prerequisites Discourse requires PostgreSQL’s major version to [match what we ship with in our docker images](https://github.com/discourse/discourse_docker/blob/main/image/base/Dockerfile#L37); if you try to run on a newer or older version, it might work, but we don’t guarantee it, and if something breaks in the future, you get to …

---

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [2018年八月16日 13:25 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/7 "2018-08-16T13:25:10Z")

</div>

Thanks @itsbhanusharma Ill take a look in the morning.

Looks promising.

Cheers

Todd

---

<div class="post-metadata">

### Author: ![Tango](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tango/32/97926_2.png) [@Tango](https://meta.discourse.org/u/Tango)
#### Post date: [2018年八月17日 06:50 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/8 "2018-08-17T06:50:25Z")

</div>

Thanks again @itsbhanusharma

This was exactly what I was looking for.

Only catch for me that was not documented (maybe stating the obvious) but you have to grant Can Login permission to your new Discourse user in the database.

So stoked right now.

Cheers

Todd

---

<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: [2018年九月16日 06:50 UTC](https://meta.discourse.org/t/error-when-attempting-install/94850/9 "2018-09-16T06:50:32Z")

</div>

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