0


During the process of upgrading Redmine project management software I ran into an issue with the rack gem. Below I have noted the exact error as it displayed when running the migration to upgrade the Redmine database near the end of the upgrade process.

Upgrading Redmine: RubyGem Version Error: Rack

[web@dev devredmine]$ rake db:migrate RAILS_ENV=production 
(in /home/web/devredmine)
rake aborted!
RubyGem version error: rack(0.4.0 not ~> 1.0.1)

(See full trace by running task with --trace)
[web@dev devredmine]$

Can I simply upgrade the rack gem to proceed?

flag offensive community wiki
add comment
1 Answers:
1


So typically you would simply need to upgrade the rack gem by issuing the below command.

Install The Latest Rack Gem:

[root@dev ~]# gem install rack
Successfully installed rack-1.1.0
1 gem installed
Installing ri documentation for rack-1.1.0...
Installing RDoc documentation for rack-1.1.0...
[root@dev ~]#

View Rack Gem Version Installed On Linux Server:

[root@dev ~]# gem list rack

*** LOCAL GEMS ***

rack (1.1.0, 0.4.0)
rack-test (0.5.3)

However in the case you mention above you need to install the exact version of the rack gem that is being requested. You can install a specific rack gem version by using the below command.

Instal Rack Gem Version 1.0.1 On A Linux Server:

[root@dev ~]# gem install rack -v 1.0.1
Successfully installed rack-1.0.1
1 gem installed
Installing ri documentation for rack-1.0.1...
Installing RDoc documentation for rack-1.0.1...
[root@dev ~]#

Now in my example you can see that I actually have 3 versions of rack installed on the server now.

List Installed Rack Gem Versions:

[root@dev ~]# gem list rack

*** LOCAL GEMS ***

rack (1.1.0, 1.0.1, 0.4.0)
rack-test (0.5.3)
[root@dev ~]#

That should resolve your issue.

add comment
Your answer:
You are now not logged in but you can answer first and then login
toggle preview



Tags:

× 5
× 5
× 1
× 1
× 1
× 1
× 1
× 1
× 1

Asked: 2 years, 1 month ago

Seen: 2,895 times

Last updated: 2 years, 1 month ago