Sign-In met Ethereum plugin

Works, thank you!

1 like

Hello @michaeld @RGJ, I’m not sure if this is the right place to ask, but I’m experiencing a similar issue with ffi when using the repository at https://github.com/communiteq/discourse-siwe-auth as well as https://github.com/spruceid/discourse-siwe-auth.

I, [2025-08-26T12:22:42.475531 #1]  INFO -- : 
I, [2025-08-26T12:22:42.475839 #1]  INFO -- : > cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate'
rake aborted!
Gem::LoadError: can't activate ffi-1.17.1-x86_64-linux-gnu, already activated ffi-1.17.2-x86_64-linux-gnu (Gem::LoadError)
/var/www/discourse/lib/plugin_gem.rb:25:in `load'
/var/www/discourse/lib/plugin/instance.rb:861:in `gem'
/var/www/discourse/plugins/discourse-siwe-auth/plugin.rb:23:in `activate!'
/var/www/discourse/lib/plugin/instance.rb:806:in `instance_eval'
/var/www/discourse/lib/plugin/instance.rb:806:in `activate!'
/var/www/discourse/lib/discourse.rb:344:in `block in activate_plugins!'
/var/www/discourse/lib/discourse.rb:341:in `each'
/var/www/discourse/lib/discourse.rb:341:in `activate_plugins!'
/var/www/discourse/config/application.rb:196:in `block in <class:Application>'
/var/www/discourse/lib/plugin.rb:6:in `initialization_guard'
/var/www/discourse/config/application.rb:196:in `<class:Application>'
/var/www/discourse/config/application.rb:62:in `<module:Discourse>'
/var/www/discourse/config/application.rb:61:in `<top (required)>'
/var/www/discourse/Rakefile:7:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/3.3.0/gems/rake-13.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:25:in `load'
/usr/local/bin/bundle:25:in `<main>'
(See full trace by running task with --trace)

Hook section of my discourse self-hosted app:

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/communiteq/discourse-siwe-auth.git
          - git clone https://github.com/discourse/discourse-code-review.git

For now, I’m going to try forking your repository and bumping the version, as I have a deadline to migrate this Discourse instance. I just wanted to let you know about this.
Also, I’d like to know if the plugin is actively maintained by Communiteq.

Thanks in advance!

Zonder naar de code te kijken…

Zou het probleem kunnen zijn dat ffi nu in de kern zit en je het niet hoeft toe te voegen?

Ik ben niet echt bekend met Ruby, dus ik kan geen uitspraak doen over de plugin, maar ik kan bevestigen dat het verhogen van de ffi naar 1.17.2 in de geforkte repository een fluitje van een cent is, en met verhogen bedoel ik het wijzigen van de plugin.rb met:

gem 'ffi', '1.17.2', require: false

Dat werkte voor mij, maar ik zou de officieel onderhouden plugin willen gebruiken in plaats van mijn eigen fork.

Mijn suggestie was om de gem helemaal te verwijderen. En wanneer dat werkt, dien een PR in met die regel verwijderd.

We’re more like passively maintaining it. The official repository is in spruceid, but since we run a number of sites using the plugin, in practice it’s us who fix it first. This time you beat us to it, it is still on our list of plugins to change for 3.5.

If no one makes a PR to the official repo, I will get to this by the end of this week or the beginning of next week.

1 like

Ik geef er de voorkeur aan om het openen van de PR aan jou over te laten, aangezien jij waarschijnlijk overwegingen of tests met betrekking tot de plugin hebt waar ik niet van op de hoogte ben, aangezien ik heel weinig van deze service weet, aangezien ik bezig ben met de migratie ervan.

Bedankt voor je hulp, informatie en bijdragen aan dit onderwerp.

I have fixed the plugin - it indeed was only a matter of removing the explicit ffi gem inclusion.

I have also made a pull request to the original repository. As long as the PR has not been accepted, you can use https://github.com/communiteq/discourse-siwe-auth instead of the original repository.

I will change the link in the OP to this for the time being as well.

2 likes

I want to ask, why don’t I see the settings button?

Ik kijk naar het bestand .discourse-compatibility van deze plugin. Het toont ondersteuning voor versies < 3.2.0.beta2-dev. Zijn er problemen met het gebruik van deze plugin met de nieuwste Discourse-versie?

1 like

Since that file indicates backward compatibility, the absence of recent versions in the .plugin-compatibility file is a good thing.

3 likes