# 앱 재빌드 - 오류

**URL:** https://meta.discourse.org/t/rebuild-app-error/173954
**Category:** Self-hosting
**Created:** [12월 21, 2020, 7:42오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954 "2020-12-21T19:42:36Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![\_ESP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_esp/32/196119_2.png) [@\_ESP](https://meta.discourse.org/u/_ESP)
#### Post date: [12월 21, 2020, 7:42오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/1 "2020-12-21T19:42:36Z")

</div>

안녕하세요,  
Discourse 앱을 재구성하여 시작하려고 시도하고 있지만, 계속 이 오류가 발생하고 있습니다.

> ```
> ./launcher rebuild app
> Ensuring launcher is up to date
> Fetching origin
> remote: Enumerating objects: 4, done.
> remote: Counting objects: 100% (4/4), done.
> remote: Compressing objects: 100% (4/4), done.
> remote: Total 4 (delta 0), reused 0 (delta 0), pack-reused 0
> Unpacking objects: 100% (4/4), 2.93 KiB | 2.93 MiB/s, done.
> From https://github.com/discourse/discourse_docker
> * [new branch] add-maxmind-key-line-(commented-out)-to-default-config -> origin/add-maxmind-key-line-(commented-out)-to-default-config
> Launcher is up-to-date
> Stopping old container
> + /usr/bin/docker stop -t 60 app
> app
> cd /pups && git pull && /pups/bin/pups --stdin
> docker: invalid reference format: repository name must be lowercase.
> See '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.
> 
> ```

위 명령어를 실행했을 때의 전체 출력 결과입니다.  
Discourse Doctor를 여러 번 실행해 보았지만, 이 문제를 해결하는 데 직접적인 도움이 되는 정보는 제공되지 않았습니다.

도움 주시면 감사하겠습니다.  
미리 감사합니다.

---

<div class="post-metadata">

### Author: ![Ghan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghan/32/177964_2.png) [@Ghan](https://meta.discourse.org/u/Ghan)
#### Post date: [12월 21, 2020, 7:46오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/2 "2020-12-21T19:46:31Z")

</div>

`./launcher logs app`에 흥미로운 내용이 있나요?

---

<div class="post-metadata">

### Author: ![\_ESP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_esp/32/196119_2.png) [@\_ESP](https://meta.discourse.org/u/_ESP)
#### Post date: [12월 21, 2020, 7:47오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/3 "2020-12-21T19:47:07Z")

</div>

확인해 드릴게요.  
서버에 로그인할 테니 잠시만 기다려 주세요.

---

<div class="post-metadata">

### Author: ![\_ESP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_esp/32/196119_2.png) [@\_ESP](https://meta.discourse.org/u/_ESP)
#### Post date: [12월 21, 2020, 7:48오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/4 "2020-12-21T19:48:21Z")

</div>

많은 파일에 "파일을 찾을 수 없음"이라는 메시지가 표시되는 것 같습니다.

---

<div class="post-metadata">

### Author: ![Ghan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghan/32/177964_2.png) [@Ghan](https://meta.discourse.org/u/Ghan)
#### Post date: [12월 21, 2020, 7:51오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/5 "2020-12-21T19:51:58Z")

</div>

`/var/discourse`의 내용은 어떤가요? 명령어를 실행하는 곳이 그곳인가요? 컨테이너가 실행 중인지 확인할 수 있나요?

---

<div class="post-metadata">

### Author: ![\_ESP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/_esp/32/196119_2.png) [@\_ESP](https://meta.discourse.org/u/_ESP)
#### Post date: [12월 21, 2020, 7:53오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/6 "2020-12-21T19:53:49Z")

</div>

그래서 저는 설치를 간단히 다시 하기로 결정했고, 이제 실행하면

> ./launcher rebuild app

다음과 같은 오류가 출력됩니다.

```
FAILED
--------------------
Pups::ExecError: /usr/local/bin/ruby -e 'if ENV["DISCOURSE_SMTP_ADDRESS"] == "smtp.example.com"; puts "Aborting! Mail is not configured!"; exit 1; end' failed with return #<Process::Status: pid 192 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:112:in `spawn'
exec failed with the params "/usr/local/bin/ruby -e 'if ENV[\"DISCOURSE_SMTP_ADDRESS\"] == \"smtp.example.com\"; puts \"Aborting! Mail is not configured!\"; exit 1; end'"
75286dddc94d10daec3fb41a586df799de5eb633374f13c50a976aab68f6add6
**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.

```

이 문제가 아예 해결이 불가능한지 모르겠습니다.

---

<div class="post-metadata">

### Author: ![Ghan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ghan/32/177964_2.png) [@Ghan](https://meta.discourse.org/u/Ghan)
#### Post date: [12월 21, 2020, 7:55오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/7 "2020-12-21T19:55:02Z")

</div>

`/var/discourse/containers`에 유효한 app.yml 파일이 있나요? 없다면 설정 스크립트를 다시 실행해야 합니다.

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [12월 21, 2020, 7:56오후 UTC](https://meta.discourse.org/t/rebuild-app-error/173954/8 "2020-12-21T19:56:34Z")

</div>

다음과 같이 실행하세요.

`apt-get update`

`apt-get upgrade`

그 다음

` cd /var/discourse/`

`./launcher rebuild app `
