تثبيت جديد فاشل

VPS 4 نواة 4 جيجا 200 جيجا. Ubuntu 24 lts
تسجيل النطاق: IONOS

[2025-03-18T14:54:01.632117 #1]  INFO -- : cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build'
Node.js heap_size_limit (2005.75) is less than 2048MB. Setting --max-old-space-size=2048 and CHEAP_SOURCE_MAPS=1
...[ConfigLoader]
...[Babel: discourse-widget-hbs > applyPatches]
...[Babel: @embroider/macros > applyPatches]
...[Babel: ember-tracked-storage-polyfill > applyPatches]
...[Babel: pretty-text > applyPatches]
...[Babel: @ember/legacy-built-in-components > applyPatches]
...[Babel: ember-source > applyPatches]
[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/app/assets/javascripts/discourse/ember/ember-template-compiler.js as it exceeds the max of 500KB.
[BABEL] Note: The code generator has deoptimised the styling of /var/www/discourse/app/assets/javascripts/discourse/ember/ember.js as it exceeds the max of 500KB.
...[Babel: @glimmer/component > applyPatches]
...[Babel: @ember/test-waiters > applyPatches]
...[Babel: dialog-holder > applyPatches]
...[Babel: ember-buffered-proxy > applyPatches]
...[Babel: float-kit > applyPatches]
...[Babel: select-kit > applyPatches]
...[@embroider/compat/app]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
2025-03-18 14:55:50.590 UTC [51] LOG:  checkpoint starting: time
2025-03-18 14:55:55.247 UTC [51] LOG:  checkpoint complete: wrote 48 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=4.612 s, sync=0.016 s, total=4.657 s; sync files=38, longest=0.004 s, average=0.001 s; distance=202 kB, estimate=202 kB
...[@embroider/webpack]
109:M 18 Mar 2025 14:55:57.065 * 100 changes in 300 seconds. Saving...
109:M 18 Mar 2025 14:55:57.067 * Background saving started by pid 758
758:C 18 Mar 2025 14:55:57.087 * DB saved on disk
758:C 18 Mar 2025 14:55:57.088 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
109:M 18 Mar 2025 14:55:57.168 * Background saving terminated with success
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[@embroider/webpack]
...[SourceMapConcat]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[Babel: admin > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
...[TerserWriter]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[SourceMapConcat]
...[Babel: discourse > applyPatches]
...[TerserWriter]
...[Babel: discourse-plugins > applyPatches]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[Babel: discourse-plugins > applyPatches]
...[SourceMapConcat]
...[TerserWriter]
I, [2025-03-18T14:58:35.058799 #1]  INFO -- : Building
Environment: production
The setting 'staticAddonTrees' will default to true in the next version of Embroider and can't be turned off. To prepare for this you should set 'staticAddonTrees: true' in your Embroider config.
The setting 'staticAddonTestSupportTrees' will default to true in the next version of Embroider and can't be turned off. To prepare for this you should set 'staticAddonTestSupportTrees: true' in your Embroider config.
building...
undefined
 ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL  Command was killed with SIGKILL (Forced termination): ember build -prod

I, [2025-03-18T14:58:35.082462 #1]  INFO -- : Terminating async processes
I, [2025-03-18T14:58:35.082680 #1]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 42
I, [2025-03-18T14:58:35.082935 #1]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 109
2025-03-18 14:58:35.083 UTC [42] LOG:  received fast shutdown request
109:signal-handler (1742309915) Received SIGTERM scheduling shutdown...
2025-03-18 14:58:35.092 UTC [42] LOG:  aborting any active transactions
2025-03-18 14:58:35.101 UTC [42] LOG:  background worker "logical replication launcher" (PID 56) exited with exit code 1
2025-03-18 14:58:35.108 UTC [51] LOG:  shutting down
2025-03-18 14:58:35.113 UTC [51] LOG:  checkpoint starting: shutdown immediate
2025-03-18 14:58:35.137 UTC [51] LOG:  checkpoint complete: wrote 0 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.009 s, sync=0.001 s, total=0.029 s; sync files=0, longest=0.000 s, average=0.000 s; distance=0 kB, estimate=182 kB
109:M 18 Mar 2025 14:58:35.150 # User requested shutdown...
109:M 18 Mar 2025 14:58:35.151 * Saving the final RDB snapshot before exiting.
109:M 18 Mar 2025 14:58:35.166 * DB saved on disk
109:M 18 Mar 2025 14:58:35.167 # Redis is now ready to exit, bye bye...
2025-03-18 14:58:35.174 UTC [42] LOG:  database system is shut down


FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake assets:precompile:build' failed with return #<Process::Status: pid 696 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"cd"=>"$home", "tag"=>"build", "hook"=>"assets_precompile_build", "cmd"=>["su discourse -c 'bundle exec rake assets:precompile:build'"]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.

Followed standard install. Set domain DNS a name record “community” with IP address.

IONOS doesn’t have free SSL. So populated discourse-setup let’s encrypt email entry.

Need help figuring this out.

VPS 4 نواة 4 جيجا 200 جيجا. Ubuntu 24 lts
تسجيل النطاق: IONOS

[2025-03-18T14:54:01.632117 #1] INFO – : cd /var/www/discourse && su discourse -c ‘bundle exec rake assets:precompile:build’
Node.js heap_size_limit (2005.75) is أقل من 2048 ميجابايت. تعيين --max-old-space-size=2048 و CHEAP_SOURCE_MAPS=1
…[ConfigLoader]
…[Babel: discourse-widget-hbs > applyPatches]
…[Babel: @embroider/macros > applyPatches]
…[Babel: ember-tracked-storage-polyfill > applyPatches]
…[Babel: pretty-text > applyPatches]
…[Babel: @ember/legacy-built-in-components > applyPatches]
…[Babel: ember-source > applyPatches]
[BABEL] ملاحظة: مولد الكود قد قلل من تحسين تنسيق الملف /var/www/discourse/app/assets/javascripts/discourse/ember/ember-template-compiler.js لأنه يتجاوز الحد الأقصى البالغ 500 كيلوبايت.
[BABEL] ملاحظة: مولد الكود قد قلل من تحسين تنسيق الملف /var/www/discourse/app/assets/javascripts/discourse/ember/ember.js لأنه يتجاوز الحد الأقصى البالغ 500 كيلوبايت.
…[Babel: @glimmer/component > applyPatches]
…[Babel: @ember/test-waiters > applyPatches]
…[Babel: dialog-holder > applyPatches]
…[Babel: ember-buffered-proxy > applyPatches]
…[Babel: float-kit > applyPatches]
…[Babel: select-kit > applyPatches]
…[@embroider/compat/app]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
2025-03-18 14:55:50.590 UTC [51] LOG: بدء نقطة التحقق: time
2025-03-18 14:55:55.247 UTC [51] LOG: اكتملت نقطة التحقق: تم كتابة 48 مخزن مؤقت (0.0٪)؛ 0 ملف WAL تمت إضافته، 0 تمت إزالته، 0 تمت إعادة تدويره؛ الكتابة=4.612 ثانية، المزامنة=0.016 ثانية، الإجمالي=4.657 ثانية؛ ملفات المزامنة=38، الأطول=0.004 ثانية، المتوسط=0.001 ثانية؛ المسافة=202 كيلوبايت، التقدير=202 كيلوبايت
…[@embroider/webpack]
109:M 18 Mar 2025 14:55:57.065 * 100 changes in 300 seconds. Saving…
109:M 18 Mar 2025 14:55:57.067 * بدأ الحفظ الخلفي بواسطة العملية رقم 758
758:C 18 Mar 2025 14:55:57.087 * تم حفظ قاعدة البيانات على القرص
758:C 18 Mar 2025 14:55:57.088 * Fork CoW for RDB: current 0 MB, peak 0 MB, average 0 MB
109:M 18 Mar 2025 14:55:57.168 * انتهى الحفظ الخلفي بنجاح
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[@embroider/webpack]
…[SourceMapConcat]
…[Babel: admin > applyPatches]
…[Babel: admin > applyPatches]
…[Babel: admin > applyPatches]
…[SourceMapConcat]
…[TerserWriter]
…[TerserWriter]
…[Babel: discourse > applyPatches]
…[SourceMapConcat]
…[Babel: discourse > applyPatches]
…[SourceMapConcat]
…[Babel: discourse > applyPatches]
…[TerserWriter]
…[Babel: discourse-plugins > applyPatches]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[Babel: discourse-plugins > applyPatches]
…[SourceMapConcat]
…[TerserWriter]
I, [2025-03-18T14:58:35.058799 #1] INFO – : Building
Environment: production
The setting ‘staticAddonTrees’ will default to true in the next version of Embroider and can’t be turned off. To prepare for this you should set ‘staticAddonTrees: true’ in your Embroider config.
The setting ‘staticAddonTestSupportTrees’ will default to true in the next version of Embroider and can’t be turned off. To prepare for this you should set ‘staticAddonTestSupportTrees: true’ in your Embroider config.
building…
undefined
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command was killed with SIGKILL (Forced termination): ember build -prod

I, [2025-03-18T14:58:35.082462 #1] INFO – : Terminating async processes
I, [2025-03-18T14:58:35.082680 #1] INFO – : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/15/bin/postmaster -D /etc/postgresql/15/main pid: 42
I, [2025-03-18T14:58:35.082935 #1] INFO – : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 109
2025-03-18 14:58:35.083 UTC [42] LOG: تلقى طلب إيقاف تشغيل سريع
109:signal-handler (1742309915) Received SIGTERM scheduling shutdown…
2025-03-18 14:58:35.092 UTC [42] LOG: إلغاء جميع المعاملات النشطة
2025-03-18 14:58:35.101 UTC [42] LOG: worker background “logical replication launcher” (PID 56) exited with exit code 1
2025-03-18 14:58:35.108 UTC [51] LOG: جارٍ إيقاف التشغيل
2025-03-18 14:58:35.113 UTC [51] LOG: بدء نقطة التحقق: shutdown immediate
2025-03-18 14:58:35.137 UTC [51] LOG: اكتملت نقطة التحقق: تم كتابة 0 مخزن مؤقت (0.0٪)؛ 0 ملف WAL تمت إضافته، 0 تمت إزالته، 0 تمت إعادة تدويره؛ الكتابة=0.009 ثانية، المزامنة=0.001 ثانية، الإجمالي=0.029 ثانية؛ ملفات المزامنة=0، الأطول=0.000 ثانية، المتوسط=0.000 ثانية؛ المسافة=0 كيلوبايت، التقدير=182 كيلوبايت
109:M 18 Mar 2025 14:58:35.150 # User requested shutdown…
109:M 18 Mar 2025 14:58:35.151 * Saving the final RDB snapshot before exiting.
109:M 18 Mar 2025 14:58:35.166 * DB saved on disk
109:M 18 Mar 2025 14:58:35.167 # Redis is now ready to exit, bye bye…
2025-03-18 14:58:35.174 UTC [42] LOG: database system is shut down

FAILED

Pups::ExecError: cd /var/www/discourse && su discourse -c ‘bundle exec rake assets:precompile:build’ failed with return #<Process::Status: pid 696 exit 1>
Location of failure: /usr/local/lib/ruby/gems/3.3.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn’
exec failed with the params {“cd”=>“$home”, “tag”=>“build”, “hook”=>“assets_precompile_build”, “cmd”=>[“su discourse -c ‘bundle exec rake assets:precompile:build’”]}
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.
./discourse-doctor may help diagnose the problem.


Followed standard install. Set domain DNS a name record "community" with IP address.

IONOS doesn't have free SSL. So populated discourse-setup let's encrypt email entry.

Need help figuring this out.
إعجاب واحد (1)

هل يمكن أن تكون الذاكرة؟ هل لديك مساحة مبادلة؟ هل يمكنك إضافة 4 جيجابايت من مساحة المبادلة؟

3 إعجابات

هذا ممكن. لا يوجد إعداد مبادلة.

هل يمكنك مشاركة الأمر لإضافة مبادلة 4 جيجا. لقد مر وقت طويل منذ أن تعاملت مع ذلك.

وجدت هذا الموضوع وأنا أعمل عليه. شكراً

3 إعجابات

أعتقد أن هذا يعني أنه استغرق وقتًا طويلاً.

سأحاول إضافة مساحة تبديل و/أو ذاكرة وصول عشوائي.

يمكنني محاولة قراءة المشاركات الأخرى قبل أن أقول نفس الشيء الذي قاله الجميع.

4 إعجابات

تمت إضافة التبديل. أعتقد أنه تم بناؤه بشكل صحيح. الآن أواجه

لقد قمت بتعطيل سجل DNS الآخر الذي لدى IONOS.

عنوان الموقع

يبدو أنني بحاجة إلى النظر في اسم SMTP ربما. سأنشر في الموضوع الخاص ببريد Lark.
مع استخدام أمر discourse-setup. هل أحتاج إلى فعل أي شيء مع ملف app yml لاستخدام Let’s Encrypt؟ أثناء الإعداد، أضفت بريد Let’s Encrypt للرسائل.

\u003e هل أحتاج إلى القيام بأي شيء بملف app yml لاستخدام Let’s Encrypt؟
تحتاج إلى إلغاء التعليق عن أجزاء letsencrypt في ملف app.yaml. مكتوب في الملف أي الأسطر التي تحتاج إلى إلغاء التعليق عنها.

\u003e يبدو أنني بحاجة إلى التحقق من اسم SMTP ربما.
قم بتشغيل ./discourse-doctor، سيحاول العثور على المشاكل الشائعة ويعرض عليك إرسال بريد إلكتروني تجريبي.

إعجابَين (2)

يبدو أن النطاق لا يتصل بالخادم بشكل صحيح، وربما تكون هناك مشكلة في الخادم؟


Found containers/app.yml
==================== YML SETTINGS ====================
DISCOURSE_HOSTNAME=community.NSFirehub.ca
SMTP_ADDRESS=smtp.larksuite.com
DEVELOPER_EMAILS=redacted
SMTP_PASSWORD=redacted
SMTP_PORT=587
SMTP_USER_NAME=redacted
LETSENCRYPT_ACCOUNT_EMAIL=redacted

==================== DOCKER INFO ====================
DOCKER VERSION: Docker version 26.1.3, build 26.1.3-0ubuntu1~24.04.1

DOCKER PROCESSES (docker ps -a)

CONTAINER ID   IMAGE                 COMMAND        CREATED         STATUS         PORTS                                                                      NAMES
186bfb732aa9   local_discourse/app   \"/sbin/boot\"   2 minutes ago   Up 2 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   app

186bfb732aa9   local_discourse/app   \"/sbin/boot\"   2 minutes ago   Up 2 minutes   0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp   app

Discourse container app is running


==================== PLUGINS ====================
          - git clone https://github.com/discourse/docker_manager.git

No non-official plugins detected.

See https://github.com/discourse/discourse/blob/main/lib/plugin/metadata.rb for the official list.

========================================
Discourse version at community.NSFirehub.ca: NOT FOUND
Discourse version at localhost: NOT FOUND


==================== MEMORY INFORMATION ====================
RAM (MB): 4105

               total        used        free      shared  buff/cache   available
Mem:            3915        1857         553          54        1849        2057
Swap:           4095          86        4009

==================== DISK SPACE CHECK ====================
---------- OS Disk Space ----------
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       193G   14G  180G   7% /

==================== DISK INFORMATION ====================
Disk /dev/sda: 200 GiB, 214748364800 bytes, 419430400 sectors
Disk model: QEMU HARDDISK
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 2CC9EFA8-F404-47D6-804F-06B18D2960CC

Device       Start       End   Sectors  Size Type
/dev/sda1  2099200 419430366 417331167  199G Linux filesystem
/dev/sda14    2048     10239      8192    4M BIOS boot
/dev/sda15   10240    227327    217088  106M EFI System
/dev/sda16  227328   2097152   1869825  913M Linux extended boot

Partition table entries are not in disk order.

==================== END DISK INFORMATION ====================

تم إلغاء التعليق على أسطر Let’s Encrypt بواسطة discourse-setup (تم التحقق منها)

نجاح. كانت المشكلة في اسم النطاق. كان لدي “community.NSFirehub.ca” بعد إزالة الأحرف الكبيرة تم الاتصال.

شكرا لكم جميعًا على مساعدتكم!

إذًا في الختام مشكلتان

  • ملف المبادلة كما ذكر @Ed_S و @pfaffman
  • ولا توجد أحرف كبيرة في اسم النطاق.

أوصي بإضافة تعليمات لإنشاء ملف المبادلة ومعلومات حول عدم وجود أحرف كبيرة في إعداد اسم النطاق لـ discourse-setup/app yml. في مستودع التثبيت الرسمي على GitHub

إعجابَين (2)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.