Redmine installation problem
Added by ime prezime about 14 years ago
Hi,
I'm trying to install redmine 1.0.3 and I'm having rack issue
My server is running cpanel
I'm getting error message when I'm trying to migrate database
-jailshell-3.2$ RAILS_ENV=production rake db:migrate (in /home/fmkw/rails_apps/Redmine) rake aborted! RubyGem version error: rack(1.2.1 not ~> 1.0.1) (See full trace by running task with --trace)
However, rack 1.0.1 is installed
-jailshell-3.2$ gem list --local LOCAL GEMS rack (1.2.1, 1.0.1)
I've tried
-jailshell-3.2$ 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... -jailshell-3.2$
But with no success
I've also tried to remove rack and install it again,
unfortunately that didn't resolved the issue :(
Do you have any suggestions? what could I do?
Thank you for your answers
Best Regards
Replies (7)
RE: Redmine installation problem - Added by ime prezime about 14 years ago
Some additional info
-jailshell-3.2$ rails --version Rails 3.0.1
although I ran at the beggining
-jailshell-3.2$ gem install rails -v=2.3.5
Ruby version (it's running on cpanel CentOS server)
-jailshell-3.2$ ruby -v ruby 1.8.7 (2009-06-08 patchlevel 173) [i686-linux]
database:
MySQL version 5.0.91-community-log
RE: Redmine installation problem - Added by Holger Just about 14 years ago
The rails
binary selects the mopst recent rails iirc. If you have 2.3.5 installed, you should be fine here. Unfortunately, Rails 2.3.5 does not properly restrict the needed rack version. Thus, you need to uninstall any rack versions != 1.0.1 (or hack the requirements).
You can uninstall specific version of gems using gem uninstall rack -v 1.2.1
If you really need rails3 and rack 1.2.1 for other projects than redmine, I propose you use rvm and its gemset feature, which is even supported with passenger.
RE: Redmine installation problem - Added by ime prezime about 14 years ago
hi,
thank you for your answer,
I've tried uninstalling and installing, but with little success.
My support resolved the issue for me (I guess I had no permissions for gem removal...)
I've completed installation.
Login works fine.
I've opened projects page.
Unfortunately, when I try to create new Project I'm getting this error message
Internal error An error occurred on the page you were trying to access. If you continue to experience problems please contact your redMine administrator for assistance. Back
This is the content of the production.log file
Processing ProjectsController#index (for 109.175.36.132 at 2010-11-02 05:57:42) [GET] Parameters: {"action"=>"index", "controller"=>"projects"} Rendering template within layouts/base Rendering projects/index Completed in 16ms (View: 11, DB: 2) | 200 OK [http://fmkw.bhstudio.biz/projects] Processing ProjectsController#new (for 109.175.36.132 at 2010-11-02 05:57:50) [GET] Parameters: {"action"=>"new", "controller"=>"projects"} Rendering template within layouts/base Rendering projects/new ActionView::TemplateError (wrong number of arguments (2 for 0)) on line #5 of app/views/projects/_form.rhtml: 2: 3: <div class="box"> 4: <!--[form:project]--> 5: <p><%= f.text_field :name, :required => true, :maxlength => 30 %><br /><em><%= l(:text_caracters_maximum, 30) %></em></p> 6: 7: <% unless @project.allowed_parents.compact.empty? %> 8: <p><%= label(:project, :parent_id, l(:field_parent)) %><%= parent_project_select_tag(@project) %></p> /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n/backend/base.rb:158:in `warn_syntax_deprecation!' /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n/backend/base.rb:158:in `interpolate_without_deprecated_syntax' /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n/backend/base.rb:153:in `gsub' /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n/backend/base.rb:153:in `interpolate_without_deprecated_syntax' /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n/backend/base.rb:46:in `translate' /usr/lib/ruby/gems/1.8/gems/i18n-0.4.2/lib/i18n.rb:160:in `t' lib/redmine/i18n.rb:17:in `l' app/views/projects/_form.rhtml:5:in `_run_rhtml_app47views47projects47_form46rhtml_locals_f_form_object' app/views/projects/new.html.erb:4 app/helpers/application_helper.rb:702:in `labelled_tabular_form_for' app/views/projects/new.html.erb:3 Rendering /home/fmkw/rails_apps/Redmine/public/500.html (500 Internal Server Error)
Do you have any idea what is causing this error?
Best Regards
RE: Redmine installation problem - Added by Holger Just about 14 years ago
Redmine currently supports only versions up to 0.4.1 of the i18n gem. Please remove any newer versions (e.g. 0.4.2). See #6784 for the bug report.
RE: Redmine installation problem - Added by ime prezime about 14 years ago
thank you for your answer :)
My support just installed older version of i18n gem,
# gem list --local | grep i18n i18n (0.4.2, 0.4.1)
Unfortunately that didn't fixed the issue for me :(
I guess I'll have to wait for the issue http://www.redmine.org/issues/6784 to be resolved :(
RE: Redmine installation problem - Added by Holger Just about 14 years ago
You need to remove the i18n gem in version 0.4.2. This gem is what causes your issues.
gem uninstall i18n -v=0.4.2
RE: Redmine installation problem - Added by ime prezime about 14 years ago
thank you for your help :)
redmine is now up and running