Error installing Redmine 5.1.1 on AltLinux
Added by Denis Chupakhin almost 2 years ago
When installing Redmine 5.1.1 on AltLinux, an error occurs when executing bundle install:
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies.....
Fetching rake 13.1.0
Installing rake 13.1.0
Fetching rake 13.1.0
Installing rake 13.1.0
--- ERROR REPORT TEMPLATE -------------------------------------------------------
# Error Report
## Questions
Please fill out answers to these questions, it'll help us figure out
why things are going wrong.
- **What did you do?**
I ran the command `/var/www/webapps/redmine/bin/bundle install`
- **What did you expect to happen?**
I expected Bundler to...
- **What happened instead?**
Instead, what happened was...
- **Have you tried any solutions posted on similar issues in our issue tracker, stack overflow, or google?**
I tried...
- **Have you read our issues document, https://github.com/rubygems/rubygems/blob/master/bundler/doc/contributing/ISSUES.md?**
...
## Backtrace
```
Errno::EACCES: Permission denied @ rb_sysopen - /var/www/webapps/redmine/vendor/bundle/ruby/3.1.0/gems/rake-13.1.0/History.rdoc
/usr/lib/ruby/rubygems/package.rb:441:in `initialize'
/usr/lib/ruby/rubygems/package.rb:441:in `open'
/usr/lib/ruby/rubygems/package.rb:441:in `block (2 levels) in extract_tar_gz'
/usr/lib/ruby/rubygems/package/tar_reader.rb:65:in `each'
/usr/lib/ruby/rubygems/package.rb:412:in `block in extract_tar_gz'
/usr/lib/ruby/rubygems/package.rb:524:in `block in open_tar_gz'
/usr/lib/ruby/rubygems/package.rb:521:in `wrap'
/usr/lib/ruby/rubygems/package.rb:521:in `open_tar_gz'
/usr/lib/ruby/rubygems/package.rb:411:in `extract_tar_gz'
/usr/lib/ruby/rubygems/package.rb:391:in `block (2 levels) in extract_files'
/usr/lib/ruby/rubygems/package/tar_reader.rb:65:in `each'
/usr/lib/ruby/rubygems/package.rb:388:in `block in extract_files'
/usr/lib/ruby/rubygems/package/file_source.rb:29:in `open'
/usr/lib/ruby/rubygems/package/file_source.rb:29:in `with_read_io'
/usr/lib/ruby/rubygems/package.rb:385:in `extract_files'
/usr/lib/ruby/rubygems/installer.rb:869:in `extract_files'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/rubygems_gem_installer.rb:24:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/source/rubygems.rb:176:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:67:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer/gem_installer.rb:18:in `install_from_spec'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:186:in `do_install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:90:in `call'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer/parallel_installer.rb:71:in `call'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer.rb:270:in `install_in_parallel'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer.rb:210:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer.rb:90:in `block in run'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/process_lock.rb:19:in `rescue in lock'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/process_lock.rb:15:in `lock'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer.rb:72:in `run'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/installer.rb:24:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli/install.rb:64:in `run'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:259:in `block in install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/settings.rb:133:in `temporary'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:258:in `install'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:30:in `dispatch'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/cli.rb:24:in `start'
/usr/bin/bundle:49:in `block in <top (required)>'
/usr/lib/ruby/gemie/gems/bundler-2.2.19/lib/bundler/friendly_errors.rb:130:in `with_friendly_errors'
/usr/bin/bundle:37:in `<top (required)>'
/var/www/webapps/redmine/bin/bundle:4:in `load'
/var/www/webapps/redmine/bin/bundle:4:in `<main>'
```
## Environment
```
Bundler 2.2.19
Platforms ruby, x86_64-linux
Ruby 3.1.2p20 (2022-04-12 revision a21a3b7d23704a01d34bd79d09dc37897e00922a) [x86_64-linux]
Full Path /usr/bin/ruby
Config Dir /etc
RubyGems 3.3.7
Gem Home /var/www/webapps/redmine/vendor/bundle/ruby/3.1.0
Gem Path /var/www/webapps/redmine/vendor/bundle/ruby/3.1.0
User Home /var/www/webapps/redmine
User Path /var/www/webapps/redmine/.local/share/gem/ruby/3.1.0
Bin Dir /var/www/webapps/redmine/vendor/bundle/ruby/3.1.0/bin
OpenSSL
Compiled OpenSSL 1.1.1u 30 May 2023
Loaded OpenSSL 1.1.1w 11 Sep 2023
Cert File /var/lib/ssl/cert.pem
Cert Dir /var/lib/ssl/certs
Tools
Git not installed
RVM not installed
rbenv not installed
chruby not installed
```
## Bundler Build Metadata
```
Built At 2024-01-22
Git SHA unknown
Released Version false
```
## Bundler settings
```
gemfile
Set via BUNDLE_GEMFILE: "/var/www/webapps/redmine/Gemfile"
path
Set for your local app (/var/www/webapps/redmine/.bundle/config): "vendor/bundle"
Set for the current user (/var/www/webapps/redmine/.bundle/config): "vendor/bundle"
without
Set for your local app (/var/www/webapps/redmine/.bundle/config): [:development, :test]
Set for the current user (/var/www/webapps/redmine/.bundle/config): [:development, :test]
```
## Gemfile
### Gemfile
```ruby
source 'https://rubygems.org'
ruby '>= 2.7.0', '< 3.3.0'
gem 'rails', '6.1.7.6'
gem 'rouge', '~> 4.2.0'
gem 'request_store', '~> 1.5.0'
gem 'mini_mime', '~> 1.1.0'
gem "actionpack-xml_parser"
gem 'roadie-rails', '~> 3.1.0'
gem 'marcel'
gem 'mail', '~> 2.8.1'
gem 'nokogiri', '~> 1.15.2'
gem 'i18n', '~> 1.14.1'
gem 'rbpdf', '~> 1.21.3'
gem 'addressable'
gem 'rubyzip', '~> 2.3.0'
# Ruby Standard Gems
gem 'csv', '~> 3.2.6'
gem 'net-imap', '~> 0.3.4'
gem 'net-pop', '~> 0.1.2'
gem 'net-smtp', '~> 0.3.3'
gem 'rexml', require: false if Gem.ruby_version >= Gem::Version.new('3.0')
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :x64_mingw, :mswin]
# TOTP-based 2-factor authentication
gem 'rotp', '>= 5.0.0'
gem 'rqrcode'
# HTML pipeline and sanitization
gem "html-pipeline", "~> 2.13.2"
gem "sanitize", "~> 6.0"
# Optional gem for LDAP authentication
group :ldap do
gem 'net-ldap', '~> 0.17.0'
end
# Optional gem for exporting the gantt to a PNG file
group :minimagick do
gem 'mini_magick', '~> 4.12.0'
end
# Optional Markdown support
group :markdown do
gem 'redcarpet', '~> 3.6.0'
end
# Optional CommonMark support, not for JRuby
group :common_mark do
gem "commonmarker", '~> 0.23.8'
gem 'deckar01-task_list', '2.3.2'
end
# Include database gems for the adapters found in the database
# configuration file
require 'erb'
require 'yaml'
database_file = File.join(File.dirname(__FILE__), "config/database.yml")
if File.exist?(database_file)
yaml_config = ERB.new(IO.read(database_file)).result
database_config = YAML.respond_to?(:unsafe_load) ? YAML.unsafe_load(yaml_config) : YAML.load(yaml_config)
adapters = database_config.values.filter_map {|c| c['adapter']}.uniq
if adapters.any?
adapters.each do |adapter|
case adapter
when 'mysql2'
gem "mysql2", "~> 0.5.0", :platforms => [:mri, :mingw, :x64_mingw]
gem "with_advisory_lock"
when /postgresql/
gem 'pg', '~> 1.5.3', :platforms => [:mri, :mingw, :x64_mingw]
when /sqlite3/
gem 'sqlite3', '~> 1.6.0', :platforms => [:mri, :mingw, :x64_mingw]
when /sqlserver/
gem "tiny_tds", "~> 2.1.2", :platforms => [:mri, :mingw, :x64_mingw]
gem "activerecord-sqlserver-adapter", "~> 6.1.0", :platforms => [:mri, :mingw, :x64_mingw]
else
warn("Unknown database adapter `#{adapter}` found in config/database.yml, use Gemfile.local to load your own database gems")
end
end
else
warn("No adapter found in config/database.yml, please configure it first")
end
else
warn("Please configure your config/database.yml first")
end
group :development do
gem 'listen', '~> 3.3'
gem "yard"
end
group :test do
gem "rails-dom-testing"
gem 'mocha', '>= 2.0.1'
gem 'simplecov', '~> 0.22.0', :require => false
gem "ffi", platforms: [:mingw, :x64_mingw, :mswin]
# For running system tests
gem 'puma'
gem "capybara", ">= 3.39"
if Gem.ruby_version < Gem::Version.new('3.0')
gem "selenium-webdriver", "<= 4.9.0"
gem "webdrivers", require: false
else
gem "selenium-webdriver", ">= 4.11.0"
end
# RuboCop
gem 'rubocop', '~> 1.57.0', require: false
gem 'rubocop-performance', '~> 1.19.0', require: false
gem 'rubocop-rails', '~> 2.22.1', require: false
end
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
if File.exist?(local_gemfile)
eval_gemfile local_gemfile
end
# Load plugins' Gemfiles
Dir.glob File.expand_path("../plugins/*/{Gemfile,PluginGemfile}", __FILE__) do |file|
eval_gemfile file
end
```
### Gemfile.lock
```
<No /var/www/webapps/redmine/Gemfile.lock found>
```
--- TEMPLATE END ----------------------------------------------------------------
Unfortunately, an unexpected error occurred, and Bundler cannot continue.
First, try this link to see if there are any existing issue reports for this error:
https://github.com/rubygems/rubygems/search?q=Permission+denied+%40+rb_sysopen+-+%2Fvar%2Fwww%2Fwebapps%2Fredmine%2Fvendor%2Fbundle%2Fruby%2F3.1.0%2Fgems%2Frake-13.1.0%2FHistory.rdoc&type=Issues
If there aren't any reports for this error yet, please create copy and paste the report template above into a new issue. Don't forget to anonymize any private data! The new issue form is located at:
https://github.com/rubygems/rubygems/issues/new?labels=Bundler&template=bundler-related-issue.md
Help me solve this problem.
ruby --version -> ruby 3.1.2p20 (2022-04-12 revision a21a3b7d23) [x86_64-linux]
mysql --version -> mysql Ver 15.1 Distrib 10.6.16-MariaDB, for Linux (x86_64) using readline 5.1
rails --version -> Could not find gem 'rails (= 6.1.7.6)' in locally installed gems. Run `bundle install` to install missing gems.