Project

General

Profile

Some broken elements after 0.8.4 to 0.9.2 upgrade.

Added by Pascal Schoenhardt over 14 years ago

Hi guys,

First off, thanks for making such a neat product - it blows all of the other issue trackers out of the water.

I am in the process of migrating the company I work at onto Redmine, and started off with the Turnkey Redmine distribution (Ubuntu 8.04.3 w/ Redmin 0.8.4) in the hopes of saving some time. Before configuring anything, I decided to upgrade to 0.9.2, using the instructions here: http://www.redmine.org/wiki/redmine/RedmineUpgrade.

Before I describe the problem's I'm having, let me give the current state of my system:

% RAILS_ENV=production script/about
About your application's environment
Ruby version 1.8.6 (i486-linux)
RubyGems version 1.3.5
Rack version 1.0
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /var/www/railsapp
Environment production
Database adapter mysql
Database schema version 20091227112908

% gem query

\*** LOCAL GEMS ***

actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
cgi_multipart_eof_fix (2.5.0)
daemons (1.0.10)
fastthread (1.0.7)
gem_plugin (0.2.3)
mongrel (1.1.5)
mysql (2.8.1)
passenger (2.2.5)
rack (1.0.1)
rails (2.3.5)
rake (0.8.7)
rubytree (0.6.2)

OK, so it took me a few tries to even complete the upgrade, because the actionwebservice plugin was still present from the 0.8.4 install, and was causing uninitialized constant ActionController::AbstractRequest errors. My solution to this problem was to simply rm -rf vendors/plugins/actionwebservice. The next problem was that the rake command for migrating the database wanted rubytree, so I did a gem install rubytree which added version 0.6.2; however, the 0.9.2 tarball had its own version of rubytree in it which rake couldn't find, so now when I tried to run the migrate script, rake complained that it couldn't activate 0.6.2 because 0.5.3 was already active. My solution to this was rm -rf vendor/gems/rubytree; Finally, I could load Redmine 0.9.4!

However, I now have three problems (that I've found so far):
  1. Sending e-mail doesn't work anymore (it did before). When I send a test e-mail from the Settings menu, I get the following error: An error occurred while sending mail (undefined method `finder' for #). If I create a new user and have the "Send account information to the user" option checked, I get an internal error (505).
  2. When I try to create a new project, I get an internal error (505). The log file says:
    Processing ProjectsController#add (for 10.0.4.107 at 2010-02-25 04:25:39) [GET]
    Parameters: {"action"=>"add", "controller"=>"projects"}
    
    ArgumentError (wrong number of arguments (3 for 2)):
    app/controllers/application_controller.rb:159:in `authorize'
    app/controllers/application_controller.rb:159:in `authorize_global'
    passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request
    _handler'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_
    application'
    passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_
    application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_ad
    d'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    
    Rendering /var/www/railsapp/public/500.html (500 Internal Server Error)
    
  3. When I try to view My Account, I get an internal server error too. The log says:
    Processing MyController#account (for 10.0.4.107 at 2010-02-25 04:27:18) [GET]
    Parameters: {"action"=>"account", "controller"=>"my"}
    Rendering template within layouts/base
    Rendering my/account
    
    ActionView::TemplateError (There is no rule called 'default' in the en rules.) on line #11 o
    f app/views/my/_sidebar.rhtml:
    8:
    9: <p>
    10: <% if @user.rss_token %>
    11: <%= l(:label_feeds_access_key_created_on, distance_of_time_in_words(Time.now, @user.rss_
    token.created_on)) %>
    12: <% else %>
    13: <%= l(:label_missing_feeds_access_key) %>
    14: <% end %>
    
    app/views/my/_sidebar.rhtml:11:in `_run_rhtml_app47views47my47_sidebar46rhtml_locals_obj
    ect_sidebar'
    app/views/my/account.rhtml:59:in `_run_rhtml_app47views47my47account46rhtml'
    app/helpers/application_helper.rb:692:in `content_for'
    app/views/my/account.rhtml:58:in `_run_rhtml_app47views47my47account46rhtml'
    passenger (2.2.5) lib/phusion_passenger/rack/request_handler.rb:95:in `process_request'
    passenger (2.2.5) lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:378:in `start_reque
    st_handler'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spaw
    n_application'
    passenger (2.2.5) lib/phusion_passenger/utils.rb:183:in `safe_fork'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spaw
    n_application'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:163:in `start'
    passenger (2.2.5) lib/phusion_passenger/railz/application_spawner.rb:213:in `start'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application
    '
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_
    add'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application
    '
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize
    '
    passenger (2.2.5) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize
    '
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application
    '
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
    passenger (2.2.5) lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_applicatio
    n'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `__send__'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
    passenger (2.2.5) lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
    
    Rendering /var/www/railsapp/public/500.html (500 Internal Server Error)
    

Is it worth trying to fix this, or should I just do a fresh install of 0.9.2?

Thanks guys!


Replies (2)

Issue #2 is RESOLVED - Added by Pascal Schoenhardt over 14 years ago

I have managed to solve one of my issues - #2. I can now create projects.

Before, I prepared the 0.9.2 installation as per the instructions in a different folder, then I copied it over top of the 0.8.4 installation (the guide doesn't say whether to copy over or replace the old installation).

I just tried moving the old folder out of the way and copying the new folder into its place (a clean 0.9.2 install), and now I can create projects.

The other issues still stand

FIXED by starting from scratch - Added by Pascal Schoenhardt over 14 years ago

So, since I was doing a new installation anyways, and had nothing to lose, I just deleted the application root and dropped all of the databases, then checked out 0.9.2 from SVN and started from scratch.

Everything seems to be working now.

    (1-2/2)