Upgrade from 2.6.8 to 3.1.2 - Bundle Errors - could not find compatible versions for gem "json"
Added by Peter Sanchez almost 9 years ago
Hi all.. I'm upgrading from 2.6.8 to 3.1.2. Well, I was trying to. I tried going to 3.0.6 as well and got the same issue. To start, here is my scripts/about:
$ RAILS_ENV=production script/about svn: not found darcs: not found bzr: not found Environment: Redmine version 2.6.8.stable Ruby version 2.1.6-p336 (2015-04-13) [amd64-freebsd8] Rails version 3.2.22 Environment production Database adapter PostgreSQL SCM: Mercurial 3.3.2 Git 2.4.0 Filesystem Redmine plugins: redmine_bitbucket_hook 0.1.3
When updating the source to either 3.0.x or 3.1.x and running 'bundle update' I get:
$ bundle update ... Bundler could not find compatible versions for gem "json": In Gemfile: rails (= 4.2.3) ruby depends on activejob (= 4.2.3) ruby depends on activesupport (= 4.2.3) ruby depends on json (>= 1.7.7, ~> 1.7) ruby json (~> 1.6.5) ruby $ gem list --local *** LOCAL GEMS *** actionmailer (3.2.22, 3.2.21) actionpack (3.2.22, 3.2.21) activemodel (3.2.22, 3.2.21) activerecord (3.2.22, 3.2.21) activeresource (3.2.22, 3.2.21) activesupport (3.2.22, 3.2.21) arel (3.0.3) builder (3.0.4) bundle (0.0.1) bundler (1.9.8) coderay (1.1.0) daemons (1.2.3, 1.2.2) erubis (2.7.0) eventmachine (1.0.8, 1.0.7) hike (1.2.3) htmlentities (4.3.1) i18n (0.7.0, 0.6.11) journey (1.0.4) jquery-rails (3.1.4, 3.1.2) json (1.7.7) mail (2.5.4) mime-types (1.25.1) multi_json (1.11.2, 1.11.0) net-ldap (0.3.1) pg (0.17.1) polyglot (0.3.5) rack (1.4.7, 1.4.5) rack-cache (1.5.1, 1.2) rack-openid (1.4.2) rack-ssl (1.3.4) rack-test (0.6.3) rails (3.2.22, 3.2.21) railties (3.2.22, 3.2.21) rake (10.4.2) rake-compiler (0.9.3) rbpdf (1.18.7, 1.18.5) rdoc (4.2.0, 3.12.2) redcarpet (3.3.3, 2.3.0) request_store (1.0.5) rmagick (2.13.4, 2.13.3) ruby-openid (2.3.0) sprockets (2.2.3) thin (1.6.4, 1.6.3) thor (0.19.1) tilt (1.4.1) treetop (1.4.15) tzinfo (0.3.45, 0.3.44, 0.3.43)
I tried updating bundle to the latest, 1.10.6, same thing. I tried installing rails, and it's dependencies 1 by 1, which worked, then running bundle update again, same thing. I don't know Ruby or the gem ecosystem that well so I'm at a bit of a loss. I asked in Freenode / #ruby because #redmine was a big of a graveyard. They had me try a few things but nothing worked. They claim it's a broken Gemfile but I can't imagine that's the case. I used the Gemfile straight from the repo (bitbucket.org/redmine/redmine-all, 3.0-stable and 3.1-stable branches) like I always have. Not really sure what else to try here.
Any ideas?
Thanks in advance!
Peter
Replies (1)
RE: Upgrade from 2.6.8 to 3.1.2 - Bundle Errors - could not find compatible versions for gem "json" - Added by Peter Sanchez almost 9 years ago
Sorry, this can be ignored / deleted. The issue was a specific mention of json 1.6.5 in a plugin Gemfile.