إلّا تفاعلات Discourse على Github غير موجودة

لقد بحثت ولم أجد هذه المشكلة بالضبط، حتى بعد النظر في مشاكل أخرى مشابهة.

أردت تمكين discourse-reactions على مثيلي. بعد اتباع الإجراء المعتاد وإضافة عنوان URL للمستودع إلى ملف app.yml الخاص بي، وتشغيل git pull و ./launcher rebuild app، يفشل التمهيد.

فيما يلي مخرجات الفشل:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins & https://github.com/discourse/discourse-reactions.git فشل مع العودة #<Process::Status: pid 289 exit 127>
موقع الفشل: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
فشل التنفيذ مع المعلمات {"cd"=>"$home/plugins", "cmd"=>["mkdir -p plugins", "git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/davidtaylorhq/discourse-whos-online.git", "git clone https://github.com/discourse/discourse-push-notifications.git", "git clone https://github.com/iunctis/discourse-formatting-toolbar.git", "git clone https://github.com/jannolii/discourse-topic-trade-buttons.git", "git clone https://github.com/discourse/discourse-voting.git", "git clone https://github.com/discourse/discourse-yearly-review.git", "https://github.com/discourse/discourse-reactions.git"]}
فشل التمهيد مع رمز الخروج 127
** فشل التمهيد ** يرجى التمرير لأعلى والبحث عن رسائل خطأ سابقة، قد يكون هناك أكثر من واحدة.

مررت لأعلى ووجدت الخطأ الوحيد الذي وجدته أعلاه هو هذا:

I, [2024-05-03T16:25:41.537553 #1] INFO -- :
I, [2024-05-03T16:25:41.538494 #1] INFO -- : > cd /var/www/discourse/plugins & https://github.com/discourse/discourse-reactions.git
sh: 1: https://github.com/discourse/discourse-reactions.git: not found

يبدو هذا غريبًا نظرًا لأن صفحة Github قابلة للعرض بسهولة في متصفح الويب. بعد التعليق على discourse-reactions، يتم بناء كل شيء بشكل جيد.

أي توصيات أو نصائح للحصول على هذا يعمل؟

تحياتي.

تعديل: حاولت إعادة البناء مرة أخرى وأرى الآن الخطأ التالي:

2024-05-03 16:53:54.491 UTC [35] LOG:  نظام قاعدة البيانات جاهز لقبول الاتصالات
I, [2024-05-03T16:53:59.443099 #1] INFO -- :
I, [2024-05-03T16:53:59.443248 #1] INFO -- : > /usr/local/bin/create_db
2024-05-03 16:53:59.519 UTC [54] postgres@postgres ERROR:  database "discourse" already exists
2024-05-03 16:53:59.519 UTC [54] postgres@postgres STATEMENT:  CREATE DATABASE discourse;
createdb: error: database creation failed: ERROR:  database "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse ERROR:  role "discourse" already exists
2024-05-03 16:53:59.595 UTC [57] postgres@discourse STATEMENT:  create user discourse;
ERROR:  role "discourse" already exists
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping
NOTICE:  extension "hstore" already exists, skipping
NOTICE:  extension "pg_trgm" already exists, skipping
NOTICE:  extension "vector" already exists, skipping

أهلاً بعودتك :wave:

يبدو أنك نسيت git clone قبل الرابط.
يجب عليك إضافة ما يلي:

- git clone https://github.com/discourse/discourse-reactions

على سبيل المثال، انظر السطر الأخير:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-knowledge-explorer
          - git clone https://github.com/discourse/discourse-reactions
4 إعجابات

شكراً على الرد السريع جداً وعلى الترحيب!

لقد كنت على حق تماماً. لقد نسيت تضمين - git clone قبل عنوان URL الخاص بـ Github. قمت بتشغيل البناء مرة أخرى وتم الانتهاء من التمهيد دون مشاكل.

شكراً مرة أخرى.

3 إعجابات

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