rake aborted with ruby on rails

123 views
Skip to first unread message

amvis

unread,
Nov 22, 2011, 5:27:20 AM11/22/11
to rubyonra...@googlegroups.com
when i run  rake db:create

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
DEPRECATION WARNING: Rake tasks in vendor/plugins/exception_logger/tasks, vendor/plugins/jrails/tasks, vendor/plugins/jrails_auto_complete/tasks, and vendor/plugins/mongo_db_logger/tasks are deprecated. Use lib/tasks instead. (called from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/tasks/rails.rb:10)
DEPRECATION WARNING: Kernel#returning has been deprecated in favor of Object#tap. (called from enable_activerecord at /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/mislav-will_paginate-2.3.11/lib/will_paginate.rb:39)
** TwitterAuth initialized properly.
rake aborted!
/home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/texticle-2.0.2/lib/texticle.rb:44: syntax error, unexpected tIDENTIFIER, expecting tAMPER
      __send__(method, *search_terms, exclusive)
                                               ^
/home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/texticle-2.0.2/lib/texticle.rb:78: undefined (?...) sequence: /^search_by_(?<columns>[_a-zA-Z]\w*)$/
/home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/texticle-2.0.2/lib/texticle.rb:86: undefined (?...) sequence: /^search_by_(?<columns>[_a-zA-Z]\w*)$/

(See full trace by running task with --trace)


Colin Law

unread,
Nov 22, 2011, 5:49:11 AM11/22/11
to rubyonra...@googlegroups.com
On 22 November 2011 10:27, amvis <vgrkr...@gmail.com> wrote:
> when i run  rake db:create
> WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require
> 'rdoc/task' (in RDoc 2.4.2+)' instead.
>     at
> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
> DEPRECATION WARNING: Rake tasks in vendor/plugins/exception_logger/tasks,
> vendor/plugins/jrails/tasks, vendor/plugins/jrails_auto_complete/tasks, and
> vendor/plugins/mongo_db_logger/tasks are deprecated. Use lib/tasks instead.

It looks like you might have out of date plugins in the vendor
directory, though these are only warnings.

> (called from
> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/tasks/rails.rb:10)
> DEPRECATION WARNING: Kernel#returning has been deprecated in favor of
> Object#tap. (called from enable_activerecord at
> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/mislav-will_paginate-2.3.11/lib/will_paginate.rb:39)
> ** TwitterAuth initialized properly.
> rake aborted!
> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/texticle-2.0.2/lib/texticle.rb:44:
> syntax error, unexpected tIDENTIFIER, expecting tAMPER
>       __send__(method, *search_terms, exclusive)

This is saying there is an error in the textile gem, I don't know
about that, but is that version compatible with the ruby and rails
that you are using?

Colin

Message has been deleted

amvis

unread,
Nov 23, 2011, 1:34:47 AM11/23/11
to rubyonra...@googlegroups.com
i am fed-up with the memcached. now am showing the detailed problem, but am trying to solve this for 3 days..

#######################Environment.rb file

# Be sure to restart your server when you modify this file
    
# Specifies gem version of Rails to use when vendor/rails is not present
RAILS_GEM_VERSION = '2.3.11' unless defined? RAILS_GEM_VERSION

# Bootstrap the Rails environment, frameworks, and default configuration
require File.join(File.dirname(__FILE__), 'boot')


if Gem::VERSION >= "1.3.6"
  module Rails
    class GemDependency
      def requirement
        r = super
        (r == Gem::Requirement.default) ? nil : r
      end
    end
  end
end

Rails::Initializer.run do |config|
  config.gem 'oauth'
  config.gem 'ezcrypto'
  config.gem 'english'
  #config.gem 'hoptoad_notifier'
  config.gem 'oauth2'
  config.gem 'rubyist-aasm', :lib => 'aasm', :source => 'http://gems.github.com'
  config.gem 'texticle'
  config.gem 'memcached'
  config.gem 'mislav-will_paginate', :lib => 'will_paginate', :source => 'http://gems.github.com'
  config.gem "RedCloth", :lib => "redcloth" 

  require 'memcached'

  # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
  # Run "rake -D time" for a list of tasks for finding time zone names.
  config.time_zone = 'Mumbai'

  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}')]
  # config.i18n.default_locale = :de
   #
end

#################################Gems list


