ruby - Redmine 3.2.1-2 ob Ubuntu 16.04 breaks on apt upgrade -


i have following setup:

  • ubuntu 16.04 lxc/lxd host machine running several lxc containers
  • one container runs redmine 3.2.1-2 on ubuntu 16.04 guest os, rails 5.0.1 , bundler 1.13.6
  • the redmine database in on other lxc database container
  • the redmine guest configured perform security upgrades automatically.

this setup worked pretty fine without problems. reason broke in setup , each time perform sudo apt update; sudo apt upgrade upgrade stops error , redmine stops working:

reading package lists... done building dependency tree reading state information... done calculating upgrade... done 0 upgraded, 0 newly installed, 0 remove , 0 not upgraded. 1 not installed or removed. after operation, 0 b of additional disk space used. want continue? [y/n] y setting redmine (3.2.1-2) ... bundler not find compatible versions gem "actionpack":   in gemfile: actionpack-action_caching resolved 1.2.0, depends on   actionpack (< 6, >= 4.0.0)  actionpack-xml_parser resolved 2.0.0, depends on   actionpack (~> 5.x)  rails (~> 4.2.5) resolved 4.2.9, depends on   actionpack (= 4.2.9)  rails (~> 4.2.5) resolved 4.2.9, depends on   actionpack (= 4.2.9)  rails (~> 4.2.5) resolved 4.2.9, depends on   actionpack (= 4.2.9) bundler not find compatible versions gem "rspec-core":   in gemfile: rspec (~> 2.0) resolved 2.99.0, depends on   rspec-core (~> 2.99.0)  rspec-rails resolved 3.6.0, depends on   rspec-core (~> 3.6.0) dpkg: error processing package redmine (--configure):  subprocess installed post-installation script returned error exit status 6 errors encountered while processing:  redmine e: sub-process /usr/bin/dpkg returned error code (1)` 

but, if run bundle install in \usr\share\redmine following output (no errors!!) , redmine works again:

/usr/share/redmine/ bundle install gemfile lists gem poltergeist (>= 0) more once. should keep 1 of them. while it's not problem now, cause errors if change version of 1 of them later. fetching gem metadata https://rubygems.org/.......... fetching version metadata https://rubygems.org/.. fetching dependency metadata https://rubygems.org/. resolving dependencies... using rake 12.0.0 using i18n 0.8.6 using minitest 5.10.3 using thread_safe 0.3.6 using builder 3.2.3 using erubis 2.7.0 using mini_portile2 2.2.0 using rack 1.6.8 using mime-types-data 3.2016.0521 using arel 6.0.4 using public_suffix 2.0.5 using bundler 1.13.6 using coderay 1.1.1 using coffee-script-source 1.12.2 using execjs 2.7.0 using concurrent-ruby 1.0.5 using ffi 1.9.18 using temple 0.8.0 using tilt 2.0.8 using htmlentities 4.3.4 using thor 0.20.0 using mysql2 0.4.9 using net-ldap 0.16.0 using ruby-openid 2.7.0 using rb-fsevent 0.10.2 using rbpdf-font 1.19.1 using redcarpet 3.4.0 using request_store 1.3.2 using rmagick 2.16.0 using tzinfo 1.2.3 using nokogiri 1.8.0 using rack-test 0.6.3 using mime-types 3.1 using addressable 2.5.1 using coffee-script 2.4.1 using sprockets 3.7.1 using rb-inotify 0.9.10 using haml 5.0.2 using rack-openid 1.4.2 using rbpdf 1.19.2 using activesupport 4.2.9 using loofah 2.0.3 using mail 2.6.6 using css_parser 1.5.0 using sass-listen 4.0.0 using rails-deprecated_sanitizer 1.0.3 using globalid 0.4.0 using activemodel 4.2.9 using rails-html-sanitizer 1.0.3 using roadie 3.2.2 using sass 3.5.1 using rails-dom-testing 1.0.8 using activejob 4.2.9 using activerecord 4.2.9 using protected_attributes 1.1.4 using actionview 4.2.9 using actionpack 4.2.9 using actionmailer 4.2.9 using actionpack-action_caching 1.2.0 using actionpack-xml_parser 1.0.2 using railties 4.2.9 using sprockets-rails 3.2.0 using jquery-rails 4.3.1 using roadie-rails 1.2.1 using rails 4.2.9 bundle complete! 42 gemfile dependencies, 65 gems installed. gems in groups development , test not installed. use `bundle show [gemname]` see bundled gem installed. 

after hours of research , trial , error have no more ideas what's wrong , how fix this.

al


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -