このプラグインを追加するために行ったすべてのことについて教えてください。
このトピックで前述したように before_code を追加しましたか?
これは標準的なインストールですか?
in app.yml
以下のように追加しました - git clone https//GitHub—-.git
Ubuntu 18 でセルフホストしており、標準的な ./setup コマンドでのインストールです
つまり、あなたはこれをしなかったということですね
@RGJ、このbefore_codeをどのように追加すればよいか教えていただけますか。また、before_codeを含む投稿を共有していただけますか。
いいえ、申し訳ありませんが、Ctrl+F でトピックを検索すると、回答が見つかります。
@RGJはgithubのガイドを参照しています
GitHub - spruceid/discourse-siwe-auth: Discourse plugin for SIWE authentication
app.yml ファイルの hooks セクションの下に以下のセクションを追加する必要があります。
本当にそうでした、なぜもっと早く見えなかったのか分かりません ![]()
アップデート:インストールが完了し、プラグインは正常に動作しています。現在、ETHウォレットでログインをテスト中です。
「Ethereumでサインイン」ボタンを押してもポップアップ(サインを求める)が表示されないため、これは壊れていると思います。
以下は、ボタンをクリックしたときに表示されるコンソールログです。
SyntaxError: Unexpected token '<', "<!doctype "... is not valid JSON
at Function.parse [as parseJSON] (<anonymous>)
at n (ajax-error.js:29:1)
at e.popupAjaxError (ajax-error.js:71:1)
at y (rsvp.js:435:1)
at v (rsvp.js:421:1)
at f (rsvp.js:370:1)
at m.invoke (queue.ts:203:14)
at m.flush (queue.ts:98:13)
at f.flush (deferred-action-queues.ts:75:19)
at $._end (index.ts:616:32)
at _boundAutorunEnd (index.ts:257:12)
TypeError: Cannot destructure property 'message' of '(intermediate value)' as it is undefined.
at e.signMessage (web3modal.js:66:1)
at async e.runSigningProcess (web3modal.js:82:1)
at async e.initAuth (siwe-auth-index.js:38:1)
Infura ID を使用して、両方のテストで安定版として合格しました。
プラグインの設定方法を教えていただけますか?
InfuraキーまたはパブリックRPC、あるいはInfuraのメインネットRPCを手動で入力してみましたが、うまくいきませんでした。それが問題なのかどうか分かりません。
サインイン時のETHポップアップを編集/スタイル設定することは可能ですか?
他のイーサリアム対応ネットワークも追加できますか?
「イーサリアムフレンドリーネットワーク」の例を教えていただけますか?
つまり、BSCのようなものです
「Binance Smart Chain」のことです
新しいエラー
はい、before_code フックを追加しました。エラーはここから始まり、siwe-auth プラグインをコメントアウトすると発生しなくなります。
I, [2025-02-11T03:40:25.992538 #1] INFO -- :
I, [2025-02-11T03:40:25.993236 #1] INFO -- :
> cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate'
rake aborted!
hooks:
before_code:
- exec:
cmd:
- gem install rubyzip
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-gamification
- git clone https://github.com/discourse/discourse-chat-integration
- git clone https://github.com/angusmcleod/discourse-events
- git clone https://github.com/discourse/discourse-ai
- git clone https://github.com/discourse/discourse-subscriptions
- git clone https://github.com/discourse/discourse-translator
- git clone https://github.com/discourse/discourse-signatures
- git clone https://github.com/merefield/discourse-locations
- git clone https://github.com/discourse/discourse-reactions
- git clone https://github.com/melhosseiny/discourse-nft-avatar
- git clone https://github.com/discourse/discourse-follow
- git clone https://github.com/spruceid/discourse-siwe-auth
以下のエラーを参照してください。
FAILED
--------------------
Pups::ExecError: cd /var/www/discourse & su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 778 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"=>"migrate", "hook"=>"db_migrate", "cmd"=>["su discourse -c 'bundle exec rake db:migrate'"]}
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.
@RGJ 上記をご確認ください。迅速な解決を願っています。^
完全なログ:
redacted@server:/var/discourse$ sudo ./launcher rebuild app
x86_64アーキテクチャが検出されました
解決策は、GitHub - communiteq/discourse-siwe-auth: Discourse plugin for SIWE authentication にある私たちのフォークに(すでに)ありました。修正コミットが少し乱雑なため、まだ upstream に PR は作成していませんが、正常に動作しています。
