Project

General

Profile

Upgrade Issue

Added by gobinath subramanian over 8 years ago

Hi All,

I am Gobinath,

we are using redmine 2.5 fine.. but i tried to upgrade to 3.1. But after upgrade the "issue" tab not work for all the project.

browser i am getting error *" 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.
If you are the Redmine administrator, check your log files for details about the error."*

And checked production log
" ActiveRecord::SubclassNotFound (The single-table inheritance mechanism failed to locate the subclass: 'ScrumblerIssueCustomField'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. Please rename this column if you didn't intend it to be used for storing the inheritance class or overwrite CustomField.inheritance_column to use another column for that information.):
app/models/query.rb:822:in `add_associations_custom_fields_filters'
app/models/issue_query.rb:243:in `initialize_available_filters'
app/models/query.rb:354:in `available_filters'
app/models/query.rb:243:in `build_from_params'
app/models/issue_query.rb:124:in `build_from_params'
app/helpers/queries_helper.rb:196:in `retrieve_query'
app/controllers/issues_controller.rb:46:in `index'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'"

Can any one please help me to fix this issue plz....

thanks in advance.


Replies (1)

RE: Upgrade Issue - Added by Ivan Piskovoy over 8 years ago

I tried to upgrade redmine 2.4 to 3.1.1, but rake db:migrate RAILS_ENV=production terminate with error:

rake aborted!
StandardError: An error has occurred, all later migrations canceled:

Mysql2::Error: Table 'email_addresses' already exists: CREATE TABLE `email_addresses` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11) NOT NULL, `address` varchar(255) NOT NULL, `is_default` tinyint(1) DEFAULT 0 NOT NULL, `notify` tinyint(1) DEFAULT 1 NOT NULL, `created_on` datetime NOT NULL, `updated_on` datetime NOT NULL) ENGINE=InnoDB/var/www/redmine/db/migrate/20150113194759_create_email_addresses.rb:3:in `change'
ActiveRecord::StatementInvalid: Mysql2::Error: Table 'email_addresses' already exists: CREATE TABLE `email_addresses` (`id` int(11) auto_increment PRIMARY KEY, `user_id` int(11) NOT NULL, `address` varchar(255) NOT NULL, `is_default` tinyint(1) DEFAULT 0 NOT NULL, `notify` tinyint(1) DEFAULT 1 NOT NULL, `created_on` datetime NOT NULL, `updated_on` datetime NOT NULL) ENGINE=InnoDB
/var/www/redmine/db/migrate/20150113194759_create_email_addresses.rb:3:in `change'
Mysql2::Error: Table 'email_addresses' already exists
/var/www/redmine/db/migrate/20150113194759_create_email_addresses.rb:3:in `change'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)

If we try to use redmine anyway, there are errors when accessing projects with anonymous user and when trying to see tasks list with any user.

Help, please, tomake migration finished correctly.

    (1-1/1)