drwxr-xr-x  6 root root 4096 2011-11-21 13:01 rake-0.9.2.2
drwxr-xr-x  3 root root 4096 2011-11-21 13:01 activesupport-2.3.11
drwxr-xr-x  5 root root 4096 2011-11-21 13:01 activerecord-2.3.11
drwxr-xr-x  4 root root 4096 2011-11-21 13:02 actionpack-2.3.11
drwxr-xr-x  4 root root 4096 2011-11-21 13:02 actionmailer-2.3.11
drwxr-xr-x  4 root root 4096 2011-11-21 13:02 activeresource-2.3.11
drwxr-xr-x 11 root root 4096 2011-11-21 13:02 rails-2.3.11
drwxr-xr-x  6 root root 4096 2011-11-21 14:52 term-ansicolor-1.0.7
drwxr-xr-x  5 root root 4096 2011-11-21 14:52 mime-types-1.17.2
drwxr-xr-x  5 root root 4096 2011-11-21 14:52 rest-client-1.6.7
drwxr-xr-x  6 root root 4096 2011-11-21 14:52 launchy-2.0.5
drwxr-xr-x  5 root root 4096 2011-11-21 14:52 rubyzip-0.9.4
drwxr-xr-x  6 root root 4096 2011-11-21 14:52 heroku-2.14.0
drwxr-xr-x  6 root root 4096 2011-11-21 18:54 redcar-0.11
drwxr-xr-x  4 root root 4096 2011-11-21 21:20 ezcrypto-0.7.2
drwxr-xr-x  3 root root 4096 2011-11-21 21:21 language-0.6.0
drwxr-xr-x  5 root root 4096 2011-11-21 21:22 english-0.6.3
drwxr-xr-x  4 root root 4096 2011-11-21 21:23 multipart-post-1.1.3
drwxr-xr-x  4 root root 4096 2011-11-21 21:23 faraday-0.7.5
drwxr-xr-x  4 root root 4096 2011-11-21 21:23 oauth2-0.5.1
drwxr-xr-x  3 root root 4096 2011-11-21 21:25 activesupport-3.1.3
drwxr-xr-x  5 root root 4096 2011-11-21 21:25 builder-3.0.0
drwxr-xr-x  5 root root 4096 2011-11-21 21:25 i18n-0.6.0
drwxr-xr-x  3 root root 4096 2011-11-21 21:25 activemodel-3.1.3
drwxr-xr-x  4 root root 4096 2011-11-21 21:25 arel-2.2.1
drwxr-xr-x  4 root root 4096 2011-11-21 21:25 tzinfo-0.3.31
drwxr-xr-x  4 root root 4096 2011-11-21 21:25 activerecord-3.1.3
drwxr-xr-x  4 root root 4096 2011-11-21 21:34 will_paginate-3.0.2
drwxr-xr-x  5 root root 4096 2011-11-22 10:39 aasm-2.3.1
drwxr-xr-x  4 root root 4096 2011-11-22 10:50 tism-will_paginate-2.3.16
drwxr-xr-x  4 root root 4096 2011-11-22 12:09 rubyist-aasm-2.1.1
drwxr-xr-x  5 root root 4096 2011-11-22 12:11 mislav-will_paginate-2.3.11
drwxr-xr-x  8 root root 4096 2011-11-22 13:25 rubygems-update-1.5.3
drwxr-xr-x  9 root root 4096 2011-11-22 13:28 json_pure-1.6.1
drwxr-xr-x  8 root root 4096 2011-11-22 14:44 RedCloth-4.2.7
drwxr-xr-x  6 root root 4096 2011-11-22 14:47 addressable-2.2.6
drwxr-xr-x  5 root root 4096 2011-11-22 14:48 configuration-1.3.1
drwxr-xr-x  4 root root 4096 2011-11-22 14:49 faraday-0.6.1
drwxr-xr-x  6 root root 4096 2011-11-22 14:53 heroku-2.3.6
drwxr-xr-x 10 root root 4096 2011-11-22 14:54 json-1.5.3
drwxr-xr-x  6 root root 4096 2011-11-22 14:57 launchy-0.4.0
drwxr-xr-x  4 root root 4096 2011-11-22 15:01 mime-types-1.16
drwxr-xr-x  4 root root 4096 2011-11-22 15:03 multi_json-1.0.3
drwxr-xr-x  4 root root 4096 2011-11-22 15:05 multipart-post-1.1.2
drwxr-xr-x  3 root root 4096 2011-11-22 15:06 mysql-2.7
drwxr-xr-x  7 root root 4096 2011-11-22 15:08 mysql-2.8.1
drwxr-xr-x  7 root root 4096 2011-11-22 15:09 oauth-0.4.5
drwxr-xr-x  4 root root 4096 2011-11-22 15:11 oauth2-0.4.1
drwxr-xr-x  7 root root 4096 2011-11-22 15:13 rack-1.1.2
drwxr-xr-x  5 root root 4096 2011-11-22 15:15 rest-client-1.6.3
drwxr-xr-x  6 root root 4096 2011-11-22 15:32 sequel-3.20.0
drwxr-xr-x  4 root root 4096 2011-11-22 15:34 sinatra-1.0
drwxr-xr-x  7 root root 4096 2011-11-22 15:36 sqlite3-1.3.3
drwxr-xr-x  4 root root 4096 2011-11-22 15:41 sqlite3-ruby-1.3.3
drwxr-xr-x  5 root root 4096 2011-11-22 15:43 taps-0.3.23
drwxr-xr-x  6 root root 4096 2011-11-22 15:45 term-ansicolor-1.0.5
drwxr-xr-x  5 root root 4096 2011-11-22 16:09 texticle-1.0.4.20101004123327
drwxr-xr-x  5 root root 4096 2011-11-23 11:32 memcached-1.3.5
drwxr-xr-x  5 root root 4096 2011-11-23 11:41 memcached-1.2.7

