Реакции в Discourse: репозиторий GitHub не найден

Я поискал, но так и не смог точно найти эту проблему, даже после изучения других похожих тем.

Я хотел включить плагин discourse-reactions на своём экземпляре. После выполнения стандартной процедуры: добавления URL репозитория в файл app.yml, запуска git pull и ./launcher rebuild app, процесс сборки (bootstrap) завершается неудачей.

Ниже приведён вывод об ошибке:

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && https://github.com/discourse/discourse-reactions.git failed with return #<Process::Status: pid 289 exit 127>
Location of failure: /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/exec_command.rb:132:in `spawn'
exec failed with the params {"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"]}
bootstrap failed with exit code 127
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one.

Я прокрутил вверх и нашёл только одну ошибку выше этой:

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:  database system is ready to accept connections
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 перед URL.

Вам следует добавить следующее:

- 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

Спасибо за столь быстрый ответ и за приветствие!

Вы были абсолютно правы. Я забыл добавить - git clone перед URL-адресом GitHub. Я снова запустил сборку, и она успешно завершила начальную настройку без проблем.

Ещё раз спасибо.