Skip to content

Restarting app error (ruby 3.1.0): cannot load such file -- rexml/document #2415

@lemig

Description

@lemig

Hi

When I do:

passenger-config restart-app

I have the error: cannot load such file -- rexml/document
This happens with ruby 3.1.0. It's ok with ruby 2.6.0.

The raison is REXML is no longer in the Ruby Starting Library starting in ruby 3.0.0.
I suggest adding this to Gemfile:

if (Gem.available?("rexml"))
  gem "rexml"
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions