Can not start redmine 6.0.1 server
I followed the installation tutorial and deployed on CentOS, and no errors were reported in the previous steps.
But after execute this command bundle exec rails server -e production
, redmine did not start.
This is the information returned by the terminal:
WARN: Unresolved or ambiguous specs during Gem::Specification.reset: stringio (>= 0) Available/installed versions of this gem: - 3.1.2 - 3.1.0 WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>' Please report a bug if this causes problems. WARN: Unresolved or ambiguous specs during Gem::Specification.reset: stringio (>= 0) Available/installed versions of this gem: - 3.1.2 - 3.1.0 WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>' Please report a bug if this causes problems. /usr/local/lib/ruby/gems/3.3.0/gems/zeitwerk-2.7.1/lib/zeitwerk/core_ext/kernel.rb:34: warning: webrick was loaded from the standard library, but is not part of the default gems since Ruby 3.0.0. Add webrick to your Gemfile or gemspec. Also contact author of zeitwerk-2.7.1 to add webrick into its gemspec. Could not find a server gem. Maybe you need to add one to the Gemfile? gem "puma" Run `bin/rails server --help` for more options.
this is my env infomation:
ruby -v ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [x86_64-linux] gem -v 3.5.3
Replies (3)
RE: Can not start redmine 6.0.1 server - Added by Cloud S3n 6 days ago
What's more:
rails --version WARN: Unresolved or ambiguous specs during Gem::Specification.reset: stringio (>= 0) Available/installed versions of this gem: - 3.1.2 - 3.1.0 WARN: Clearing out unresolved specs. Try 'gem cleanup <gem>' Please report a bug if this causes problems. Rails 7.2.2
System: Linux version 3.10.0-1160.119.1.el7.x86_64 (mockbuild@kbuilder.bsys.centos.org) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-44) (GCC) )
DB: Mysql5.7
RE: Can not start redmine 6.0.1 server - Added by Bernhard Rohloff 5 days ago
Based on the error message from your first post I assume there's no webserver gem (webrick, or puma) installed. It's not installed by default. What you can do is to create a textfile Gemfile.local next to the Gemfile of Redmine and put gem 'puma'
in it. Then run bundle install
again.
RE: Can not start redmine 6.0.1 server - Added by Cloud S3n 5 days ago
Thank you for the help! I followed your suggestion, added gem 'puma'
to the Gemfile.local , and ran bundle install
. The issue is now resolved! Your guidance saved me a lot of time—really appreciate it!
Additionally, for newcomers deploying Redmine for the first time, it might not be obvious that puma needs to be installed manually. I think it would be helpful to add this step to the installation guide.