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

An error message when starting console without intalling pluging #1445

Closed
MontrealSergiy opened this issue Nov 11, 2024 · 3 comments
Closed
Labels
Admin Features or bugs related to administrative features Priority: Low To implement when someone actually requests it!

Comments

@MontrealSergiy
Copy link
Contributor

MontrealSergiy commented Nov 11, 2024

I am getting hirb error on the console start (both master and dev) after disabling plugins. Console works fine though (save BACs attribute_names and friends). Maybe then raise warning rather than error?

CBRAIN Rails Console Initialization starting
Current user is now: admin

Current project is now: (nil)

load error: /home/users/sboroday/cbrain/BrainPortal/config/console_rc/init_rc.rb

NoMethodError: undefined method `attribute_names' for BackgroundActivity:Class

Did you mean?  attr_internal

	/home/users/sboroday/cbrain/BrainPortal/config/console_rc/lib/wirble_hirb_looksee.rb:80:in `block in <top (required)>'

	/home/users/sboroday/cbrain/BrainPortal/config/console_rc/lib/wirble_hirb_looksee.rb:76:in `each'

	/home/users/sboroday/cbrain/BrainPortal/config/console_rc/lib/wirble_hirb_looksee.rb:76:in `<top (required)>'

	/home/users/sboroday/.rvmpath/ruby/2.7.0/gems/activesupport-5.0.7.2/lib/active_support/dependencies.rb:293:in `require'

to reproduce run

cd ~/cbrain/BrainPortal  # or other place of CBRAIN installation
rake cbrain:plugins:clean:all
rails console
@MontrealSergiy MontrealSergiy added Admin Features or bugs related to administrative features Priority: Low To implement when someone actually requests it! labels Nov 11, 2024
@prioux
Copy link
Member

prioux commented Nov 11, 2024

Try to install the plugins at least? CBRAIN comes with internal plugins that are required. Run

rake cbrain:plugins:install:all

and then try the console again.

@MontrealSergiy
Copy link
Contributor Author

MontrealSergiy commented Nov 11, 2024

that helps. BackgroundActivity is more of intrinsic feature than a plugin, so one may expect it to work without plugin installation procedure.

@prioux
Copy link
Member

prioux commented Nov 11, 2024

Some of the core functionality is provided as internal plugins. So running the script to install plugins is required at all times, even on a bare system that has no external plugins.

@prioux prioux closed this as completed Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin Features or bugs related to administrative features Priority: Low To implement when someone actually requests it!
Projects
None yet
Development

No branches or pull requests

2 participants