خطأ أثناء تنفيذ 'postInstallation': حذف الملفات المؤقتة

مرحباً،

أحاول إجراء تثبيت غير قياسي، ولكن ربما يتمكن شخص ما من تقديم بعض الأفكار حول سبب الخطأ. أستخدم docker-compose لتشغيل postgres و redis و sidekiq والتطبيق الرئيسي من صور Bitnami 2.3.9 المنفصلة، وهذه تعمل بشكل ممتاز على جهاز الكمبيوتر الخاص بي الذي يعمل بنظام Windows. لكن عند النشر على AWS ECS، أواجه خطأً في التطبيق الرئيسي في منتصف عملية التثبيت. كما أن آخر الأسطر المتعلقة بدمج الأصول (والتي تكون القائمة أطول) لا تظهر على الإطلاق على نظام Windows المحلي؛ حيث ينتظر النظام لفترة طويلة ثم يطبع رسائل النجاح.

postgre INFO Found PostgreSQL server listening at postgresql:5432
postgre INFO PostgreSQL server listening and working at postgresql:5432
discour INFO Preparing Discourse environment...
discour INFO Configuring the Discourse database files...
discour INFO Configuring Redis...
discour INFO Setting up SMTP in Discourse...
discour INFO Configuring Discourse database...
discour INFO Enabling PostgreSQL plugins for Discourse...
discour INFO Migrating database...
discour INFO Creating the Discourse admin user...
discour INFO Configuring your Discourse installation...
Error executing 'postInstallation': Purging temp files
Bundling assets
I, [2020-02-10T13:56:52.236240 #1088] INFO -- : Writing /opt/bitnami/discourse/public/assets/vendor-3b2f6dcdff2179eecae36277e07dc69ded2872f619a6a2bd222bbfe69e9f28ae.js
I, [2020-02-10T13:56:58.189628 #1088] INFO -- : Writing /opt/bitnami/discourse/public/assets/admin-e6fbf7cad5fdf706d3f174807bd8e6f8051c81dabdcb8c2c1cfae1ccee125eff.js

Unsupported install are, well, unsupported.

You can run a supported install by following our discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub where it is completely with an external database like our guide Running Discourse with a separate PostgreSQL server.

3 إعجابات

That sounds good because main reason was to split database from the monolith. I have went through the config and bootstrap process, running Ubuntu linux (WSL) on Windows with a mounted Windows docker (as native docker does not work on WSL), all went nicely, image was bootstrapped, database updated and a load of other things on screen. Finally docker is started (I see it in docker ps, and ports are properly mapped), but when I try to access it on localhost (that’s how I configured it), I get a blank screen as server does not send any response. Same thing was working finely on the bitnami docker containers (application opening) which I could not get to run properly on AWS for some reason. Could I be missing something? I doubt that running through WSL should be an issue, as it is a real linux and bootstrapping went without errors.

وكذلك بشكل مشابه، تم التثبيت على AWS EC2، وتم التمهيد، وتم تشغيل Docker، لكنه يفشل في العمل على المنفذ 80. يبدو الأمر هكذا:

[*******]# telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

متصل بـ Docker داخل EC2، وفي سجلات nginx أجد مثل هذه الأخطاء كل ثانية:
cannot load certificate “/shared/ssl/ec2-x-x-x-x.xx-xx.compute.amazonaws.com.cer”: PEM_read_bio_X509_AUX() failed (SSL: error:0909006C:PEM routines:get_name: no start line: Expecting: TRUSTED CERTIFICATE)

أما سجلات Redis و Postgres فكلها جيدة. وسجلات التطبيق في /var/www/discourse/log لا تُظهر أي شيء خاص (على الرغم من أنها قصيرة جدًا).

مرحباً،

هل تمكنت من حل هذه المشكلة؟ أنا أواجه نفس المشكلة…
هناك أيضاً سجلات إضافية تظهر لدي:

at runProgram (/opt/bitnami/nami/node_modules/nami-utils/lib/os/run-program.js:223:14)
    at Object.runProgram (/opt/bitnami/nami/node_modules/nami-utils/lib/os/index.js:63:12)
    at Object.$app.helpers.execute (/root/.nami/components/com.bitnami.ruby/helpers.js:44:7)
    at Object.$app.helpers.bundleExecute (/root/.nami/components/com.bitnami.ruby/helpers.js:62:8)
    at Object.<anonymous> (/opt/bitnami/nami/node_modules/lodash/index.js:51:276)
    at Service.$app.postInstallation (/root/.nami/components/com.bitnami.discourse/main.js:82:8)
    at Service.runStep (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:159:12)
    at _.each.step (/opt/bitnami/nami/node_modules/nami-core/lib/components/component.js:236:32)
    at r (/opt/bitnami/nami/node_modules/lodash/index.js:5:348)
    at Function.sf (/opt/bitnami/nami/node_modules/lodash/index.js:78:256)
Error executing 'postInstallation': Purging temp files

مرحبًا @George_Guliman، للأسف، لا تدعم Bitnami التثبيتات هنا. سيتعين عليك طلب المساعدة من مكان آخر، على الأرجح من دعم Bitnami.

إعجاب واحد (1)

نعم، أعرف… كنت فقط فضوليًا لمعرفة ما إذا كان المراسل قد نجح في حلها.

شكرًا لك،