# 매우 오래된 컨테이너에서 업그레이드 시 postgres 권한 오류로 실패

**URL:** https://meta.discourse.org/t/upgrading-from-a-very-old-container-fails-due-to-postgres-permission-errors/368597
**Category:** Bug
**Created:** [6월 2, 2025, 7:30오후 UTC](https://meta.discourse.org/t/upgrading-from-a-very-old-container-fails-due-to-postgres-permission-errors/368597 "2025-06-02T19:30:41Z")
**Posts on this page:** 1
**Showing post:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [6월 2, 2025, 7:30오후 UTC](https://meta.discourse.org/t/upgrading-from-a-very-old-container-fails-due-to-postgres-permission-errors/368597/1 "2025-06-02T19:30:41Z")

</div>

[Welcome to nginx! page before rebuild, site won't rebuild now](https://meta.discourse.org/t/welcome-to-nginx-page-before-rebuild-site-wont-rebuild-now/368433/14) 토론을 이어갑니다:

매우 오래된 컨테이너에서 업그레이드할 때 postgres 권한이 잘못 설정되는 경우가 드물게 있습니다. (postgres의 UID와 GID가 변경되었기 때문입니다. 이를 수정하려면 다음 작업이 필요합니다:

```plaintext
chmod -r 101.104 /var/discourse/shared/standalone/postgres_data

```

이 작업을 여러 번 수행해 왔습니다. 링크된 토픽에 대한 제 첫 번째 답변에서 문제를 인지했지만, 대부분의 사용자에게 필요한 UID/GID를 파악하는 것은 특히 쉽지 않습니다. (정상 작동하는 서버에서 `ls -ld /var/discourse/shared/standalone/postgres_data`를 실행해 보세요.)

---

_[View the full topic](https://meta.discourse.org/t/upgrading-from-a-very-old-container-fails-due-to-postgres-permission-errors/368597)._
