ChiliProject is not maintained anymore. Please be advised that there will be no more updates.

We do not recommend that you setup new ChiliProject instances and we urge all existing users to migrate their data to a maintained system, e.g. Redmine. We will provide a migration script later. In the meantime, you can use the instructions by Christian Daehn.

clicking on a user give 500 Internal Error (Bug #609)


Added by Daniele Segato at 2011-09-05 02:37 pm. Updated at 2011-09-11 10:06 am.


Status:Closed Start date:2011-09-05
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Remote issue URL: Affected version:

Description

Just clicked on a user

Processing UsersController#show (for 192.168.88.87 at 2011-09-05 16:25:15) [GET]
  Parameters: {"action"=>"show", "id"=>"3", "controller"=>"users"}

ActiveRecord::ConfigurationError (Association named 'job' was not found; perhaps you misspelled it?):
  lib/redmine/activity/fetcher.rb:82:in `events'
  lib/redmine/activity/fetcher.rb:81:in `each'
  lib/redmine/activity/fetcher.rb:81:in `events'
  lib/redmine/activity/fetcher.rb:80:in `each'
  lib/redmine/activity/fetcher.rb:80:in `events'
  app/controllers/users_controller.rb:68:in `show'
  thin (1.2.11) lib/thin/connection.rb:84:in `pre_process'
  thin (1.2.11) lib/thin/connection.rb:82:in `catch'
  thin (1.2.11) lib/thin/connection.rb:82:in `pre_process'
  thin (1.2.11) lib/thin/connection.rb:57:in `process'
  thin (1.2.11) lib/thin/connection.rb:42:in `receive_data'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run_machine'
  eventmachine (0.12.10) lib/eventmachine.rb:256:in `run'
  thin (1.2.11) lib/thin/backends/base.rb:61:in `start'
  thin (1.2.11) lib/thin/server.rb:159:in `start'
  thin (1.2.11) lib/thin/controllers/controller.rb:86:in `start'
  thin (1.2.11) lib/thin/runner.rb:185:in `send'
  thin (1.2.11) lib/thin/runner.rb:185:in `run_command'
  thin (1.2.11) lib/thin/runner.rb:151:in `run!'
  thin (1.2.11) bin/thin:6
  /home/chili/.rvm/gems/ruby-1.8.7-p352/bin/thin:19:in `load'
  /home/chili/.rvm/gems/ruby-1.8.7-p352/bin/thin:19

Rendering /home/chili/chiliproject/public/500.html (500 Internal Server Error)

Some information on my environment

$ RAILS_ENV=production script/about
About your application's environment
Ruby version              1.8.7 (x86_64-linux)
RubyGems version          1.6.2
Rack version              1.1.2
Rails version             2.3.12
Active Record version     2.3.12
Active Resource version   2.3.12
Action Mailer version     2.3.12
Active Support version    2.3.12
Application root          /home/chili/chiliproject
Environment               production
Database adapter          mysql
Database schema version   20110729125454

About your Redmine plugins
Redmine Gitolite Hook plugin   0.1.1
Redmine Hudson plugin          1.0.7
Mylyn Connector plugin         2.7.4.stable


Associated revisions

Revision c80c1e1e
Added by Jean-Philippe Lang at 2008-02-06 09:02 pm

Create a journal and send an email when an issue is closed by commit (#609).
The redmine user is found using the committer username or email. Otherwise, the journal is created with anonymous user.

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1126 e93f8b46-1217-0410-a6f0-8f06a7374b81

History

Updated by Felix Schäfer at 2011-09-05 02:46 pm

You probably have a plugin that isn't compatible with ChiliProject 2. Do you have any plugins that create "job" or similarly named activity entries?

Updated by Holger Just at 2011-09-05 02:47 pm

There is no such association defined on a user model in the core ChiliProject. Therefore, I assume you have installed a plugin which either:
  • is not fully installed (e.g. you've forgotten a database migration),
  • not compatible with ChiliProject,
  • or just plain broken.

Please remove any user-installed plugins and try to identify which plugin is creating the error. Then contact the original author.

  • Status changed from Open to Needs more information

Updated by Daniele Segato at 2011-09-05 03:04 pm

Doing a grep (as expected) I can find many words "job" inside the hudson plugin.

but we need it and there isn't a port for chiliproject.
I need other plugins for which there isn't a chiliproject porting yet (gitolite and mylyn).
The thing that they could stop working is blocking and could force me to freeze the chiliproject version and / or switch back to redmine.
This is another "bug / feature request" of course.... But I would really like to keep up with chili.

going back to the ticket...

hudson plugin is working in project setting and I can execute Jenkins jobs from my project.

If you can't provide support for this plugin can you help me (and other with the same issue) to identify the issue withing the hudson source code and disable/fix the part that cause the issue?

  • Status changed from Needs more information to Ready for review

Updated by Daniele Segato at 2011-09-05 03:15 pm

Holger Just wrote:

There is no such association defined on a user model in the core ChiliProject. Therefore, I assume you have installed a plugin which either:
  • is not fully installed (e.g. you've forgotten a database migration),

doubt so :)

  • not compatible with ChiliProject,

this could be :/

  • or just plain broken.

doubt so

Please remove any user-installed plugins and try to identify which plugin is creating the error. Then contact the original author.

is there a way to "temporary" disable a plugin without uninstalling it?

Updated by Felix Schäfer at 2011-09-05 07:21 pm

Daniele Segato wrote:

Please remove any user-installed plugins and try to identify which plugin is creating the error. Then contact the original author.

is there a way to "temporary" disable a plugin without uninstalling it?

Change the permissions of the plugin's directory to something the user running ChiliProject can't read (or just set them to 000 to be sure).

Regarding the plugin: the journaling/versioning scheme has changed in ChiliProject 2, meaning plugins using those or providing activities need to be updated. I can provide you or the author of the plugin with docs and/or instructions to update the plugin as needed.

Updated by Daniele Segato at 2011-09-06 07:33 am

Felix Schäfer wrote:

Change the permissions of the plugin's directory to something the user running ChiliProject can't read (or just set them to 000 to be sure).

thanks
I did it and I confirmed the issue is within the redmine_hudson plugin

Regarding the plugin: the journaling/versioning scheme has changed in ChiliProject 2, meaning plugins using those or providing activities need to be updated. I can provide you or the author of the plugin with docs and/or instructions to update the plugin as needed.

I'm a developer but not a Ruby's one: if it's not very complicated I'm willing to fix the software.. And I would really appreciate your instruction both to me and to the plugin developers: http://code.google.com/p/r-labs/

I also upgraded the plugin to the last tag (0.1.4) to check if it was already fixed: it isn't.

Updated by Daniele Segato at 2011-09-06 09:50 am

Daniele Segato wrote:

I also upgraded the plugin to the last tag (0.1.4) to check if it was already fixed: it isn't.

after upgrading the plugin I noticed there were more issues... so I checked and I've seen the 0.1.4 tagged version is behind the trunk version (previously installed)....

So I reverted back to the trunk.... Anyway I confirm that with the current trunk version (r570 | toshiyuki.ando1971@gmail.com | 2011-06-05 01:59:26 +0200 (Sun, 05 Jun 2011) | 3 lines) I have the reported issue and anything else seems to work.

Updated by Holger Just at 2011-09-11 10:06 am

So concluding this is a plugin issue not one of the ChiliProject core. Please tell the plugin author(s) and work with them on ChiliProject compatibility.

  • Status changed from Ready for review to Closed

Also available in: Atom PDF