zuinqstudio / redmine_drop_box

Redmine plugin to upload your documents to dropbox
Other
22 stars 7 forks source link

Internal server error with Redmine 1.3.3 #11

Closed krlsBC closed 11 years ago

krlsBC commented 11 years ago

Hi! I´m using this plugin with Redmine 1.3.3, I have authorized the App and set REDMINE as Dropbox folder to store files.

When I press Dropbox tab on project always get a Internal Server Error.

This is the error log:

Processing DropBoxController#index (for xxx.xxx.xxx.xxx at 2013-01-31 15:07:52) [GET] Parameters: {"project_id"=>"calculadora", "action"=>"index", "controller"=>"drop_box"}

NameError (uninitialized constant DropBoxController::DropboxAuthorizeException): vendor/plugins/redmine_drop_box/app/controllers/drop_box_controller.rb:51:in index' /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/request_handler.rb:96:inprocess_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:516:in accept_and_process_next_request' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_request_handler.rb:274:inmain_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:321:in start_request_handler' /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:insend' /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:275:in handle_spawn_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:470:insafe_fork' /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:270:in handle_spawn_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:insend' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in server_main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:instart_synchronously' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:180:in start' /usr/lib/ruby/vendor_ruby/phusion_passenger/classic_rails/application_spawner.rb:149:instart' /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:219:in spawn_rails_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:132:inlookup_or_add' /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:214:in spawn_rails_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:82:insynchronize' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server_collection.rb:79:in synchronize' /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:213:inspawn_rails_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:132:in spawn_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/spawn_manager.rb:275:inhandle_spawn_application' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:in __send__' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:357:inserver_main_loop' /usr/lib/ruby/vendor_ruby/phusion_passenger/abstract_server.rb:206:in `start_synchronously' /usr/share/phusion-passenger/helper-scripts/passenger-spawn-server:99

Rendering /opt/redmine/public/500.html (500 Internal Server Error)

VDPoornima commented 11 years ago

Hi,

I also met the same issue for a week ago. May i know your rails & ruby versions?.

krlsBC commented 11 years ago

Hi Poornimad!

Current versions are:

ruby 1.8.7 rails 2.3.14

VDPoornima commented 11 years ago

Okay. What about your shoulda gem version?.

krlsBC commented 11 years ago

Those are all installed gems:

* LOCAL GEMS *

actionmailer (2.3.14) actionpack (2.3.14) activerecord (2.3.14) activeresource (2.3.14) activesupport (3.2.11, 2.3.14) bourne (1.1.2) bundle (0.0.1) bundler (1.2.3) domain_name (0.5.7) i18n (0.6.1, 0.4.2) inifile (2.0.2) json (1.7.6) lockfile (2.1.0) mechanize (2.5.1) metaclass (0.0.1) mime-types (1.19) mocha (0.10.5) multi_json (1.5.0) multipart-post (1.1.5) mysql (2.9.0) net-http-digest_auth (1.2.1) net-http-persistent (2.8) net-ssh (2.6.3) nokogiri (1.5.6) ntlm-http (0.1.1) oauth (0.4.7) rack (1.1.5) rails (2.3.14) rake (10.0.3) rdoc (3.12) rmagick (2.13.1) shoulda (3.3.2) shoulda-context (1.0.2) shoulda-matchers (1.4.2) unf (0.0.5) unf_ext (0.0.5) webrobots (0.0.13)

VDPoornima commented 11 years ago

uninstall gem should i.e: gem uninstall shoulda. Try " gem install shoulda -v 2.11.3".

krlsBC commented 11 years ago

Great!

That solved the problem, everything seems to work flawlessly.

Thanks a lot Poornimad!