Project

General

Profile

Trying to install latest redmine on ubuntu 10.04 LTS

Added by Sebastian Kruse about 11 years ago

hi,

I just tried to install the latest redmine on ubuntu 10.04 LTS. But I got a ruby error that is totaly unknown how to fix it for me (see: http://kruse-familie.eu/redmine/). My manual for redmine installation is from a ubuntu 12.04 LTS system - their it works fine. Did someone can help me please to fix this error? Here is a part from the apache2 error log:

Called from: /usr/lib/ruby/gems/1.8/gems/actionpack-3.2.8/lib/action_dispatch/middleware/session/abstract_store.rb:28:in `initialize'.
  • Exception LoadError in PhusionPassenger::Railz::ApplicationSpawner (no such file to load -- dispatcher) (process 32037):
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
    from /usr/lib/ruby/gems/1.8/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
    from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:308:in `preload_application'
    from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:248:in `initialize_server'
    from /usr/lib/ruby/1.8/phusion_passenger/utils.rb:255:in `report_app_init_status'
    from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:233:in `initialize_server'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:194:in `start_synchronously'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
    from /usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
    from /usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    from /usr/lib/phusion_passenger/passenger-spawn-server:61
    [Mon Jan 21 23:30:58 2013] [error] [client 79.197.137.120] File does not exist: /var/www/favicon.ico

Replies (6)

RE: Trying to install latest redmine on ubuntu 10.04 LTS - Added by Jan Niggemann (redmine.org team member) about 11 years ago

Observations:
  • Your ruby 1.8 is really old, even if 1.9 seems just like a minor step, it was a huge push forward.
  • rails 3.2.8 has security issues (see Security_Advisories)
  • rails 3 introduced a different patching mechanism (to_prepare), require 'dispatcher' no longer works

If you'd like to restart from scratch and use the latest ruby, rails and redmine you'll find this guide helpful (although it's for Debian it should - in theory - work for Ubuntu).

RE: Trying to install latest redmine on ubuntu 10.04 LTS - Added by Sebastian Kruse about 11 years ago

Thanks for your answer. At the moment redmine is running with ruby 1.8, after a passenger update the error was fixed. I will try to update ruby and rails at the weekend on a virtual machine and if it works on the real server.

RE: Trying to install latest redmine on ubuntu 10.04 LTS - Added by Jan Niggemann (redmine.org team member) about 11 years ago

Good if it works now, remember to update that vulnerable rails 3.2.8 though!

RE: Trying to install latest redmine on ubuntu 10.04 LTS - Added by Zoltán Süle about 11 years ago

Jan: thank you for this link!
I have an old debian5 server with redmine 1.0.2. I want to move the SVN and redmine to the new Ubuntu 10.04 LTS server. I tried install redmine on it without any success. I just got a very deep trace list with error message: stack level too deep after the install. I tried all redmine versions from 1.0 to 2.2 and the result was very same but with different trace list. I installed them from scratch and after I installed all gems that I found any guide. This did not lead anywhere too. It took 4 days and I didn't have a working redmine on the new server and I also wasn't any other installation or upgrade guide that I wouldn't do. I suspected that the Ubuntu packages caused this, but I didn't have any idea how could I bypass them. I was very disappointed and sad.

So now, I'm very grateful for you, for your links and for this perfect installation guide. The installation based on it was an easy job. I just used the latest stable ruby (ruby-1.9.3-p385.tar.gz) instead of ruby-1.9.3-p374.tar.gz. The database have been migrated automatically from 1.0.2 to 2.2.3. Now, it seems to me it works without any issue. Thank you!

I think that, all the other How to install/upgrade Redmine on Ubuntu 10.04 LTS should remove from Redmine site, because they are misleading and they don't work. What do you think? Is there a way to do it?

(I have to re login and repost it 5 times because of spamfiltering :( )

RE: Trying to install latest redmine on ubuntu 10.04 LTS - Added by Zoltán Süle about 11 years ago

Thank you Sebastian!
I tried to install red based on the guide that you recommend too, but only with ruby1.8 + redmine 1.3. It didn't worked for me.
Maybe should change the installation guide as you propose it: not with ruby1.8 + redmine 1.3, but with ruby 1.9.3 + redmine 2.2.2.

    (1-6/6)