0

将我的 Rails 应用程序部署到 Heroku 并进行所有迁移时,我可以毫无问题地创建新管理员,但是当我去创建用户时,我输入所有信息,单击创建并获取

“我们很抱歉,但有些不对劲。”

下面的日志清单显示我收到 500 内部服务器错误,我不知道为什么,考虑到它最近工作,突然它停止了,现在我没有做任何事情使它正常工作。

任何帮助都会很棒。

下面是我的heroku日志,它靠近发生错误的底部

quel-3.20.0/lib/sequel/core.rb:72:in `block in check_requiring_thread'
        from <internal:prelude>:10:in `synchronize'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:69:in `check_requiring_thread'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:249:in `tsk_require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/database/connecting.rb:54:in `connect'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:119:in `connect'
        from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/schem
a.rb:17:in `dump_table'
        from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/bin/schema:32:
in `<main>'
Schema:        100% |==========================================| Time: 00:00:07
C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/rubygems/custom
_require.rb:36:in `require': LoadError: cannot load such file -- sqlite3 (Sequel:
:AdapterNotFound)
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/ru
bygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/adapters/sqlite.rb:1:in `<top (required)>'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/ru
bygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/ru
bygems/custom_require.rb:36:in `require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:249:in `block in tsk_require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:72:in `block in check_requiring_thread'
        from <internal:prelude>:10:in `synchronize'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:69:in `check_requiring_thread'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:249:in `tsk_require'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/database/connecting.rb:25:in `adapter_class'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/database/connecting.rb:54:in `connect'
        from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/se
quel-3.20.0/lib/sequel/core.rb:119:in `connect'
        from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/schem
a.rb:39:in `indexes_individual'
        from C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/bin/schema:36:
in `<main>'
 !    Heroku client internal error.
 !    Search for help at: https://help.heroku.com
 !    Or report a bug at: https://github.com/heroku/heroku/issues/new

    Error:       unexpected nil (OkJson::ParserError)
    Backtrace:   C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/vendor
/okjson.rb:82:in `valparse'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/vendor
/okjson.rb:64:in `textparse'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/vendor
/okjson.rb:43:in `decode'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/o
peration.rb:419:in `push_indexes'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/o
peration.rb:408:in `block in run'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/o
peration.rb:203:in `call'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/o
peration.rb:203:in `catch_errors'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/o
peration.rb:405:in `run'
                 C:/Program Files (x86)/Heroku/vendor/gems/taps-0.3.23/lib/taps/c
li.rb:171:in `clientxfer'
                 C:/Program Files (x86)/Heroku/lib/heroku/command/db.rb:192:in `t
aps_client'
                 C:/Program Files (x86)/Heroku/lib/heroku/command/db.rb:30:in `pu
sh'
                 C:/Program Files (x86)/Heroku/lib/heroku/command.rb:206:in `run'

                 C:/Program Files (x86)/Heroku/lib/heroku/cli.rb:28:in `start'
                 C:/Program Files (x86)/Heroku/bin/heroku:29:in `<main>'

    Command:     heroku db:push
    Version:     heroku/toolbelt/2.35.0 (i386-mingw32) ruby/1.9.3


C:\Users\Kibo\rubyProj\group9-backend>heroku logs
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/validations.rb:50:in `save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/persistence.rb:84:in `save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/attribute_methods/dirty.rb:22:in `save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:259:in `block (2 levels) in save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:313:in `block in with_transaction_retu
rning_status'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:19
2:in `transaction'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
2013-03-23T21:09:57+00:00 heroku[router]: at=info method=POST path=/admin/users h
ost=radiant-lake-1769.herokuapp.com fwd="174.91.15.111" dyno=web.1 queue=0 wait=2
ms connect=11ms service=3134ms status=500 bytes=643
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:311:in `with_transaction_returning_sta
tus'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:259:in `block in save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/tran
sactions.rb:270:in `rollback_active_record_state!'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/transactions.rb:258:in `save'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/resource_controller/callbacks.rb:28:in `block in save_res
ource'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/resource_controller/callbacks.rb:27:in `save_resource'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/resource_controller/callbacks.rb:22:in `block in create_r
esource'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/callbacks.rb:78:in `run_save_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/callbacks.rb:78:in `run_create_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/resource_controller/callbacks.rb:21:in `create_resource'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/inherited_r
esources-1.3.1/lib/inherited_resources/actions.rb:33:in `create'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activeadmin
-0.5.1/lib/active_admin/resource_controller/actions.rb:48:in `create'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/abstract_controller/base.rb:167:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/rendering.rb:10:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:447:in `_run__1109873420186423599__proc
ess_action__1269607343105267632__callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/abstract_controller/callbacks.rb:17:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/rescue.rb:29:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/instrumentation.rb:30:in `block in process_act
ion'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/notifications.rb:123:in `block in instrument'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/notifications.rb:123:in `instrument'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/abstract_controller/base.rb:121:in `process'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/abstract_controller/rendering.rb:45:in `process'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal.rb:203:in `dispatch'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_controller/metal.rb:246:in `block in action'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/routing/route_set.rb:36:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/journey-1.0
.4/lib/journey/router.rb:68:in `block in call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/journey-1.0
.4/lib/journey/router.rb:56:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/routing/route_set.rb:601:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/warden-1.2.
1/lib/warden/manager.rb:35:in `block in call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/journey-1.0
.4/lib/journey/router.rb:56:in `each'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/warden-1.2.
1/lib/warden/manager.rb:34:in `catch'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/warden-1.2.
1/lib/warden/manager.rb:34:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/etag.rb:23:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/conditionalget.rb:35:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/head.rb:14:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/flash.rb:242:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/session/abstract/id.rb:210:in `context'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/query_cache.rb:64:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/session/abstract/id.rb:205:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/cookies.rb:341:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activerecor
d-3.2.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in
 `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:405:in `_run__381718374095792030__call_
