Problem when running db:create

89 views
Skip to first unread message

Advocatus Kakorozya

unread,
Nov 17, 2015, 5:30:18 AM11/17/15
to Ruby on Rails: Talk
I have installed;
Ruby
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

Rails 4.2.4
gem 2.5.0

MySQL

Phusion Passenger version 5.0.21

+ apache

But when I run "rake db:create --trace"

I get the following error

NoMethodError: undefined method `task' for #<Spec::Rake::SpecTask:0x007f3b57c8ef58>
/home/lugala/apps/lib/tasks/rspec.rake:28:in `initialize'
/home/lugala/apps/lib/tasks/rspec.rake:58:in `new'
/home/lugala/apps/lib/tasks/rspec.rake:58:in `<top (required)>'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:658:in `load'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:658:in `block in run_tasks_blocks'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:658:in `each'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:658:in `run_tasks_blocks'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:452:in `run_tasks_blocks'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:453:in `load_tasks'
/home/lugala/apps/Rakefile:6:in `<top (required)>'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/home/lugala/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/rake-10.4.2/bin/rake:33:in `<top (required)>'
/home/lugala/.rbenv/versions/2.2.1/bin/rake:23:in `load'
/home/lugala/.rbenv/versions/2.2.1/bin/rake:23:in `<main>'

Help please I am stuck here

Colin Law

unread,
Nov 17, 2015, 6:00:24 AM11/17/15
to Ruby on Rails: Talk
On 17 November 2015 at 10:10, Advocatus Kakorozya <akako...@gmail.com> wrote:
> I have installed;
> Ruby
> ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
>
> Rails 4.2.4
> gem 2.5.0
>
> MySQL
>
> Phusion Passenger version 5.0.21
>
> + apache
>
> But when I run "rake db:create --trace"
>
> I get the following error
>
> NoMethodError: undefined method `task' for
> #<Spec::Rake::SpecTask:0x007f3b57c8ef58>

Is this for a new rails app or have you picked up an app already written?

Colin

Advocatus Kakorozya

unread,
Nov 18, 2015, 3:28:52 AM11/18/15
to Ruby on Rails: Talk
  Dear Colin,
  Thanks for your response,
  I have picked app already written called Fedena ( http://www.projectfedena.org/ )
  Regards,
  Advo

Colin Law

unread,
Nov 18, 2015, 3:48:07 AM11/18/15
to Ruby on Rails: Talk
On 18 November 2015 at 08:28, Advocatus Kakorozya <akako...@gmail.com> wrote:
> Dear Colin,
> Thanks for your response,
> I have picked app already written called Fedena (
> http://www.projectfedena.org/ )

Have you kept the files Gemfile.lock and Gemfile *exactly* as they
were in the version you picked up (which guarantees that you have the
same versions of gems as the original)? Note that you must not run
bundle update or that may update gem versions. You should just run
bundle install. If you are in any doubt then restore Gemfile and
Gemfile.lock and run bundle update.

By the way, I would prefer it if you could not top post, but insert
you reply at the appropriate point(s) in the previous message. It
makes it easier to follow the thread. Thanks.

Colin

> Regards,
> Advo
>
>
> On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote:
>>
>> On 17 November 2015 at 10:10, Advocatus Kakorozya <akako...@gmail.com>
>> wrote:
>> > I have installed;
>> > Ruby
>> > ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]
>> >
>> > Rails 4.2.4
>> > gem 2.5.0
>> >
>> > MySQL
>> >
>> > Phusion Passenger version 5.0.21
>> >
>> > + apache
>> >
>> > But when I run "rake db:create --trace"
>> >
>> > I get the following error
>> >
>> > NoMethodError: undefined method `task' for
>> > #<Spec::Rake::SpecTask:0x007f3b57c8ef58>
>>
>> Is this for a new rails app or have you picked up an app already written?
>>
>> Colin
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rubyonrails-ta...@googlegroups.com.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/34428c42-c181-421f-8a63-2f8b618c2618%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.

Advocatus Kakorozya

unread,
Nov 18, 2015, 4:27:59 AM11/18/15
to Ruby on Rails: Talk
 Dear Colin,

 Thanks but I think I hit a wrong button, this time I have pressed the top red POST REPLY button, hope it should be correct
  Below are the procedures I followed in the installation process
  
[root@i-3781-9521-VM ~]# cp master projectfedena-projectfedena_v2.0-a213125.tar.gz
[root@i-3781-9521-VM ~]# rm master
[root@i-3781-9521-VM ~]# chmod 777 projectfedena-projectfedena_v2.0-a213125.tar.gz
[root@i-3781-9521-VM ~]# tar -xvf projectfedena-projectfedena_v2.0-a213125.tar.gz

I then changed the folder to apps instead of projectfedena-projectfedena_v2.0-a213125
At this point, still when I looked in apps folder, neither Gemfile.lock nor Gemfile where present, hence I decided to run

cd /apps
 
then

rails new apps

this generated neither Gemfile.lock and Gemfile files



On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote:

Advocatus Kakorozya

unread,
Nov 18, 2015, 4:43:39 AM11/18/15
to Ruby on Rails: Talk
 Sorry in my last post, the last sentence I meant to say
 
 this generated both Gemfile.lock and Gemfile 


