Project

General

Profile

Actions

Defect #30513

closed

Unable to load the EventMachine C extension; windows

Added by James H about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Ruby support
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Upgrading from Redmine 3.3.x to 4.0.1
Windows

on cmd:

rake generate_secret_token

I get this error:

Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
rake aborted!
LoadError: cannot load such file -- 2.5/rubyeventmachine
X:/Redmine/config/application.rb:5:in '<top <required>>'
X:/Redmine/Rakefile:5:in '<top <required>>'


Resolved by adding the following line:

require 'em/pure_ruby'

at the top of
X:/RubyXX-x64/lib/ruby/gems/2.X.0/gems/eventmachine-1.2.X-x64-mingw32/lib/eventmachine.rb

Actions #1

Updated by James H about 5 years ago

I am personally using Ruby 2.5.3
but I have seen this resolution for 2.4.x and I believe 2.6.x as well.

Actions #2

Updated by James H about 5 years ago

After the resolution above,
running rake generate_secret_token gives a lot of the same warning:

X:/Redmine/app/models/wiki_content_version.rb:xxx: warning: encountered \r in middle of line, treated as a mere space

Then when I start up a server (I usually use Thin client) I got a

no implicit conversion of nil into String <TypeError>

from the thin files.

These could all be unrelated, not sure at this time.

Actions #3

Updated by James H about 5 years ago

workaround:
uninstall eventmachine x64-mingw32
then

gem install eventmachine --platform ruby

Actions #4

Updated by Holger Just about 5 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

Thank you for your report.

Unfortunately, Redmine itself doesn't use eventmachine anywhere. If something requires eventmachine with your installation, this requirement is thus likely stemming from some customizations of your setup (e.g. because you use an app server like thin or some custom plugin). In that case, any issues caused by those components should be reported to the authors of the respective projects.

Actions

Also available in: Atom PDF