בנייה מחדש של האפליקציה - שגיאה מוזרה

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?

האם אתה נמצא ב-sudo וב-root, נכון?

לייק 1

כל הניסיונות נעשו תחת “root” באותה הפגישה.

לייק 1

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 הבאים.

עדיין שום דבר לא עבד.

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 vector.

עם התקנת תוסף postgre vector, תהליך הבנייה הושלם בהצלחה, למרות שאני עדיין רואה ‘root/ לא ניתן לכתיבה’