On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote:

Colin Law

unread,
Nov 18, 2015, 4:52:25 AM11/18/15
to Ruby on Rails: Talk
On 18 November 2015 at 09:27, Advocatus Kakorozya <akako...@gmail.com> wrote:
> Dear Colin,
>
> Thanks but I think I hit a wrong button, this time I have pressed the top
> red POST REPLY button, hope it should be correct

No, you have still posted at the top. You have to click the three
little dots down at the bottom left of the window after clicking
Reply, which will show the previous message. Then you can insert your
new message at the appropriate point.

> Below are the procedures I followed in the installation process
>
>
> [root@i-3781-9521-VM ~]# cp master
> projectfedena-projectfedena_v2.0-a213125.tar.gz
> [root@i-3781-9521-VM ~]# rm master
> [root@i-3781-9521-VM ~]# chmod 777
> projectfedena-projectfedena_v2.0-a213125.tar.gz
> [root@i-3781-9521-VM ~]# tar -xvf
> projectfedena-projectfedena_v2.0-a213125.tar.gz
>
>
> I then changed the folder to apps instead of
> projectfedena-projectfedena_v2.0-a213125
> At this point, still when I looked in apps folder, neither Gemfile.lock nor
> Gemfile where present, hence I decided to run

In config/environment.rb does it specify RAILS_GEM_VERSION? If so what is it?
If not then post environment.rb here.

Colin

Advocatus Kakorozya

unread,
Nov 18, 2015, 5:31:19 AM11/18/15
to Ruby on Rails: Talk
Thank you Colin,

I have not been able to locate the three dots like how I see them in my gmail inbox browser 
But now I have put the post at the bottom of the message, hope this will display correctly, if not them I am direct my messages to my inbox 
then I will be replying from there.

In the config/environment.rb there is not RAILS_GEM_VERSION. but the only text I could find there are as follow below

# Load the Rails application.
require File.expand_path('../application', __FILE__)

# Initialize the Rails application.
Rails.application.initialize!

Many thanks

Advo

Colin Law

unread,
Nov 18, 2015, 5:48:56 AM11/18/15
to Ruby on Rails: Talk
On 18 November 2015 at 10:31, Advocatus Kakorozya <akako...@gmail.com> wrote:
> ...
> I have not been able to locate the three dots like how I see them in my
> gmail inbox browser
> But now I have put the post at the bottom of the message, hope this will
> display correctly, if not them I am direct my messages to my inbox
> then I will be replying from there.

This is fine, thanks.

>
> In the config/environment.rb there is not RAILS_GEM_VERSION. but the only
> text I could find there are as follow below
>
> # Load the Rails application.
> require File.expand_path('../application', __FILE__)
>
> # Initialize the Rails application.
> Rails.application.initialize!

Looking at config/environmet.rb at
https://github.com/projectfedena/fedena/blob/master/config/environment.rb
there is a RAILS_GEM_VERSION, which says it needs rails 2.3. It seems
from you earlier posts that you have picked up an even older version
of fedena. However even rails 2.3 is way out of date and no longer
supported, so this is a big problem.

Have you been following the instructions on
http://projectfedena.org/install

Colin

Advocatus Kakorozya

unread,
Nov 18, 2015, 6:00:38 AM11/18/15
to Ruby on Rails: Talk


On Tuesday, November 17, 2015 at 2:00:24 PM UTC+3, Colin Law wrote:
Thanks Colin,

I can see a very huge difference on the environment.rb

Best regards,

Advo

Tamara Temple

unread,
Nov 18, 2015, 1:40:52 PM11/18/15
to rubyonra...@googlegroups.com
I am pretty sure that fedena does not work out of the box with these
versions. The last time a bunch of people were asking about it, it turns
out to be a Rails 2.x app, working on 1.8.x


--
Tamara Temple
tam...@gmail.com
http://www.tamouse.org

Colin Law

unread,
Nov 18, 2015, 4:05:16 PM11/18/15
to Ruby on Rails: Talk
So do you need any further help?

I should point out that you should not be using a rails 2.3 app on a
public website, as it is no longer supported I am sure there will be
security flaws. I presume that fedena is basically dead as it has not
been upgraded.

Colin

Advocatus Kakorozya

unread,
Nov 18, 2015, 11:22:18 PM11/18/15
to rubyonra...@googlegroups.com

Dear Colin,
Thanks you for your support
Yes I still need help, but I am reluctant to use Fedena if its no longer supported then it will be difficult for me. I will need to confirm first before I can proceed
I will be back to you
Thanks again
Advo


--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/eXcbalwynck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.

To post to this group, send email to rubyonra...@googlegroups.com.

Aboobacker MK

unread,
Dec 3, 2015, 5:14:59 AM12/3/15
to Ruby on Rails: Talk
You have to use ruby 1.8 and rails 2.3 , project fedena won't work in ruby 2.2, use this guide for deploying fedena http://aboobacker.in/deploying-fedena-using-ubuntu-14-04/

Advocatus Kakorozya

unread,
Dec 3, 2015, 5:18:50 AM12/3/15
to rubyonra...@googlegroups.com

Thank you for your response

--
You received this message because you are subscribed to a topic in the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rubyonrails-talk/eXcbalwynck/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages