Project

General

Profile

ActiveRecord::RecordNotFound

Added by shaneoh * over 8 years ago

Hi everyone,

I'm currently testing a new instance of Redmine 3.0.3 - I have been using 2.3.3 and am running 3.0.3 separately for now.

The install has gone pretty well albeit with a few hiccups along the way but I have one last issue which I cannot resolve. I am unable to access some particular pages within the Redmine instance. The 3.0.3 instance has been created using a db dump from the 2.3.3 version and this has largely worked as far as migrating users, configuration and projects/wikis etc.

When attempting to access certain pages there is a simple error message stating "Page not found. The page you were trying to access doesn't exist or has been removed." If I access this page on our live instance (v2.3.3) using http://mydomain.com/page1 it works perfectly well and always has; accessing http://mytestdomain.com/page1 doesn't.

There are messages in the production log which I have been unable to decipher as I am very new to Ruby but I have pasted these below:

Started GET "/projects/customer/wiki/project1" for 192.xxx.xxx.xxx at 2015-07-07 10:56:11 +0000
Processing by WikiController#show as HTML
Parameters: {"project_id"=>"client", "id"=>"project1"}
Current user: user.name (id=41)
Rendered wiki/_content.html.erb (46.8ms)
Rendered attachments/_form.html.erb (2.8ms)
Rendered wiki/_sidebar.html.erb (3.3ms)
Rendered wiki/show.html.erb within layouts/base (69.7ms)
Rendered plugins/download/app/views/download/_sidebar.html.erb (6.8ms)
Completed 500 Internal Server Error in 194ms (ActiveRecord: 13.1ms)

ActiveRecord::RecordNotFound (Couldn't find all Versions with 'id': (all, {:include=>:attachments}) [WHERE `versions`.`project_id` = ?] (found 0 results, but was looking for 2)):
lib/redmine/hook.rb:119:in `block (2 levels) in render_on'
lib/redmine/hook.rb:117:in `map'
lib/redmine/hook.rb:117:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:167:in `call_hook'
app/helpers/application_helper.rb:1229:in `view_layouts_base_sidebar_hook_response'
app/views/layouts/base.html.erb:53:in `_app_views_layouts_base_html_erb___3767897019332117175_39522180'
app/controllers/wiki_controller.rb:97:in `show'

My environment details:

Redmine version                3.0.3.stable
Ruby version 1.9.3-p551 (2014-11-13) [x86_64-linux]
Rails version 4.2.1
Environment production
Database adapter MySQL
SCM:
Git 1.7.1
Filesystem
Redmine plugins:
download 0.1.0
redmine_blocks_layout 0.0.2
redmine_plugin_views_revisions 0.0.1
redmine_wiki_notes 0.0.1
redmine_wiki_unc 0.0.3
redmine_xls_export 0.2.1

Any help would be greatly appreciated at this point.


Replies (5)

RE: ActiveRecord::RecordNotFound - Added by Marc D. over 8 years ago

We got a similar problem, but it appears when try to show a users profil.

Log:

Started GET "/users/mm" for 192.168.0.25 at 2015-08-18 13:24:59 +0200
Processing by UsersController#show as HTML
Parameters: {"id"=>"mm"}
Current user: mm (id=3)
Rendered plugins/wiking/app/views/wiking/_mentions.html.erb (1.5ms)
Rendered users/show.html.erb within layouts/base (272.6ms)
Completed 500 Internal Server Error in 741ms (ActiveRecord: 4.5ms)

ActiveRecord::RecordNotFound (Couldn't find all Mentions with 'id': (all, {:conditions=>{:mentioned_id=>3}, :order=>"created_on DESC"}) (found 0 results, but was looking for 2)):
lib/redmine/hook.rb:119:in `block (2 levels) in render_on'
lib/redmine/hook.rb:117:in `map'
lib/redmine/hook.rb:117:in `block in render_on'
lib/redmine/hook.rb:61:in `block (2 levels) in call_hook'
lib/redmine/hook.rb:61:in `each'
lib/redmine/hook.rb:61:in `block in call_hook'
lib/redmine/hook.rb:58:in `tap'
lib/redmine/hook.rb:58:in `call_hook'
lib/redmine/hook.rb:167:in `call_hook'
app/views/users/show.html.erb:72:in `_c4ab8361d6ddd52164a9473bdc51d823'
app/controllers/users_controller.rb:77:in `block (2 levels) in show'
app/controllers/users_controller.rb:73:in `show'
lib/redmine/sudo_mode.rb:63:in `sudo_mode'

RE: ActiveRecord::RecordNotFound - Added by shaneoh * over 8 years ago

We turned out to have a plugin which was incompatible with Redmine 3 and was causing the issue. The plugin was the download button plugin (https://www.redmine.org/plugins/download). Are you running any old plugins? Can be worth deleting them one by one and migrating database etc again, see if this resolves.

RE: ActiveRecord::RecordNotFound - Added by Marc D. over 8 years ago

There are some old plugins. I tried already some of them, those which appear on the users page.
But I guess we have to try all of them :/

Thanks for the hint.

RE: ActiveRecord::RecordNotFound - Added by Alexandr Ivanov over 8 years ago

So, what if i need some of old plugins? What is this error mean?

RE: ActiveRecord::RecordNotFound - Added by shaneoh * over 8 years ago

We made the call that the download button plugin wasn't important enough for us to worry about, it was more important that we had a working instance of Redmine. We have several other old plugins and they are all fine - so they aren't all incompatible. You may want to dig deeper into the incompatibility and try to customise the plugin, but for us it just wasn't worth the effort.

    (1-5/5)