Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6326411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:05:12+00:00 2026-05-24T17:05:12+00:00

I am getting uninitialized constant YAML::ENGINE when running a rake task from cron since

  • 0

I am getting uninitialized constant YAML::ENGINE when running a rake task from cron since I upgraded my server to ruby 1.9.2. I had the same error with the app but putting …

require 'yaml'
YAML::ENGINE.yamler= 'syck'

in the boot.rb file fixed it. If I run the task directly from the command line on my Ubuntu server it works fine, the server uses RVM.

However running a task from cron doesn’t seem to pickup this fix, I have tried this …

task :twitter, :needs => :environment do
  require 'yaml'
  YAML::ENGINE.yamler= 'syck'
  @tweets = Property.updatetwitter
end

to no avail.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T17:05:14+00:00Added an answer on May 24, 2026 at 5:05 pm

    Are you sure you’re running it under Ruby 1.9.2? Because while YAML::ENGINE exists in 1.9.2, it’s not in 1.8.7. Check your Ruby version.

    UPDATE

    How to tell which Ruby version program is using from within the program:

    puts `ruby -v`
    

    Lame way how to enforce cron task to run under certain Ruby version (if server uses RVM):

    rvm use 1.8.7; ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When starting my rails server I'm getting an 'uninitialized constant ActionPack' error. raw stack
I am getting uninitialized constant MysqlCompat::MysqlRes when I run rake db:migrate. So here is
environment.rb:7: uninitialized constant Rails::Initializer (NameError) from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/application.rb:78:in `require_environment!' from /usr/lib/ruby/gems/1.8/gems/railties-3.1.0/lib/rails/commands.rb:39 from script/rails:6:in `require' from
So I've been getting some mysterious uninitialized values message from valgrind and it's been
I'm getting uninitialized constant Date (NameError) with the following code: class Test attr_accessor :reqs
I keep getting this error: uninitialized constant GetxmlController::Xmlparse my code for the class looks
I'm getting error: uninitialized constant ActionView::Helpers::JavaScriptElementProxy::ActionView I've tried forcing a reinstall of jrails which
I'm getting this error: uninitialized constant OpenidsController I can't figure out why. I'm following
I am getting an uninitialized constant error when trying to include a helper module
I keep getting this error when trying to view my channels controller. uninitialized constant

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.