Project

General

Profile

Actions

Defect #24831

closed

undefined method `require_sudo_mode' for EmailAddressesController:Class

Added by Ben Senior over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

When upgrading (finally) from 2.5.2 to 3.3 on debian 8 (mysql Ver 14.14 Distrib 5.5.40) using apache2 and passengers, I get the following error:

Web application could not be started

undefined method `require_sudo_mode' for EmailAddressesController:Class (NoMethodError)
  /usr/share/redmine/app/controllers/email_addresses_controller.rb:21:in `<class:EmailAddressesController>'
  /usr/share/redmine/app/controllers/email_addresses_controller.rb:18:in `<top (required)>'
  /usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:247:in `require'
...

I can see that I have a sudo_mode.rb in /usr/share/redmine/lib/redmine but this doesn't seem to be getting included.

I installed redmine from https://svn.redmine.org/redmine/branches/3.3-stable

In fact, here are exactly the steps I took :


sudo apt-get update

sudo apt-get upgrade

cd /usr/share/

#Lets keep a copy of the old one

sudo mv redmine redmine-2.5.2-old

sudo svn co https://svn.redmine.org/redmine/branches/3.3-stable redmine

sudo chown -R www-data:www-data redmine

cd redmine

#copy the old config

sudo cp /etc/redmine/default/database.yml ./config/

#upgrade the bundle

sudo bundle install

sudo RAILS_ENV=production bundle exec rake db:migrate

Is this a problem with the packaging, or am I doing something wrong? :-/


Related issues

Has duplicate Redmine - Defect #24838: After update undefined method `require_sudo_mode' for EmailAddressesController:ClassClosed

Actions
Actions

Also available in: Atom PDF