Project

General

Profile

How to check errors if a plugin doesn't work ?

Added by percy li about 14 years ago

I tried to install the CodeReview plugin.
I don't know much on RoR coding. I followed the Guide and do every step carefully.

Although I met some error messages(e.g. component versions mismatch etc.) at first,
I solved every error message and now there is no error messages.

However, the plugin still doesn't work.
Redmine works well and there is no any change to prove that the plugin is working.
I also checked log and found nothing helpful(no error message, just not work).

How can I find the reason why the plugin doesn't work for me?
I'm puzzled for two days on this...

My environment:
Ubuntu Linux
Redmine: I have tried three versions: 0.8.4 / 0.9.2(latest stable) / latest trunk
ruby: 1.8.6
rails: 2.3.4 / 2.3.5
apache: 2.2.8
passenger: 2.2.5
CodeReview plugin: latest stable / latest trunk


Replies (15)

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

Hi percy.

Does your redmine runs on production mode? Code Review plugin works only on production mode.

Did you select the review tracker at project setting menu?

Regards.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Thanks for quick response!

Does your redmine runs on production mode?

yes, under production mode.

Did you select the review tracker at project setting menu?

It doesn't appear in system/project setting menu.
(どこでも見えない状況。インストール前より変わらないみたい.)
(BTW. You may write in simple Japanese if you like.)

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

percy li wrote:

It doesn't appear in system/project setting menu.
(どこでも見えない状況。インストール前より変わらないみたい.)

Did you set config.cache_classes to false in config/environments/production.rb ? If you did, turn it to true.
(config/environments/production.rb のconfig.cache_classesをfalseに変更していますか?そうだとしたらtrueに戻してみてください。)

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Did you set config.cache_classes to false in config/environments/production.rb ? If you did, turn it to true. (config/environments/production.rb のconfig.cache_classesをfalseに変更していますか?そうだとしたらtrueに戻してみてください。)

I didn't modify this file. So "config.cache_classes" remains its default value: true.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Haruさん、

Today I installed a new instance of Redmine (latest trunk 0.9.2) (with a new database) on the same machine, and after installed the CodeReview (latest trunk 0.2.9.3).

  • No error messages as before.
  • "rake db:migrate_plugins" finished successfully.
  • In database, there are tables "code_reviews", "code_reviews_user_settings", "code_reviews_project_settings" etc. It seems to be good.
  • There is also no error messages in log file.

But still the same, when I navigate to the site via browser, I can't find anything changed. Everything seems OK except the plugin.

How shall I do to find the problem? I guess it should be an environment problem but I don't know how to do.

If I pack the redmine folder (and something else if necessary) and send the archive file to you, can I help me to have a look? I think this plugin is so important and useful that it should be merged into Redmine.

よろしくお願いいたします。

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

percy li wrote:

If I pack the redmine folder (and something else if necessary) and send the archive file to you, can I help me to have a look?

Sure. I will. Send me your archive file.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Haruさん、Thanks in advance!

I've put the archive file at: http://focusis.org/pb/myredmine.zip
You may download it (about 6.2MB) now.

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

Hi percy.

I checked your file.

You should enable code review module in project setting page at first.
Then you fill find the code review setting tab.

Thanks.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Haruさん、Thanks for checking.

But in my environment, I can't see "Code reviews" checkbox in the Modules page. This is my problem I'm puzzling.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Did you find something strange in the config files in my archive file ?

I think there might be something wrong in environment configurations.

(P.S. I uploaded a screenshot of my module page just now. You may see there is no "Code reviews" checkbox like in your screenshot.)

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

percy li wrote:

Did you find something strange in the config files in my archive file ?

No. I didn't change anything except database user and password.

I did following operations:

  1. restore your railsapp_production.dump to my MySQL server.
  2. edit config/database.yml for change user and password.
  3. execute redmine: thin start -e production.

That's all.

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Haraさん wrote:

3.execute redmine: thin start -e production.

Are you running a standalone RoR server for Redmine? (I'm not familiar with RoR.)
My environment is : apache2 + passenger.

Does this point matter ?

RE: How to check errors if a plugin doesn't work ? - Added by Haruyuki Iida about 14 years ago

percy li wrote:

Haraさん wrote:

3.execute redmine: thin start -e production.

Are you running a standalone RoR server for Redmine? (I'm not familiar with RoR.)
My environment is : apache2 + passenger.

Does this point matter ?

I don't think so.
In my campany, I use apache2 + passenger too. And it works fine.

Try following command and execute Redmine as standalone RoR.
  1. cd railsapp
  2. ruby script/server -e production

RE: How to check errors if a plugin doesn't work ? - Added by percy li about 14 years ago

Sorry for late!

Haraさん wrote:

Try following command and execute Redmine as standalone RoR.

  1. cd railsapp
  2. ruby script/server -e production

I tried this way and I can see the code review module in this standalone environment.
確かに、there is something wrong with my apache + passenger environment.

RE: How to check errors if a plugin doesn't work ? - Added by percy li over 13 years ago

Haruさん、ありがとうございます。

I tried the latest version of the plugin (0.3.1, June 23)
and (although I didn't make any changes,) it works now!

    (1-15/15)