# 앱 재구축 시 메모리 부족 발생

**URL:** <https://meta.discourse.org/t/rebuild-app-runs-out-of-memory/255355>\
**Category:** Self-hosting\
**Tags:** unsupported-install\
**Created:** [2월 16, 2023, 2:35오후 UTC](https://meta.discourse.org/t/rebuild-app-runs-out-of-memory/255355 "2023-02-16T14:35:00Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![stormfinger](https://avatars.discourse-cdn.com/v4/letter/s/ed8c4c/32.png) [@stormfinger](https://meta.discourse.org/u/stormfinger)\
**Post date:** [2월 16, 2023, 2:35오후 UTC](https://meta.discourse.org/t/rebuild-app-runs-out-of-memory/255355/1 "2023-02-16T14:35:00Z")

</div>

hi  
포럼에서 권장했듯이, 이전의 Docker가 아닌 LXC 컨테이너 설치에서 Docker 버전으로 Discourse를 재설치하고 있습니다. 방금 스크립트가 오랜 시간 실행된 후 다음과 같은 오류로 멈췄습니다. 인터넷에서는 Docker가 메모리를 초과했다고 하는데, Docker가 아닌 버전은 정상적으로 작동했기 때문에 LXC 컨테이너 설정에서 Docker를 제한하고 있는지 확인하지 않았습니다. 어떻게 진행해야 할지 조언해 주실 수 있다면 감사하겠습니다. 이전 버전들을 LXC에서 정리하고 새 설치를 시작했으며, 리버스 프록시를 사용하고 있기 때문에 포럼에 적힌 대로 초기 값을 수동으로 입력하고 앱을 재빌드했습니다.

LXC 설정:  
cores = 2  
memory = 2048

```plaintext
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake themes:update assets:precompile' failed with return #<Process::Status: pid 1179 exit 137>
Location of failure: /usr/local/lib/ruby/gems/3.1.0/gems/pups-1.1.1/lib/pups/exec_command.rb:117:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"assets_precompile", "cmd"=>["su discourse -c 'bundle exec rake themes:update assets:precompile'"]}
bootstrap failed with exit code 137

```

---

_[View the full topic](https://meta.discourse.org/t/rebuild-app-runs-out-of-memory/255355)._
