Issue with Foreman-rake/Gems

Hi

For some reason I can no longer use foreman-rake for anything nor does the
foreman-installer work. Please see below:

[root@localhost pxelinux.cfg]# foreman-rake db::dump
rake aborted!
Don't know how to build task 'db::dump'

(See full trace by running task with --trace)
[root@localhost pxelinux.cfg]# foreman-rake db::dump --trace
rake aborted!
Don't know how to build task 'db::dump'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/task_manager.rb:62:in
[]' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:149:ininvoke_task'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:ineach'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:115:inrun_with_threads'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:78:inblock in run'
/opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling' /opt/rh/rh-ruby22/root/usr/share/gems/gems/rake-10.4.2/lib/rake/application.rb:75:inrun'
/opt/rh/rh-ruby22/root/usr/bin/rake:33:in `<main>'

[root@localhostpxelinux.cfg]# bundle exec rake -T
Could not locate Gemfile

This is the same message when i try to do anything with foreman-rake. Can
someone please let me know how to fix?

Thanks!

> Hi
>
> For some reason I can no longer use foreman-rake for anything nor does
> the foreman-installer work. Please see below:
>
> [root@localhost pxelinux.cfg]# foreman-rake db::dump
> rake aborted!
> Don't know how to build task 'db::dump'

Use a single colon, foreman-rake db:dump.

> [root@localhostpxelinux.cfg]# bundle exec rake -T
> Could not locate Gemfile

Use foreman-rake -T. This command will only work reliably on source
installations.

··· On 03/05/17 09:43, James Denton wrote:


Dominic Cleal
dominic@cleal.org

Thanks Dominic! :slight_smile:

··· On Wednesday, May 3, 2017 at 9:49:28 AM UTC+1, Dominic Cleal wrote: > > On 03/05/17 09:43, James Denton wrote: > > Hi > > > > For some reason I can no longer use foreman-rake for anything nor does > > the foreman-installer work. Please see below: > > > > [root@localhost pxelinux.cfg]# foreman-rake db::dump > > rake aborted! > > Don't know how to build task 'db::dump' > > Use a single colon, `foreman-rake db:dump`. > > > [root@localhostpxelinux.cfg]# bundle exec rake -T > > Could not locate Gemfile > > Use `foreman-rake -T`. This command will only work reliably on source > installations. > > -- > Dominic Cleal > dom...@cleal.org >