앱 재구축 시 이상한 오류 발생

I was performing my monthly maintenance and updates to Discourse and noticed the following errors during rebuild:

I, [2025-03-22T15:54:02.806441 #1]  INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake s3:upload_assets
`/root` is not writable.

and

I, [2025-03-22T15:54:12.239681 #1]  INFO -- : > cd /var/www/discourse && sudo -E -u discourse bundle exec rake s3:expire_missing_assets
`/root` is not writable.

Post rebuild:

  1. I am able to create posts and have new images uploaded to S3 without any issue.
  2. I was able to enter the app and run the rake commands without any issue.

Any ideas or suggestions?

You are on sudo and on root, correct?

All were attempted under “root” with the same session.

But was the process running as root?

Which is why I posted the question. This has never happened before with numerous rebuilds.

저도 같은 상황입니다.

제 경우에는 db:migrate가 제대로 실행되지 않고 있습니다.

서버를 여러 번 바꿔서 시도해 봤지만, 모두 동일한 오류 메시지가 나타났습니다.

처음에는 postgres가 16이나 17을 지원하지 않아서 그런가 싶어서, 아래 훅을 사용해 실행해 봤습니다.

그래도 여전히 작동하지 않았습니다.

hooks:
  after_code:
    - exec:
        cd: /var/www/discourse
        cmd:
          - export HOME=/var/www/discourse
          - export BUNDLE_USER_HOME=/var/www/discourse/.bundle
          - apt-get update
          - apt-get remove -y postgresql-client-15
          - apt-get install -y postgresql-client-16

app.yml의 거의 모든 추가 항목을 제거한 후, PG 벡터에 대한 오류를 발견했습니다.

PostgreSQL 벡터 확장 기능이 설치된 상태에서 빌드 프로세스는 성공적으로 완료되었지만, 여전히 ‘/root not writable’ 오류가 표시됩니다.