Can not start redmine 6.0.1 server
Added by Cloud S3n about 2 years ago
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:
Replies (3)
RE: Can not start redmine 6.0.1 server
-
Added by Cloud S3n about 2 years 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
RE: Can not start redmine 6.0.1 server
-
Added by Bernhard Rohloff about 2 years 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 about 2 years 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.