I am unable to get Locomotive running on my local environment.
  • I am hosting at Heroku, and have my DB hosted at MongoHQ. When I start the rails app, it throws the following error:


    /usr/local/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/ext/module.rb:36:in `const_missing': uninitialized constant CASClient::Tickets::Storage::ActiveRecord (NameError)
    from /usr/local/lib/ruby/gems/1.8/gems/rubycas-client-2.3.7/lib/casclient/tickets/storage/active_record_ticket_store.rb:62
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:70:in `const_get'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:70:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:70:in `local_constants'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:68:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:68:in `local_constants'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/introspection.rb:86:in `local_constant_names'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/rails/mongoid.rb:55:in `load_model'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/rails/mongoid.rb:18:in `load_models'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/rails/mongoid.rb:17:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/rails/mongoid.rb:17:in `load_models'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/paths.rb:102:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/paths.rb:102:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/rails/mongoid.rb:16:in `load_models'
    from /usr/local/lib/ruby/gems/1.8/gems/mongoid-2.0.2/lib/mongoid/railtie.rb:86:in `_callback_before_87'
    from /usr/local/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:425:in `_run_prepare_callbacks'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:40:in `initialize'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:33:in `new'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:33:in `build'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:79:in `build'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:209:in `inject'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:79:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:79:in `inject'
    from /usr/local/lib/ruby/gems/1.8/gems/actionpack-3.0.10/lib/action_dispatch/middleware/stack.rb:79:in `build'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:162:in `build_middleware_stack'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application/finisher.rb:35
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/initializable.rb:25:in `instance_exec'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/initializable.rb:25:in `run'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/initializable.rb:50:in `run_initializers'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/initializable.rb:49:in `each'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/initializable.rb:49:in `run_initializers'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:134:in `initialize!'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `send'
    from /usr/local/lib/ruby/gems/1.8/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
    from /Users/michaelholm/Sites/breos/www/listerade-admin/config/environment.rb:5
    from /Users/michaelholm/Sites/breos/www/listerade-admin/config.ru:3
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.2.4/lib/rack/builder.rb:46:in `instance_eval'
    from /usr/local/lib/ruby/gems/1.8/gems/rack-1.2.4/lib/rack/builder.rb:46:in `initialize'
    from /Users/michaelholm/Sites/breos/www/listerade-admin/config.ru:1:in `new'
    from /Users/michaelholm/Sites/breos/www/listerade-admin/config.ru:1
  • Just reading this it seams quite similar to issue I use to run through with MongoMapper.
    rubycas-client gem V 2.3.7 is trying to load ActiveRecord (without a :: so ruby failed in the locale Namespace).
    ActiveRecord is not used, as far as I know, with any of MongoDB Rails ORM (Mongoid or MongoMapper, dunno the others).

    So it seams obvious that a new version of rubycas-client is now requiring ActiveRecord.
    To fixe this you have to check out the gem repository and to find out which version (<2.3.7) introduce this dependency. Then you can add a constraint to your GemFile like gem 'rubycas_client', '<version_without_AR'.<br />
    But, :) because life is 'fun' you can also get stuck with gem dependencies that does not allow you do that.
    Let say a gem A is required by locomotive_cms, and A require rubycas_client > version_without_AR, you will have no choise than to clone gems, eventually propose a patch through a pull request.

    You can check out this RailsCast Episode : http://railscasts.com/episodes/300-contributing-to-open-source

    Hope it could help you ;)

    I will probably meet this issue before the end of day, I'll let you know I fix it my self.
  • Damn I'm having exactly the same issue.
    I was really exited to install this fine CMS
    Tried to install it on a dedicated linux server.

    Forced the install to use rubycas-client (2.2.1) as stated in the post above but still the same error.
    As a rails noob I'm kinda clueless now.....

    Exception `LoadError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/ordered_hash.rb:2 - no such file to load -- psych
    Exception `ArgumentError' at /usr/lib/ruby/gems/1.8/gems/i18n-0.5.0/lib/i18n/core_ext/string/interpolate.rb:18 - malformed format string - %{
    Exception `LoadError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/big_decimal/conversions.rb:4 - no such file to load -- psych
    Exception `TypeError' at (eval):4 - can't modify frozen object
    Using Ext extension for JSON.
    Exception `LoadError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/string/xchar.rb:4 - no such file to load -- fast_xs
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:505 - uninitialized constant ActiveRecord
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:193 - uninitialized constant ActiveRecord
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:505 - uninitialized constant DataMapper
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:193 - uninitialized constant DataMapper
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:505 - uninitialized constant MongoMapper
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/dependencies.rb:193 - uninitialized constant MongoMapper
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `logger' not defined in ActiveSupport::LogSubscriber
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `middleware_stack' not defined in ActionController::Metal
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `middleware_stack' not defined in Class
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_view_paths' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_layout_conditions' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_layout' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_helpers' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_helper_methods' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `hidden_actions' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `default_url_options' not defined in ActionController::Base
    Exception `NameError' at /usr/lib/ruby/gems/1.8/gems/activesupport-3.0.10/lib/active_support/core_ext/module/remove_method.rb:3 - method `_renderers' not defined in ActionController::Base


    and a lot more ........... like this
  • Hey guys

    Can you let me know if you're still having issues with the installs
  • Still having this issue.
    But it doesn't mater anymore switching to something else.
    Thx anyway
  • Hi!

    I still have the issue and i'm stuck with it!
    I have another message just before the error trace :
    [DEVISE] Please note that Mongoid versions prior to 2.1 handle dirty model object attributes in such a way that the Devise `validatable` module will not apply its usual uniqueness and format validations for the email field. It is recommended that you upgrade to Mongoid 2.1+ for this and other fixes, but if for some reason you are unable to do so, you should add these validations manually.
    Exiting

    Do you have any update?
  • Seems to work with gem 'rubycas-client', '~>2.2.1'

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!