Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing on Discourse v2.0.0.beta9 #1

Open
dustinkeib opened this issue May 6, 2018 · 9 comments
Open

Error when installing on Discourse v2.0.0.beta9 #1

dustinkeib opened this issue May 6, 2018 · 9 comments

Comments

@dustinkeib
Copy link

dustinkeib commented May 6, 2018

My ruby is inadequate, so I would appreciate some help! Relevant log output:

rake aborted!
NoMethodError: undefined method `before_filter' for DiscourseMailgun::MailgunController:Class
Did you mean?  before_action
/var/www/discourse/plugins/discourse-mailgun/plugin.rb:43:in `<class:MailgunController>'
/var/www/discourse/plugins/discourse-mailgun/plugin.rb:42:in `block in activate!'
/var/www/discourse/lib/plugin/instance.rb:271:in `block in notify_after_initialize'
/var/www/discourse/lib/plugin/instance.rb:269:in `each'
/var/www/discourse/lib/plugin/instance.rb:269:in `notify_after_initialize'
/var/www/discourse/config/application.rb:237:in `each'
/var/www/discourse/config/application.rb:237:in `block in <class:Application>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:67:in `block in execute_hook'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:60:in `with_execution_control'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:65:in `execute_hook'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:50:in `block in run_load_hooks'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:49:in `each'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/lazy_load_hooks.rb:49:in `run_load_hooks'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:73:in `block in <module:Finisher>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `public_send'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/railtie.rb:185:in `method_missing'
/var/www/discourse/config/environment.rb:5:in `<top (required)>'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:329:in `require_environment!'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/railties-5.1.4/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/var/www/discourse/vendor/bundle/ruby/2.4.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
/usr/local/bin/bundle:23:in `load'
/usr/local/bin/bundle:23:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
I, [2018-05-06T21:47:26.173902 #13]  INFO -- : 
I, [2018-05-06T21:47:26.174589 #13]  INFO -- : Terminating async processes

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse && su discourse -c 'bundle exec rake db:migrate' failed with return #<Process::Status: pid 392 exit 1>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"bundle_exec", "cmd"=>["su discourse -c 'bundle install --deployment --verbose --without test --without development --retry 3 --jobs 4'", "su discourse -c 'bundle exec rake db:migrate'", "su discourse -c 'bundle exec rake assets:precompile'"]}
32f6a7720a11981869f2555de8df1c0d96cca005dab2f2c7777ed66e207c0e57
** FAILED TO BOOTSTRAP ** please scroll up and look for earlier error messages, there may be more than one
````

Please advise if there is further info I can provide, and thank you!
@dustinkeib dustinkeib changed the title Error when installing on https://github.com/discourse/discourse/releases/tag/v2.0.0.beta9 Error when installing on Discourse v2.0.0.beta9 May 6, 2018
@troykelly
Copy link
Member

Sorry, @dustinkeib it looks like there are breaking changes in Discourse (similar issue here last year).
We aren't using Discourse actively any longer, I will try and make some time to have a look - but it might be worth asking the community to help - happy to accept a PR to fix the issue!

@dustinkeib
Copy link
Author

@troykelly Thank you, I will see if I can resolve and issue a PR if so.

@dustinkeib
Copy link
Author

@troykelly Out of curiosity, what are you using these days? Curious if there's something better out there.

@troykelly
Copy link
Member

@dustinkeib we moved some to Ghost, when we have a more "community" engaged need - we will probably use Discourse again. We just had to put some projects on hold while we work on our core product.

@dustinkeib
Copy link
Author

@troykelly Thank you!

@dustinkeib dustinkeib reopened this May 7, 2018
@dustinkeib
Copy link
Author

(Keeping open for the community, in case someone has a solution)

@dustinkeib dustinkeib reopened this May 7, 2018
@troykelly
Copy link
Member

@dustinkeib Let's keep it open so I remain aware of it. Not sure where it will sit priority wise - but would be good to get it working with current versions.

@tttp
Copy link

tttp commented Feb 9, 2019

FYI: This fork seems to have fixed before_filter->before_action (and a bunch of others)
https://github.com/halkeye/discourse-mailgun/commits/master

@jeffbyrnes
Copy link

@tmacedo @troykelly @dustinkeib my PR fixes this up, in case you’d like to merge it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants