{"action":"created","issue":{"url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/122","labels_url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/122/comments","events_url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/122/events","html_url":"https://github.com/hdgarrood/redmine_release_notes/issues/122","id":99643412,"number":122,"title":"Rake command fails","user":{"login":"mhiemstrapodiumtv","id":10496880,"avatar_url":"https://avatars.githubusercontent.com/u/10496880?v=3","gravatar_id":"","url":"https://api.github.com/users/mhiemstrapodiumtv","html_url":"https://github.com/mhiemstrapodiumtv","followers_url":"https://api.github.com/users/mhiemstrapodiumtv/followers","following_url":"https://api.github.com/users/mhiemstrapodiumtv/following{/other_user}","gists_url":"https://api.github.com/users/mhiemstrapodiumtv/gists{/gist_id}","starred_url":"https://api.github.com/users/mhiemstrapodiumtv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhiemstrapodiumtv/subscriptions","organizations_url":"https://api.github.com/users/mhiemstrapodiumtv/orgs","repos_url":"https://api.github.com/users/mhiemstrapodiumtv/repos","events_url":"https://api.github.com/users/mhiemstrapodiumtv/events{/privacy}","received_events_url":"https://api.github.com/users/mhiemstrapodiumtv/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-07T13:02:15Z","updated_at":"2015-10-30T01:58:00Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying to install the release notes plugin for redmine. When executing the rake command I see this on my screen.\r\n\r\n```\r\n/usr/share/redmine/lib/plugins/redmine_release_notes$ sudo rake redmine:plugins:migrate RAILS_ENV=production --trace\r\n(in /usr/share/redmine)\r\n** Invoke redmine:plugins:migrate (first_time)\r\n** Invoke environment (first_time)\r\n** Execute environment\r\nrake aborted!\r\nMissing helper file helpers/release_notes_helper.rb\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:317:in `rescue in depend_on'\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:312:in `depend_on'\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:225:in `require_dependency'\r\n/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:135:in `block in modules_for_helpers'\r\n/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:131:in `map!'\r\n/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:131:in `modules_for_helpers'\r\n/usr/lib/ruby/vendor_ruby/action_controller/metal/helpers.rb:92:in `modules_for_helpers'\r\n/usr/lib/ruby/vendor_ruby/abstract_controller/helpers.rb:95:in `helper'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/lib/redmine_release_notes/issues_controller_patch.rb:21:in `block in perform'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/lib/redmine_release_notes/issues_controller_patch.rb:20:in `class_eval'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/lib/redmine_release_notes/issues_controller_patch.rb:20:in `perform'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/init.rb:25:in `block (3 levels) in <top (required)>'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/init.rb:23:in `each'\r\n/usr/share/redmine/lib/plugins/redmine_release_notes/init.rb:23:in `block (2 levels) in <top (required)>'\r\n/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:429:in `_run__1849565999418415124__prepare__3052232046468045691__callbacks'\r\n/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:405:in `__run_callback'\r\n/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:385:in `_run_prepare_callbacks'\r\n/usr/lib/ruby/vendor_ruby/active_support/callbacks.rb:81:in `run_callbacks'\r\n/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:74:in `prepare!'\r\n/usr/lib/ruby/vendor_ruby/action_dispatch/middleware/reloader.rb:48:in `prepare!'\r\n/usr/lib/ruby/vendor_ruby/rails/application/finisher.rb:47:in `block in <module:Finisher>'\r\n/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `instance_exec'\r\n/usr/lib/ruby/vendor_ruby/rails/initializable.rb:30:in `run'\r\n/usr/lib/ruby/vendor_ruby/rails/initializable.rb:55:in `block in run_initializers'\r\n/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `each'\r\n/usr/lib/ruby/vendor_ruby/rails/initializable.rb:54:in `run_initializers'\r\n/usr/lib/ruby/vendor_ruby/rails/application.rb:136:in `initialize!'\r\n/usr/lib/ruby/vendor_ruby/rails/railtie/configurable.rb:30:in `method_missing'\r\n/usr/share/redmine/config/environment.rb:14:in `<top (required)>'\r\n/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'\r\n/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `block in require'\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:236:in `load_dependency'\r\n/usr/lib/ruby/vendor_ruby/active_support/dependencies.rb:251:in `require'\r\n/usr/lib/ruby/vendor_ruby/rails/application.rb:103:in `require_environment!'\r\n/usr/lib/ruby/vendor_ruby/rails/application.rb:305:in `block (2 levels) in initialize_tasks'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:246:in `call'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:246:in `block in execute'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:241:in `each'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:241:in `execute'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:184:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:177:in `invoke_with_call_chain'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:205:in `block in invoke_prerequisites'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:203:in `each'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:203:in `invoke_prerequisites'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:183:in `block in invoke_with_call_chain'\r\n/usr/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:177:in `invoke_with_call_chain'\r\n/usr/lib/ruby/vendor_ruby/rake/task.rb:170:in `invoke'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:143:in `invoke_task'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:101:in `block (2 levels) in top_level'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:101:in `each'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:101:in `block in top_level'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:110:in `run_with_threads'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:95:in `top_level'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:73:in `block in run'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:160:in `standard_exception_handling'\r\n/usr/lib/ruby/vendor_ruby/rake/application.rb:70:in `run'\r\n/usr/bin/rake:27:in `<main>'\r\nTasks: TOP => redmine:plugins:migrate => environment\r\n```\r\n\r\nAnybody got a clue?"},"comment":{"url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/comments/152381202","html_url":"https://github.com/hdgarrood/redmine_release_notes/issues/122#issuecomment-152381202","issue_url":"https://api.github.com/repos/hdgarrood/redmine_release_notes/issues/122","id":152381202,"user":{"login":"DarkSideGeek","id":1418537,"avatar_url":"https://avatars.githubusercontent.com/u/1418537?v=3","gravatar_id":"","url":"https://api.github.com/users/DarkSideGeek","html_url":"https://github.com/DarkSideGeek","followers_url":"https://api.github.com/users/DarkSideGeek/followers","following_url":"https://api.github.com/users/DarkSideGeek/following{/other_user}","gists_url":"https://api.github.com/users/DarkSideGeek/gists{/gist_id}","starred_url":"https://api.github.com/users/DarkSideGeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarkSideGeek/subscriptions","organizations_url":"https://api.github.com/users/DarkSideGeek/orgs","repos_url":"https://api.github.com/users/DarkSideGeek/repos","events_url":"https://api.github.com/users/DarkSideGeek/events{/privacy}","received_events_url":"https://api.github.com/users/DarkSideGeek/received_events","type":"User","site_admin":false},"created_at":"2015-10-30T01:58:00Z","updated_at":"2015-10-30T01:58:00Z","body":"I had that problem when I downloaded as Zip and unarchived as \"redmine_release_notes_master\". Must change name to just \"redmine_release_notes\". Based on your prompt, this is not your issue, but I thought I'd throw it out for anyone else who ran into it...\r\n\r\nNext comment: I use RVM. Not sure if you do? But if so, my understanding is you can never run RVM/rails as 'sudo' because it discards the environment variables necessary to operate. At best, should be run w/o sudo using the UID of the installed app. At worst, you can use 'rvmsudo' which tries to preserve env-vars such as RAILS_ENV. Hope this is your issue."}}