Discourse-reactions 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 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:

看起来你在 URL 前面漏掉了 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 个赞

感谢您如此迅速的回复和欢迎!

您完全正确。我忘记在 Github URL 之前包含 - git clone。我再次运行了构建,它成功完成了引导程序,没有出现任何问题。

再次感谢。

3 个赞

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