Redmine: Issueshttps://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292013-05-15T09:30:28ZRedmine
Redmine Redmine - Defect #14058 (Closed): Installed plugins do not display.https://www.redmine.org/issues/140582013-05-15T09:30:28ZJunyu Jiang
<p>Hi,</p>
<p>I tried to install redmine_hipchat plugin on an Ubuntu 10.04 LTS 64 bit server. After installed, the plugin do not show up, and hence generate some error, so I just removed it.</p>
<p>Then I install a fresh copy of Ubuntu and download Bitnami Redmine 1.4.7 stack and check again. The plugin work on the new installed system. So I suppose the plugin is ok.</p>
<p>Can someone give me some tip to trouble shoot it?</p>
<p>My steps to install redmine_hipchat</p>
<pre>
jyjiang@swdev:/usr/share/redmine/vendor/plugins$ sudo git clone https://github.com/hipchat/redmine_hipchat.git
[sudo] password for jyjiang:
Initialized empty Git repository in /usr/share/redmine-1.4-stable/vendor/plugins/redmine_hipchat/.git/
remote: Counting objects: 95, done.
remote: Compressing objects: 100% (43/43), done.
remote: Total 95 (delta 25), reused 80 (delta 21)
Unpacking objects: 100% (95/95), done.
jyjiang@swdev:/usr/share/redmine/vendor/plugins$ cd ..
jyjiang@swdev:/usr/share/redmine/vendor$ cd ..
</pre>
<p>After installed, execute migrate command and no error, same to the workable system.<br /><pre>
jyjiang@swdev:/usr/share/redmine$ rake db:migrate_plugins RAILS_ENV=production
Please install RDoc 2.4.2+ to generate documentation.
Migrating engines...
Migrating acts_as_activity_provider...
Migrating acts_as_attachable...
Migrating acts_as_customizable...
Migrating acts_as_event...
Migrating acts_as_list...
Migrating acts_as_searchable...
Migrating acts_as_tree...
Migrating acts_as_versioned...
Migrating acts_as_watchable...
Migrating awesome_nested_set...
Migrating classic_pagination...
Migrating gravatar...
Migrating open_id_authentication...
Migrating prepend_engine_views...
Migrating redmine_hipchat...
Migrating rfpdf...
</pre></p>
<p>After installed, in the administration->plugins page, no plugin is displayed.<br />When I click on the project setting, there are internal error.<br />the last part of the production.log in $REDMINE/log/ is<br /><pre>
ActionView::TemplateError (undefined method `hipchat_auth_token' for #<Project:0x7fef31dd6418>) on line #2 of vendor/plugins/redmine_hipchat/app/views/projects/_redmine_hipchat
1: <p>
2: <%= form.text_field :hipchat_auth_token %>
3: A token from <a href="https://www.hipchat.com/group_admin/api" target="_blank">your API tokens page</a>. Leave empty for use global settings.
4: </p>
5:
lib/redmine/views/labelled_form_builder.rb:31:in `text_field'
vendor/plugins/redmine_hipchat/app/views/projects/_redmine_hipchat.html.erb:2
lib/redmine/hook.rb:113:in `send'
lib/redmine/hook.rb:113:in `view_projects_form'
lib/redmine/hook.rb:63:in `send'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:63:in `each'
lib/redmine/hook.rb:63:in `call_hook'
lib/redmine/hook.rb:60:in `tap'
lib/redmine/hook.rb:60:in `call_hook'
lib/redmine/hook.rb:146:in `call_hook'
app/views/projects/_form.html.erb:23
app/views/projects/_edit.html.erb:2
app/helpers/application_helper.rb:934:in `labelled_form_for'
app/views/projects/_edit.html.erb:1
app/views/common/_tabs.html.erb:24
app/views/common/_tabs.html.erb:23:in `each'
app/views/common/_tabs.html.erb:23
app/helpers/application_helper.rb:231:in `render_tabs'
app/views/projects/settings.html.erb:3
/usr/lib/ruby/1.8/phusion_passenger/rack/request_handler.rb:95:in `process_request'
/usr/lib/ruby/1.8/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:374:in `start_request_handler'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:332:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/utils.rb:184:in `safe_fork'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:330:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:163:in `start'
/usr/lib/ruby/1.8/phusion_passenger/railz/application_spawner.rb:209:in `start'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `__send__'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:352:in `main_loop'
/usr/lib/ruby/1.8/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/usr/lib/phusion_passenger/passenger-spawn-server:61
Rendering /usr/share/redmine-1.4-stable/public/500.html (500 Internal Server Error)
</pre></p>
<p>My system setting RAILS_ENV=production ruby script/about<br /><pre>
jyjiang@swdev:/usr/share/redmine$ RAILS_ENV=production ruby script/about
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21.
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.8.24
Rack version 1.1.3
Rails version 2.3.14
Active Record version 2.3.14
Active Resource version 2.3.14
Action Mailer version 2.3.14
Active Support version 2.3.14
Application root /usr/share/redmine-1.4-stable
Environment production
Database adapter mysql
Database schema version 20120917111848
</pre></p>