שגיאת עדכון Discourse עם Terser

סיכום מבוסס בינה מלאכותית

BrianC reported an issue updating Discourse via the admin panel, encountering a Terser plugin error related to “Resource temporarily unavailable (os error 11)” during the update process. Ed_S suggested potential memory issues, recommending checking system memory usage with free -h and vmstat, as well as reviewing dmesg for OOM messages. They also mentioned kernel tunables like overcommit_memory and transparent_hugepage. pfaffman asked about a recent rebuild and the PostgreSQL 15 update. BrianC later noted that the issue resolved after disabling all plugins, and it did not return upon re-enabling them, suggesting a plugin-related cause. BrianC thanked the community for their help.

שלום לכולם,

יש לי בעיה בעדכון הפורום שלי ב-Discourse דרך לוח הניהול, ואני זקוק לעזרה כדי להבין מה לא בסדר. כאשר אני מנסה לעדכן, אני מקבל הודעת שגיאה, וזה מפסיק את כל התהליך. הנה מה שקורה:
אני משתמש באופציה “עדכן את Discourse” מלוח הניהול כדי לבצע את העדכון.

כאשר מנסים לעדכן את Discourse מהלוח הניהול, מופיעים מספר פעמים הערכים “False False False” ולאחר מכן הודעת שגיאה שאומרת שהעדכון נכשל עם השגיאה הזו.false - ./node_modules/.bin - /var/www/discourse/node_modules/.bin - /var/www/discourse/vendor/bundle/ruby/3.3.0/bin - /usr/local/sbin - /usr/local/bin - /usr/sbin - /usr/bin - /sbin - /bin פלטפורמה: לינוקס x64 זיכרון פנוי: 61129658368 סך הזיכרון: 67272630272 זמן הפעלה: 30579.58 ממוצע עומס: 1.15,0.42,0.16 מעבדים: - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 4300 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 3223 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 2548 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 4039 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1358 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1200 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1200 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1200 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 3954 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1200 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1199 - אינטל(R) זיאון(R) E-2276G CPU @ 3.80GHz - 1676 רגישות: LE גרסאות: - אקרון: 8.14.0 - אדא: 2.9.2 - אמארו: 0.3.0 - ארס: 1.34.4 - בראטרלי: 1.1.0 - cjs_module_lexer: 1.4.1 - קרדר: 46.0 - ICU: 76.1 - llhttp: 9.2.1 - מודולים: 127 - napi: 10 - nbytes: 0.1.1 - ncrypto: 0.0.1 - nghttp2: 1.64.0 - nghttp3: 1.6.0 - ngtcp2: 1.10.0 - node: 22.14.0 - openssl: 3.0.15+quic - simdjson: 3.10.1 - simdutf: 6.0.3 - sqlite: 3.47.2 - tz: 2024b - undici: 6.21.1 - unicode: 16.0 - uv: 1.49.2 - uvwasi: 0.0.21 - v8: 12.4.254.21-node.22 - zlib: 1.3.0.1-motley-82a5fec שגיאה סיכום: - broccoliBuilderErrorStack: שגיאה: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל לטפל ב: כשל בהדפסת ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) שגיאה: לא הצליח לטפל: כשל בהדפסת ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) ב- TerserPlugin.buildError (/var/www/discourse/node_modules/.pnpm/terser-webpack-plugin@5.3.11_@swc+core@1.11.1_esbuild@0.25.0_webpack@5.98.0_@swc+core@1.11.1_esbuild@0.25.0_/node_modules/terser-webpack-plugin/dist/index.js:266:20) ב- /var/www/discourse/node_modules/.pnpm/terser-webpack-plugin@5.3.11_@swc+core@1.11.1_esbuild@0.25.0_webpack@5.98.0_@swc+core@1.11.1_esbuild@0.25.0_/node_modules/terser-webpack-plugin/dist/index.js:455:26 - קוד: [לא מוגדר] - קודמסגרת: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל לטפל ב: כשל בהדפסת ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) שגיאה: לא הצליח לטפל: כשל בהדפסת ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) - הודעת שגיאה: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל לטפל ב: כשל בהדפסת ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) שגיאה: לא הצליח לטפל: כשל בהדפסה ל stdout: שגיאת משאבים זמנית לא זמינה (שגיאת os 11) ב- PackagerRunner (@embroider/webpack) - מיקום: - עמודה: [לא מוגדר] - קובץ:assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js - שורה: [null] - תפריטעץ: [undefined] - הודעה: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל בטיפול ב: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) שגיאה: נכשלה הטיפול: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) ב-PackagerRunner (@embroider/webpack) - שם: שגיאה - סימוןnode: @embroider/webpack - שםנוד: PackagerRunner - הודעתשגיאהמקורית: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל בטיפול ב: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) שגיאה: נכשלה הטיפול: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) - שורתקוד: שגיאה: assets/chunk.cbb4d6362a2090db10ec.d41d8cd9.js מהתוסף Terser נכשל בטיפול ב: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) שגיאה: נכשלה הטיפול: נכשלה ההדפסה ל-stdout: Resource temporarily unavailable (שגיאת מערכת 11) ב-TerserPlugin.buildError (/var/www/discourse/node_modules/.pnpm/terser-webpack-plugin@5.3.11_@swc+core@1.11.1_esbuild@0.25.0_webpack@5.98.0_@swc+core@1.11.1_esbuild@0.25.0_/node_modules/terser-webpack-plugin/dist/index.js:266:20) ב /var/www/discourse/node_modules/.pnpm/terser-webpack-plugin@5.3.11_@swc+core@1.11.1_esbuild@0.25.0_webpack@5.98.0_@swc+core@1.11.1_esbuild@0.25.0_/node_modules/terser-webpack-plugin/dist/index.js:455:26 …

Could be a shortage of virtual memory: try adding RAM or adding swap. (Fork failing with EAGAIN can be memory shortage)

Have a look at

free -h
vmstat 5 5

There are two kernel tunables which can improve memory efficiency

cat /proc/sys/vm/overcommit_memory
cat /sys/kernel/mm/transparent_hugepage/enabled

(See MKJ’s Opinionated Discourse Deployment Configuration)

@Ed_S thank you. I have 61 GB of RAM available out of 67. Could it still be virtual memory?

זה הרבה, אבל vmstat ו- free יכולים לספר לנו איך זה משומש.

בדקת את הפלט של dmesg לגבי הודעות על זיכרון ו-OOM?

כמה גדול בסיס הנתונים שלך?

Have you run a command line rebuild lately? Have you seen PostgreSQL 15 update

Sorry for the delayed response. The issue seemed to go away without understanding why. I think it was/is a plugin because I disabled them all and the site updated normally for admin panel. I expected the issue to return when re-enabled the plugins, but it did not. I will need to check again if it returns.

Thanks for the assistance.