_4177206034446482028__callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/rack/logger.rb:16:in `block in call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/methodoverride.rb:21:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/rack/logger.rb:32:in `call_app'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/actionpack-
3.2.12/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/activesuppo
rt-3.2.12/lib/active_support/tagged_logging.rb:22:in `tagged'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/rack/logger.rb:16:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache-
1.2/lib/rack/cache/context.rb:51:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/lock.rb:15:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/application.rb:223:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache-
1.2/lib/rack/cache/context.rb:136:in `forward'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/handler/webrick.rb:59:in `service'
2013-03-23T21:09:57+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/server.
rb:183:in `block in start_thread'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache-
1.2/lib/rack/cache/context.rb:155:in `invalidate'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/runtime.rb:17:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache-
1.2/lib/rack/cache/context.rb:143:in `pass'
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-cache-
1.2/lib/rack/cache/context.rb:71:in `call!'
2013-03-23T21:09:57+00:00 app[web.1]:
2013-03-23T21:09:57+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/httpser
ver.rb:111:in `service'
2013-03-23T21:09:57+00:00 app[web.1]: Processing by Admin::UsersController#create
 as HTML
2013-03-23T21:09:57+00:00 app[web.1]:   Parameters: {"utf8"=>"???", "authenticity
_token"=>"8idZkNz66cMpb85HVIgVQhtwGj8fZnHphVE2fBRCjXU=", "user"=>{"name"=>"Bojan"
, "email"=>"bdjordje@ryerson.ca", "password"=>"[FILTERED]", "password_confirmatio
n"=>"[FILTERED]"}, "commit"=>"Create User"}
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/engine.rb:479:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:   Rendered vendor/bundle/ruby/1.9.1/gems/de
vise-2.2.3/app/views/devise/mailer/confirmation_instructions.html.erb (0.4ms)
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/
lib/rack/content_length.rb:14:in `call'
2013-03-23T21:09:57+00:00 app[web.1]: Completed 500 Internal Server Error in 3119
ms
2013-03-23T21:09:57+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/railties-3.
2.12/lib/rails/rack/log_tailer.rb:17:in `call'
2013-03-23T21:09:57+00:00 app[web.1]:
2013-03-23T21:09:57+00:00 app[web.1]:   /usr/local/lib/ruby/1.9.1/webrick/httpser
ver.rb:70:in `run'

C:\Users\Kibo\rubyProj\group9-backend>
4

3 回答 3

2
_require.rb:36:inrequire': LoadError: cannot load such file -- sqlite3 (Sequel: :AdapterNotFound) from C:/Program Files (x86)/Heroku/ruby-1.9.2/lib/ruby/site_ruby/1.9.1/ru 

您是否将 gem 文件更改为

gem 'pg'

?

于 2013-03-23T23:34:33.023 回答
0
 Command:     heroku db:push

不要使用db:pushdb:pull。用于pgbackups导入/导出数据:https ://devcenter.heroku.com/articles/heroku-postgres-import-export

于 2013-03-25T20:26:19.043 回答
0

弄清楚问题出在哪里。我必须在创建表的管理文件夹和定义属性的模型以及迁移文件中注释掉 user.rb 中的所有可确认属性,因为它试图在创建。一旦我这样做了,一切都很完美。

于 2013-03-27T04:01:12.050 回答