Error after update from 0.8.5 devel to 1.0.0 stable... cant modify or add issues.
Added by Eduardo Marques over 14 years ago
Here's the results on production.log:
Processing IssuesController#new (for 10.80.116.27 at 2010-07-27 16:35:34) [GET]
Parameters: {"project_id"=>"area-tec-fat", "action"=>"new", "controller"=>"issues"}
Rendering template within layouts/base
Rendering issues/new
ActionView::TemplateError (undefined method `-' for nil:NilClass) on line #10 of app/views/issues/_attributes.rhtml:
7: <p><label><%= l(:field_status) ></label> <= @issue.status.name ></p>
8: < end >
9:
10: <p><= f.select :priority_id, (@priorities.collect {|p| [p.name, p.id]}), {:required => true}, :disabled => !@issue.leaf? ></p>
11: <p><= f.select :assigned_to_id, (@issue.assignable_users.collect {|m| [m.name, m.id]}), :include_blank => true ></p>
12: < unless @project.issue_categories.empty? >
13: <p><= f.select :category_id, (@project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true %>
app/views/issues/_attributes.rhtml:10:in `_run_rhtml_app47views47issues47_attributes46rhtml_locals_attributes_object'
app/views/issues/_attributes.rhtml:1:in `_run_rhtml_app47views47issues47_attributes46rhtml_locals_attributes_object'
app/views/issues/_form.rhtml:26:in `_run_rhtml_app47views47issues47_form46rhtml_locals_f_form_object'
app/views/issues/new.rhtml:7:in `_run_rhtml_app47views47issues47new46rhtml'
app/helpers/application_helper.rb:669:in `labelled_tabular_form_for'
app/views/issues/new.rhtml:3:in `_run_rhtml_app47views47issues47new46rhtml'
app/controllers/issues_controller.rb:135:in `new'
/usr/lib/ruby/1.8/mongrel/rails.rb:76:in `process'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `synchronize'
/usr/lib/ruby/1.8/mongrel/rails.rb:74:in `process'
/usr/lib/ruby/1.8/mongrel.rb:159:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:158:in `each'
/usr/lib/ruby/1.8/mongrel.rb:158:in `process_client'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:285:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:285:in `new'
/usr/lib/ruby/1.8/mongrel.rb:285:in `run'
/usr/lib/ruby/1.8/mongrel.rb:268:in `initialize'
/usr/lib/ruby/1.8/mongrel.rb:268:in `new'
/usr/lib/ruby/1.8/mongrel.rb:268:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:282:in `run'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `each'
/usr/lib/ruby/1.8/mongrel/configurator.rb:281:in `run'
/usr/lib/ruby/1.8/mongrel/command.rb:212:in `run'
Rendering /opt/redmine/public/500.html (500 Internal Server Error)
Replies (3)
RE: Error after update from 0.8.5 devel to 1.0.0 stable... cant modify or add issues. - Added by Stepan Volkov over 14 years ago
look at #5907
RE: Error after update from 0.8.5 devel to 1.0.0 stable... cant modify or add issues. - Added by Eduardo Marques over 14 years ago
Hi Stepan, I've carefully read #5907, I droped the db and migrated it again... but seems it's all ok in the db... I've search for the columns listed in #5907 and it's all ok.
Here's the result of rake db:migrate RAILS_ENV=production
== AddActivityIndexes: migrating ============================================= -- add_index(:journals, :created_on) -> 0.0232s -- add_index(:changesets, :committed_on) -> 0.0168s -- add_index(:wiki_content_versions, :updated_on) -> 0.0049s -- add_index(:messages, :created_on) -> 0.0047s -- add_index(:issues, :created_on) -> 0.0321s -- add_index(:news, :created_on) -> 0.0044s -- add_index(:attachments, :created_on) -> 0.0053s -- add_index(:documents, :created_on) -> 0.0052s -- add_index(:time_entries, :created_on) -> 0.0070s == AddActivityIndexes: migrated (0.1041s) ==================================== == AddVersionsStatus: migrating ============================================== -- add_column(:versions, :status, :string, {:default=>"open"}) -> 0.0047s == AddVersionsStatus: migrated (0.0051s) ===================================== == AddViewIssuesPermission: migrating ======================================== == AddViewIssuesPermission: migrated (0.0785s) =============================== == AddDefaultDoneRatioToIssueStatus: migrating =============================== -- add_column(:issue_statuses, :default_done_ratio, :integer) -> 0.0049s == AddDefaultDoneRatioToIssueStatus: migrated (0.0050s) ====================== == AddVersionsSharing: migrating ============================================= -- add_column(:versions, :sharing, :string, {:null=>false, :default=>"none"}) -> 0.0043s -- add_index(:versions, :sharing) -> 0.0041s == AddVersionsSharing: migrated (0.0086s) ==================================== == AddLftAndRgtIndexesToProjects: migrating ================================== -- add_index(:projects, :lft) -> 0.0046s -- add_index(:projects, :rgt) -> 0.0046s == AddLftAndRgtIndexesToProjects: migrated (0.0094s) ========================= == AddIndexToSettingsName: migrating ========================================= -- add_index(:settings, :name) -> 0.0056s == AddIndexToSettingsName: migrated (0.0056s) ================================ == AddIndexesToIssueStatus: migrating ======================================== -- add_index(:issue_statuses, :position) -> 0.0042s -- add_index(:issue_statuses, :is_closed) -> 0.0044s -- add_index(:issue_statuses, :is_default) -> 0.0044s == AddIndexesToIssueStatus: migrated (0.0132s) =============================== == RemoveEnumerationsOpt: migrating ========================================== -- remove_column(:enumerations, :opt) -> 0.0044s == RemoveEnumerationsOpt: migrated (0.0045s) ================================= == ChangeWikiContentsTextLimit: migrating ==================================== -- change_column(:wiki_contents, :text, :text, {:limit=>16777216}) -> 0.0052s -- change_column(:wiki_content_versions, :data, :binary, {:limit=>16777216}) -> 0.0044s == ChangeWikiContentsTextLimit: migrated (0.0099s) =========================== == AddIndexOnChangesetsScmid: migrating ====================================== -- add_index(:changesets, [:repository_id, :scmid], {:name=>:changesets_repos_scmid}) -> 0.0075s == AddIndexOnChangesetsScmid: migrated (0.0076s) ============================= == AddIssuesNestedSetsColumns: migrating ===================================== -- add_column(:issues, :parent_id, :integer, {:default=>nil}) -> 0.0339s -- add_column(:issues, :root_id, :integer, {:default=>nil}) -> 0.0311s -- add_column(:issues, :lft, :integer, {:default=>nil}) -> 0.0306s -- add_column(:issues, :rgt, :integer, {:default=>nil}) -> 0.0333s == AddIssuesNestedSetsColumns: migrated (0.1648s) ============================ == AddIndexOnIssuesNestedSet: migrating ====================================== -- add_index(:issues, [:root_id, :lft, :rgt]) -> 0.0565s == AddIndexOnIssuesNestedSet: migrated (0.0566s) ============================= == ChangeChangesPathLengthLimit: migrating =================================== -- change_column(:changes, :path, :text, {:null=>false}) -> 0.1150s -- change_column(:changes, :from_path, :text) -> 0.0885s == ChangeChangesPathLengthLimit: migrated (0.2037s) ==========================
Can't seem to identify the problem...
RE: Error after update from 0.8.5 devel to 1.0.0 stable... cant modify or add issues. - Added by Leon Zettl over 14 years ago
I had a similar problem moving from 0.8.4.devel to 1.0.0 stable.
I was able to resolve the issue by migrating from 0.8.4.devel to 0.9 stable, then from 0.9 stable to 1.0.0 stable.
Cheers,
Leon.