Project

General

Profile

Could not find rails-html-sanitizer-1.5.0 in any of the sources

Added by decibel 83 about 1 year ago

Hi,
I'm trying to upgrade an old installation of Redmine 3.4.6 to 4.2.9.

I installed gems using the command

redmine@redmine:~/redmine$ bundle install --without development
Your Gemfile lists the gem redmine_crm (>= 0) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once (per group).
While it's not a problem now, it could cause errors if you change the version of one of them later.
Your Gemfile lists the gem rdoc (~> 4.3) more than once.
You should probably keep only one of them.
Remove any duplicate entries and specify the gem only once (per group).
While it's not a problem now, it could cause errors if you change the version of one of them later.
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
Using rake 13.0.6
Using RedCloth 4.3.2
Using i18n 0.7.0
Using minitest 5.15.0
Using thread_safe 0.3.6
Using tzinfo 1.2.10
Using activesupport 4.2.8
Using builder 3.2.4
Using erubis 2.7.0
Using mini_portile2 2.3.0
Using nokogiri 1.8.5
Using rails-deprecated_sanitizer 1.0.4
Using rails-dom-testing 1.0.9
Using crass 1.0.6
Using loofah 2.19.1
Using rails-html-sanitizer 1.5.0
Using actionview 4.2.8
Using rack 1.6.13
Using rack-test 0.6.3
Using actionpack 4.2.8
Using globalid 0.4.2
Using activejob 4.2.8
Using mime-types-data 3.2022.0105
Using mime-types 3.4.1
Using mail 2.6.6
Using actionmailer 4.2.8
Using actionpack-xml_parser 1.0.2
Using activemodel 4.2.8
Using arel 6.0.4
Using activerecord 4.2.8
Using public_suffix 4.0.7
Using addressable 2.8.1
Using asciidoctor 2.0.18
Using bundler 1.17.3
Using coderay 1.1.3
Using concurrent-ruby 1.2.0
Using creole 0.5.0
Using css_parser 1.12.0
Using dalli 3.0.4
Using polyglot 0.3.5
Using thor 1.2.1
Using railties 4.2.8
Using sprockets 3.7.2
Using sprockets-rails 3.2.2
Using rails 4.2.8
Using rainbow 3.1.1
Using deface 1.5.3
Using github-markup 4.0.1
Using gitlab-grack 2.0.0.pre from https://github.com/jbox-web/grack.git (at fix_rails4@1bc51d8)
Using gratr19 0.4.4.1
Using rugged 0.99.0
Using gitolite-rugged 1.2.0 from https://github.com/jbox-web/gitolite-rugged.git (at 1.2.0@551741d)
Using temple 0.8.2
Using tilt 2.0.11
Using haml 5.2.2
Using sexp_processor 4.16.1
Using ruby_parser 3.19.2
Using html2haml 2.3.0
Using haml-rails 1.0.0
Using hashie 5.0.0
Using hiredis 0.6.3
Using htmlentities 4.3.4
Using jquery-rails 3.1.5
Using liquid 2.6.3
Using mimemagic 0.4.3
Using mysql2 0.4.10
Using net-ldap 0.12.1
Using rubypants 0.7.1
Using org-ruby 0.9.12
Using pkg-config 1.5.1
Using protected_attributes 1.1.4
Using ruby-openid 2.3.0
Using rack-openid 1.4.2
Using rack-parser 0.7.0
Using rbpdf-font 1.19.1
Using rbpdf 1.19.8
Using rdoc 4.3.0
Using redcarpet 3.4.0
Using redis 4.8.0
Using rubyzip 1.3.0
Using redmine_crm 0.0.59
Using redmine_extensions 0.3.11
Using request_store 1.0.5
Using rmagick 5.1.0
Using roadie 3.2.2
Using roadie-rails 1.1.1
Using ruby-ole 1.2.12.2
Using spreadsheet 0.6.9
Using vcard 0.2.16
Using will_paginate 3.3.1
Bundle complete! 53 Gemfile dependencies, 90 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`

Gems are installed into `/vendor/bundle` directory:

redmine@redmine:~/redmine$ ls /opt/redmine/redmine/vendor/bundle/gems/
actionmailer-4.2.8         deface-1.5.3      mime-types-data-3.2022.0105        rails-html-sanitizer-1.5.0    rubypants-0.7.1
actionpack-4.2.8         erubis-2.7.0      mini_portile2-2.3.0            railties-4.2.8        ruby_parser-3.19.2
actionpack-xml_parser-1.0.2  github-markup-4.0.1  minitest-5.15.0            rainbow-3.1.1        rubyzip-1.3.0
actionview-4.2.8         globalid-0.4.2      mysql2-0.4.10                rake-13.0.6            rugged-0.99.0
activejob-4.2.8             gratr19-0.4.4.1      net-ldap-0.12.1            rbpdf-1.19.8        sexp_processor-4.16.1
activemodel-4.2.8         haml-5.2.2          nokogiri-1.8.5            rbpdf-font-1.19.1        spreadsheet-0.6.9
activerecord-4.2.8         haml-rails-1.0.0      org-ruby-0.9.12            rdoc-4.3.0            sprockets-3.7.2
activesupport-4.2.8         hashie-5.0.0      pkg-config-1.5.1            redcarpet-3.4.0        sprockets-rails-3.2.2
addressable-2.8.1         hiredis-0.6.3      polyglot-0.3.5            RedCloth-4.3.2        temple-0.8.2
arel-6.0.4             html2haml-2.3.0      protected_attributes-1.1.4        redis-4.8.0            thor-1.2.1
asciidoctor-2.0.18         htmlentities-4.3.4   public_suffix-4.0.7            redmine_crm-0.0.59        thread_safe-0.3.6
builder-3.2.4             i18n-0.7.0          rack-1.6.13                redmine_extensions-0.3.11    tilt-2.0.11
coderay-1.1.3             jquery-rails-3.1.5   rack-openid-1.4.2            request_store-1.0.5        tzinfo-1.2.10
concurrent-ruby-1.2.0         liquid-2.6.3      rack-parser-0.7.0            rmagick-5.1.0        vcard-0.2.16
crass-1.0.6             loofah-2.19.1      rack-test-0.6.3            roadie-3.2.2        will_paginate-3.3.1
creole-0.5.0             mail-2.6.6          rails-4.2.8                roadie-rails-1.1.1
css_parser-1.12.0         mimemagic-0.4.3      rails-deprecated_sanitizer-1.0.4  ruby-ole-1.2.12.2
dalli-3.0.4             mime-types-3.4.1      rails-dom-testing-1.0.9        ruby-openid-2.3.0

Anyway I'm receiving this error trying to start Redmine:

redmine@redmine:~/redmine$ /usr/bin/ruby /opt/redmine/redmine/bin/rails server webrick -e production
Could not find rails-html-sanitizer-1.5.0 in any of the sources
Run `bundle install` to install missing gems.

Could you help me please?

Thank you very much!


Replies (3)

RE: Could not find rails-html-sanitizer-1.5.0 in any of the sources - Added by Go MAEDA about 1 year ago

Could you try `bin/rails server -e production` instead of `/usr/bin/ruby /opt/redmine/redmine/bin/rails server webrick -e production` to start Redmine?

RE: Could not find rails-html-sanitizer-1.5.0 in any of the sources - Added by decibel 83 about 1 year ago

With that I receive a different error:

redmine@redmine:~/redmine$ bin/rails server -e production
/opt/redmine/redmine/vendor/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require': /opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli/client.rb:370: syntax error, unexpected keyword_rescue, expecting keyword_end (SyntaxError)
      rescue DalliError, NetworkError => e
            ^
/opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli/client.rb:370: dynamic constant assignment
      rescue DalliError, NetworkError => e
                        ^
/opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli/client.rb:370: dynamic constant assignment
ue DalliError, NetworkError => e
                              ^
/opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli/client.rb:370: syntax error, unexpected =>, expecting '='
ue DalliError, NetworkError => e
                              ^
/opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli/client.rb:556: syntax error, unexpected keyword_end, expecting end-of-input
    from /opt/redmine/redmine/vendor/bundle/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'
    from /opt/redmine/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `block in require'
    from /opt/redmine/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:240:in `load_dependency'
    from /opt/redmine/redmine/vendor/bundle/gems/activesupport-4.2.8/lib/active_support/dependencies.rb:274:in `require'
    from /opt/redmine/redmine/vendor/bundle/gems/dalli-3.0.4/lib/dalli.rb:4:in `<top (required)>'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `require'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:81:in `block (2 levels) in require'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `each'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:76:in `block in require'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `each'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler/runtime.rb:65:in `require'
    from /usr/local/rvm/rubies/ruby-2.4.10/lib/ruby/site_ruby/2.4.0/bundler.rb:114:in `require'
    from /opt/redmine/redmine/config/application.rb:5:in `<top (required)>'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:78:in `require'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:78:in `block in server'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `tap'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:75:in `server'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
    from /opt/redmine/redmine/vendor/bundle/gems/railties-4.2.8/lib/rails/commands.rb:17:in `<top (required)>'
    from bin/rails:4:in `require'
    from bin/rails:4:in `<main>'

RE: Could not find rails-html-sanitizer-1.5.0 in any of the sources - Added by decibel 83 about 1 year ago

Ok, I did not know why I had Dalli 3.0.4 into my Gemfile.lock.
I downgraded it to version 2.7.10 and now it works:

redmine@redmine:~/redmine$ bin/rails server -e production
=> Booting WEBrick
=> Rails 4.2.8 application starting in production on http://localhost:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server

Thank you!

    (1-3/3)