so when am trying to create db

rake db:create

WARNING: 'require 'rake/rdoctask'' is deprecated.  Please use 'require 'rdoc/task' (in RDoc 2.4.2+)' instead.
    at /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rake-0.9.2.2/lib/rake/rdoctask.rb
DEPRECATION WARNING: Rake tasks in vendor/plugins/exception_logger/tasks, vendor/plugins/jrails/tasks, vendor/plugins/jrails_auto_complete/tasks, and vendor/plugins/mongo_db_logger/tasks are deprecated. Use lib/tasks instead. (called from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/tasks/rails.rb:10)
rake aborted!
no such file to load -- memcached

(See full trace by running task with --trace)

Anyone  have idea about this problem???? plz help to solve this


Thank you
vishnu




 

Colin Law

unread,
Nov 23, 2011, 3:12:21 AM11/23/11
to rubyonra...@googlegroups.com

I don't know why this problem may be arising, but I can only point out
once again that you are using out of date plugins in the
vendor/plugins directory. Do you have a good reason for doing this?

Colin

amvis

unread,
Nov 23, 2011, 3:41:48 AM11/23/11
to rubyonra...@googlegroups.com
thank Colin,
i know that Colin, am using the out of date plugins. but i need to run with this.
just i commented the memcached, and run it. its OK now going fine. but when i start the server 


ruby script/server
=> Booting WEBrick
=> Rails 2.3.11 application starting on http://0.0.0.0:3000
DEPRECATION WARNING: Kernel#returning has been deprecated in favor of Object#tap. (called from enable_activerecord at /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/mislav-will_paginate-2.3.11/lib/will_paginate.rb:39)
** TwitterAuth initialized properly.
/home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/rails/rack/log_tailer.rb:10:in `size': No such file or directory - /home/vishnu/rordev/getafix/log/development.log (Errno::ENOENT)
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/rails/rack/log_tailer.rb:10:in `initialize'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:54:in `new'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:54:in `use'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:73:in `call'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:73:in `to_app'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:71:in `inject'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:73:in `each'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:73:in `inject'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rack-1.1.2/lib/rack/builder.rb:73:in `to_app'
from /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/commands/server.rb:95
from /home/vishnu/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /home/vishnu/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from script/server:3

have any problem with TwitterAuth????

Thank you
Vishnu



amvis

unread,
Nov 23, 2011, 3:53:17 AM11/23/11
to rubyonra...@googlegroups.com
Colin, i think the problem with the missing of development.log file?  now just i created the development.log in log folder? have any problem?

Colin Law

unread,
Nov 23, 2011, 4:05:49 AM11/23/11
to rubyonra...@googlegroups.com
On 23 November 2011 08:41, amvis <vgrkr...@gmail.com> wrote:
> thank Colin,

Please don't top post, it makes it difficult to follow the thread.
Insert your reply at appropriate points in previous message. Thanks.

> i know that Colin, am using the out of date plugins. but i need to run with
> this.
> just i commented the memcached, and run it. its OK now going fine. but when
> i start the server
>
> ruby script/server
> => Booting WEBrick
> => Rails 2.3.11 application starting on http://0.0.0.0:3000
> DEPRECATION WARNING: Kernel#returning has been deprecated in favor of
> Object#tap. (called from enable_activerecord at
> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/mislav-will_paginate-2.3.11/lib/will_paginate.rb:39)
> ** TwitterAuth initialized properly.

I don't know anything about twitterauth but the above message suggests
that all is well.

> /home/vishnu/.rvm/gems/ruby-1....@rails2.3.11/gems/rails-2.3.11/lib/rails/rack/log_tailer.rb:10:in
> `size': No such file or directory -
> /home/vishnu/rordev/getafix/log/development.log (Errno::ENOENT)

It is important to read the errors carefully. The above suggests that
it cannot access the log file. It should create the log file if it
does not exist (I think) but I wonder whether the log directory does
not exist.

Colin

> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/rubyonrails-talk/-/VXPEDFw_rZ4J.
> To post to this group, send email to rubyonra...@googlegroups.com.
> To unsubscribe from this group, send email to
> rubyonrails-ta...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-talk?hl=en.
>

--
gplus.to/clanlaw

Reply all
Reply to author
Forward
0 new messages