openshift:`<class:model>&#39 ;:未初始化的常量ActiveModel :: Observing(NameError)</class:model>

时间:2014-11-16 13:38:07

标签: ruby-on-rails ruby ruby-on-rails-4 openshift

我有Ruby 1.9.3,Rails 4.0.2和OpenShift免费帐户。

在我尝试配置电子邮件设置like so之前,一切正常:

config.action_mailer.raise_delivery_errors = true 
config.action_mailer.default_url_options = { host: 'http://todo-yourdomainhere.rhcloud.com' } 
config.action_mailer.asset_host = 'http://todo-yourdomainhere.rhcloud.com' 
config.action_mailer.delivery_method = :smtp config.action_mailer.smtp_settings = { address: 'smtp.gmail.com', port: 587, user_name: 'your_username@gmail.com', password: 'your_password', authentication: 'plain', enable_starttls_auto: true }

然后我遇到了这个错误:

Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

我试过了:

bundle install —path vendor/cache

而且:

gem install rake && bundle install

(答案来自Bundler::GemNotFound: Could not find rake-10.3.2 in any of the sources

在我推后,我得到了这个错误:

16:16icdortonway git push openshift openshift:master
Counting objects: 20, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.07 KiB | 0 bytes/s, done.
Total 12 (delta 9), reused 0 (delta 0)
remote: /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:13:in `<class:Model>': uninitialized constant ActiveModel::Observing (NameError)
remote:     from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:6:in `<module:OpenShift>'
remote:     from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:5:in `<top (required)>'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common.rb:22:in `<top (required)>'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/frontend_proxy.rb:20:in `<top (required)>'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/application_container.rb:18:in `<top (required)>'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
remote:     from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
remote:     from /usr/bin/gear:21:in `<main>'
To ssh://...@dortonway-dortonway.rhcloud.com/~/git/dortonway.git/
 ! [remote rejected] openshift -> master (pre-receive hook declined)
error: failed to push some refs to 'ssh://...@dortonway-dortonway.rhcloud.com/~/git/dortonway.git/'
16:16icdortonway

如果我尝试从OpenShift面板重启服务器,我会这样做:

    Enabling server ...

/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:13:in `<class:Model>': uninitialized constant ActiveModel::Observing (NameError)
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:6:in `<module:OpenShift>'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:5:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common.rb:22:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/frontend_proxy.rb:20:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/application_container.rb:18:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
    from /usr/lib/openshift/cartridge_sdk/ruby/sdk.rb:17:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
Enabling server ...

/opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:13:in `<class:Model>': uninitialized constant ActiveModel::Observing (NameError)
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:6:in `<module:OpenShift>'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common/models/model.rb:5:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-common-1.28.4/lib/openshift-origin-common.rb:22:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/frontend_proxy.rb:20:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:55:in `require'
    from /opt/rh/ruby193/root/usr/share/gems/gems/openshift-origin-node-1.31.11/lib/openshift-origin-node/model/application_container.rb:18:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in `rescue in require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in `require'
    from /usr/lib/openshift/cartridge_sdk/ruby/sdk.rb:17:in `<top (required)>'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
    from /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:36:in `require'
Failed to execute: 'control enable-server' for /var/lib/openshift/.../haproxy
Failed to execute: 'control enable-server' for /var/lib/openshift/.../haproxy

我尝试评论电子邮件设置,但它并没有改变任何内容。

所以我无法从OpenShift面板推送或重启服务器。

有人能说怎么解决吗? 谢谢!

0 个答案:

没有答案