# 앱 재빌드 또는 3.4.0.beta4 업그레이드 실패

**URL:** <https://meta.discourse.org/t/unable-to-rebuild-app-upgrade-to-3-4-0-beta4/352581>\
**Category:** Product Support\
**Tags:** install\
**Created:** [2월 16, 2025, 7:04오후 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-upgrade-to-3-4-0-beta4/352581 "2025-02-16T19:04:54Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fhaina](https://avatars.discourse-cdn.com/v4/letter/f/dbc845/32.png) [@fhaina](https://meta.discourse.org/u/fhaina)\
**Post date:** [2월 16, 2025, 7:04오후 UTC](https://meta.discourse.org/t/unable-to-rebuild-app-upgrade-to-3-4-0-beta4/352581/1 "2025-02-16T19:04:54Z")

</div>

안녕하세요  
오늘 discourse를 재빌드할 때(최신 버전으로 업데이트하려고 했을 때) 첫 번째 오류가 발생했습니다. 로그에서 확인한 오류는 다음과 같습니다:

```plaintext
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 788 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
bootstrap failed with exit code 1

```

위쪽으로 스크롤해 보니 다음 오류들을 발견했습니다:

```plaintext
I, [2025-02-16T18:44:33.377980 #1] INFO -- : > /usr/local/bin/create_db
2025-02-16 18:44:33.470 UTC [60] postgres@postgres ERROR: database "discourse" already exists
2025-02-16 18:44:33.470 UTC [60] postgres@postgres STATEMENT: CREATE DATABASE d iscourse;
createdb: error: database creation failed: ERROR: database "discourse" already exists
2025-02-16 18:44:33.551 UTC [63] postgres@discourse ERROR: role "discourse" alr eady exists
2025-02-16 18:44:33.551 UTC [63] postgres@discourse STATEMENT: create user disc ourse;
ERROR: role "discourse" already exists

```

데이터베이스 문제인 것 같습니다. discourse-doctor로 문제를 해결하지 못했습니다…  
이 문제를 해결하는 데 도움을 주실 수 있을까요?

매우 감사합니다!

수정: 유사 주제 추천을 통해 확인해 보니, 여기와 같은 문제인 것 같습니다:

> [@런처 재빌드 오류](https://meta.discourse.org/t/launcher-rebuild-errors/312441):
>
> -------------------- Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #\<Process::Status: pid 1006 exit 1\> Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec\_command.rb:132:in `spawn' exec failed with the params {"cd"=\>"$home", "tag"=\>"migrate", "hook"=\>"db\_migrate", "cmd"=\>["su discourse -c 'bundle exec rake db:migrate'"]} bootstrap failed with exit code 1 \*\* FAILED TO BOOTSTRAP \*\* please scroll up and look …

불행히도 아직까지 문제가 스스로 해결되지 않았습니다.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-rebuild-app-upgrade-to-3-4-0-beta4/352581)._
