Open DaveMtl opened 4 years ago
Have you tried the following:
bundle show sys-proctable
(copy the directory shown)
cd /to/that/directory
rake install
Source: https://github.com/aces/cbrain/wiki/Common-Setup#iv-gems
Yeah, that was my first suggestion. The Sys::Proctable gem requires a manual installation step that can cause exactly that problem if it's skipped.
First, cd
to the Bourreau
subdirectory then type bundle show sys-proctable
; it will tell you where the bundler installed the gem. Go there, and run 'rake install`.
Thanks for the fast answer.
I still have the same problem after trying the solution.
Maybe I just missed another step. I'll try reinstalling from scratch and see if works better.
cgroup_entry.rb is just one of the ruby files in the sys-proctable gem, it seems weird that it can't load it after installation.
Sorry for closing the issue, that was a misclick...
I'm not familiar with Ruby and I had a few hiccups while following the installation so I might have done something I shouldn't have. I'll let you know how it goes after trying again.
Thanks for the help.
Hi again,
I reinstalled everything from scratch and still have the same problem:
[2020-09-04 16:21:05 EDT] Remote control command for BourreauSimpleApp failed.
Command: cd /home/cbrain/cbrain/Bourreau; bundle exec ruby /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl start -e development -p 1026 2>&1
Output:
---Start Of Output---
/home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable.rb:2:in `require_relative': cannot load such file -- /home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable/cgroup_entry (LoadError)
from /home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable.rb:2:in `<top (required)>'
from /home/cbrain/cbrain/Bourreau/lib/ssh_master.rb:31:in `require'
from /home/cbrain/cbrain/Bourreau/lib/ssh_master.rb:31:in `<top (required)>'
from /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl:71:in `require'
from /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl:71:in `<main>'
---End Of Output---
Any other suggestions?
OK, I'm going to suggest some more 'clean up and try again' commands. You can type the following commands exactly as they are, they don't need any adjustments.
These commands only attempt to clean up the gems directories, they won't affect the CBRAIN codebase itself.
cd /home/cbrain/cbrain/BrainPortal
bundle clean --force
cd /home/cbrain/cbrain/Bourreau
bundle clean --force
cd /home/cbrain/cbrain/BrainPortal
rm Gemfile.lock
gem uninstall sys-proctable
bundle install
cd $(bundle show sys-proctable)
rake install
cd /home/cbrain/cbrain/Bourreau
rm Gemfile.lock
bundle install
cd $(bundle show sys-proctable)
rake install
Thanks again,
I get the same error:
[2020-09-04 17:03:39 EDT] Remote control command for BourreauSimpleApp failed.
Command: cd /home/cbrain/cbrain/Bourreau; bundle exec ruby /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl start -e development -p 1026 2>&1
Output:
---Start Of Output---
/home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable.rb:2:in `require_relative': cannot load such file -- /home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable/cgroup_entry (LoadError)
from /home/cbrain/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys/proctable.rb:2:in `<top (required)>'
from /home/cbrain/cbrain/Bourreau/lib/ssh_master.rb:31:in `require'
from /home/cbrain/cbrain/Bourreau/lib/ssh_master.rb:31:in `<top (required)>'
from /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl:71:in `require'
from /home/cbrain/cbrain/Bourreau/script/cbrain_remote_ctl:71:in `<main>'
---End Of Output---
Some remarks:
In BrainPortal, bundle clean --force
didnt return anything.
In Bourreau, bundle clean --force
returned:
Removing pagy (3.8.3)
Removing thin (1.7.2)
Removing eventmachine (1.2.7)
Removing jquery-ui-rails (6.0.1)
Removing tilt (2.0.10)
Removing coffee-rails (4.2.2)
Removing daemons (1.3.1)
Removing jquery-rails (4.4.0)
Removing json (2.3.1)
Removing execjs (2.7.0)
Removing libv8-3.16.14.19-x86_64 (linux)
Removing uglifier (4.2.0)
Removing jquery-form-rails (1.0.1)
Removing ref (2.0.0)
Removing sassc-rails (2.1.2)
Removing will_paginate (3.3.0)
Removing coffee-script-source (1.12.2)
Removing ethon (0.12.0)
Removing typhoeus (1.4.0)
Removing coffee-script (2.4.1)
Removing sassc (2.4.0)
Removing therubyracer (0.12.3)
Removing cbrain-client-gem (fba4ccf3fb0b)
Removing zenodo-client-gem (daa82325fa4f)
Something I forgot to mention is that I had to add gem "thin"
to the Gemfile of BrainPortal. The server wasn't starting without it.
Hi, I managed to start the Bourreau by copying the content of the proctable folder from:
~/.rvm/gems/ruby-2.4.1/gems/sys-proctable-1.2.6/lib/linux/sys
to:
~/.rvm/rubies/ruby-2.4.1/lib/ruby/site_ruby/2.4.0/sys
For some reason, the install location of the bundle for Bourreau isn't the same as the location used at run time.
I don't know if it's related but when I run the command
rake cbrain:plugins:install:all
I get the message:
No public assets need to be installed for a Bourreau All done.
I thought it was odd the command didn't do anything.
I think this one can be closed ? @bryancaron ?
Hi, I'm setting up a development environment on a local machine and I get an error when starting the Bourreau.
As suggested in #265, I tried changing the version of proctable in the Gemfile of Bourreau to:
but the error remained, (I did run the command bundle install).
Since the Bourreau and BrainPortal runs on the same machine, I also tried to change it in the Gemfile of BrainPortal but then BrainPortal won't start because it can't find cgroup_entry...
Bundle list for Bourreau is:
rvm info returns: