errbit/errbit — Issue #157: [production][deploys#create] BSON::InvalidDocument: ActiveSupport::TimeWithZone is not currently supported; use a UTC Time ins...
Author: shukydvir
Created: 2012-02-14 20:15:42+00:00
State: open

[See this exception on Errbit](http://errbit.quick-tips.net:80/apps/8e693aca848bc977dd8d4a6b2000ff69/errs/4f39997b1078ad0007000003 "See this exception on Errbit")

# BSON::InvalidDocument: ActiveSupport::TimeWithZone is not currently supported; use a UTC Time instance instead. #
## Summary ##

### URL ###
[http://quick-errbit.herokuapp.com/deploys.txt](http://quick-errbit.herokuapp.com/deploys.txt)"

### Where ###
deploys#create
### Occured ###
Feb 13 11:15pm
### Similar ###
1
## Params ##
```
{
"action" => "create",
"api_key" => "21a75e0f327cc3be757ace7caae33976",
"controller" => "deploys",
"deploy" => {
"local_username" => "shuky",
"rails_env" => "production",
"scm_repository" => "git@bitbucket.org:quicktips/privatese.git",
"scm_revision" => "f4575cd779beae8d430b5165fbf4ec31254ba1cd"
}
}
```
## Session ##
```
{
}
```
## Backtrace ##
```
24: /vendor/bundle/ruby/1.9.1/gems/bson-1.3.1/lib/bson/bson_c.rb -> **serialize**
24: /vendor/bundle/ruby/1.9.1/gems/bson-1.3.1/lib/bson/bson_c.rb -> **serialize**
391: /vendor/bundle/ruby/1.9.1/gems/mongo-1.3.1/lib/mongo/collection.rb -> **update**
25: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/collections/master.rb -> **block in update**
29: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/collections/retry.rb -> **retry_on_connection_failure**
24: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/collections/master.rb -> **update**
149: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/collection.rb -> **update**
119: [PROJECT_ROOT]/models/problem.rb -> **cache_app_attributes**
215: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/contexts/mongo.rb -> **block in iterate**
49: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/cursor.rb -> **block in each**
249: /vendor/bundle/ruby/1.9.1/gems/mongo-1.3.1/lib/mongo/cursor.rb -> **each**
48: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/cursor.rb -> **each**
215: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/contexts/mongo.rb -> **iterate**
143: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/criteria.rb -> **block in each**
143: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/criteria.rb -> **tap**
143: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/criteria.rb -> **each**
44: [PROJECT_ROOT]/models/deploy.rb -> **store_cached_attributes_on_problems**
427: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **_run_create_callbacks**
94: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **run_callbacks**
25: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb -> **block (2 levels) in prepare**
421: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **_run_save_callbacks**
94: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **run_callbacks**
24: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb -> **block in prepare**
22: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb -> **tap**
22: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence/insertion.rb -> **prepare**
30: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence/operations/embedded/insert.rb -> **persist**
44: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence.rb -> **insert**
149: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence.rb -> **upsert**
70: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/persistence.rb -> **save!**
110: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/relations/embedded/many.rb -> **block in create!**
110: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/relations/embedded/many.rb -> **tap**
110: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid/relations/embedded/many.rb -> **create!**
10: [PROJECT_ROOT]/controllers/deploys_controller.rb -> **create**
4: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb -> **send_action**
150: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb -> **process_action**
11: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb -> **process_action**
18: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb -> **block in process_action**
436: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **_run__575037420996244654__process_action__973533490708109403__callbacks**
410: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **_run_process_action_callbacks**
94: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **run_callbacks**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb -> **process_action**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rescue.rb -> **process_action**
30: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb -> **block in process_action**
52: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb -> **block in instrument**
21: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications/instrumenter.rb -> **instrument**
52: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb -> **instrument**
29: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb -> **process_action**
34: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb -> **block in process_action**
255: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb -> **block in perform_action_with_newrelic_trace**
242: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/method_tracer.rb -> **trace_execution_scoped**
250: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb -> **perform_action_with_newrelic_trace**
33: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb -> **process_action**
119: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb -> **process**
41: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb -> **process**
138: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb -> **dispatch**
14: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rack_delegation.rb -> **dispatch**
178: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb -> **block in action**
62: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb -> **call**
62: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb -> **dispatch**
27: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb -> **call**
148: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb -> **block in call**
93: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **block in recognize**
68: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **optimized_each**
92: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb -> **recognize**
139: /vendor/bundle/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb -> **call**
493: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb -> **call**
23: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/rack/browser_monitoring.rb -> **call**
33: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/rack/mongoid/middleware/identity_map.rb -> **block in call**
130: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/mongoid.rb -> **unit_of_work**
33: /vendor/bundle/ruby/1.9.1/gems/mongoid-2.2.4/lib/rack/mongoid/middleware/identity_map.rb -> **call**
35: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **block in call**
34: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **catch**
34: /vendor/bundle/ruby/1.9.1/gems/warden-1.0.5/lib/warden/manager.rb -> **call**
17: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb -> **call**
14: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb -> **call**
24: /vendor/bundle/ruby/1.9.1/gems/rack-1.2.4/lib/rack/methodoverride.rb -> **call**
21: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb -> **call**
182: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb -> **call**
149: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb -> **call**
302: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb -> **call**
46: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb -> **block in call**
416: /vendor/bundle/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb -> **_run_call_callbacks**
44: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb -> **call**
106: /vendor/bundle/ruby/1.9.1/gems/rack-1.2.4/lib/rack/sendfile.rb -> **call**
48: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb -> **call**
47: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb -> **call**
13: /vendor/bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails/rack/logger.rb -> **call**
17: /vendor/bundle/ruby/1.9.1/gems/rack-1.2.4/lib/rack/runtime.rb -> **call**
11: /vendor/bundle/ruby/1.9.1/gems/rack-1.2.4/lib/rack/lock.rb -> **block in call**
: [unknown source] -> ****
11: /vendor/bundle/ruby/1.9.1/gems/rack-1.2.4/lib/rack/lock.rb -> **call**
30: /vendor/bundle/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb -> **call**
168: /vendor/bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails[PROJECT_ROOT]lication.rb -> **call**
77: /vendor/bundle/ruby/1.9.1/gems/railties-3.0.10/lib/rails[PROJECT_ROOT]lication.rb -> **method_missing**
528: /vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **process_client**
600: /vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **worker_loop**
17: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb -> **call**
17: /vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.3.1/lib/new_relic/agent/instrumentation/unicorn_instrumentation.rb -> **block (4 levels) in **
485: /vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **spawn_missing_workers**
135: /vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb -> **start**
121: /vendor/bundle/ruby/1.9.1/gems/unicorn-4.1.1/bin/unicorn -> ****
19: /vendor/bundle/ruby/1.9.1/bin/unicorn -> **load**
19: /vendor/bundle/ruby/1.9.1/bin/unicorn -> **

**

```
## Environment ##

REMOTE_ADDR:
10.12.238.225

REQUEST_METHOD:
POST

REQUEST_PATH:
/deploys.txt

PATH_INFO:
/deploys.txt

REQUEST_URI:
/deploys.txt

SERVER_PROTOCOL:
HTTP/1.1

HTTP_VERSION:
HTTP/1.1

HTTP_X_FORWARDED_PROTO:
http

HTTP_X_FORWARDED_PORT:
80

HTTP_X_FORWARDED_FOR:
212.64.153.133

HTTP_USER_AGENT:
Ruby

HTTP_HOST:
quick-errbit.herokuapp.com

CONTENT_TYPE:
application/x-www-form-urlencoded

CONTENT_LENGTH:
247

HTTP_CONNECTION:
keep-alive

HTTP_ACCEPT:
*/*

HTTP_X_HEROKU_QUEUE_WAIT_TIME:
10206

HTTP_X_HEROKU_QUEUE_DEPTH:
0

HTTP_X_HEROKU_DYNOS_IN_USE:
1

HTTP_X_REQUEST_START:
1329174889387

rack_url_scheme:
http

SERVER_NAME:
quick-errbit.herokuapp.com

SERVER_PORT:
80

key:
action_dispatch.request.query_parameters

rack_input:
#

rack_errors:
#

rack_multiprocess:
true

rack_multithread:
false

rack_run_once:
false

rack_version:
["1", "1"]

SERVER_SOFTWARE:
Unicorn 4.1.1

rack_logger:
#

action_dispatch_parameter_filter:
["password"]

action_dispatch_secret_token:
6b74778101638fa9c156b3928c9492fb2481ab842538bea838d21f9c9993f649f5806449584266d413d0b2f1104162b3066a86512ed71ededd627cd41f939614

action_dispatch_show_exceptions:
true

action_dispatch_remote_ip:
212.64.153.133

rack_session_options:
{"path"=>"/", "key"=>"id", "secure"=>"false", "httponly"=>"true"}

action_dispatch_request_content_type:
application/x-www-form-urlencoded

rack_request_form_input:
#

rack_request_form_hash:
{"api_key"=>"21a75e0f327cc3be757ace7caae33976", "deploy"=>{"rails_env"=>"production", "scm_revision"=>"f4575cd779beae8d430b5165fbf4ec31254ba1cd", "scm_repository"=>"git@bitbucket.org:quicktips/privatese.git", "local_username"=>"shuky"}}

warden:
Warden::Proxy:51970280 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :token_authenticatable, :database_authenticatable]}, :intercept_401=>false, :failure_app=>Devise::FailureApp}

action_dispatch_request_path_parameters:
{"controller"=>"deploys", "action"=>"create"}

action_controller_instance:
#

action_dispatch_request_request_parameters:
{"api_key"=>"21a75e0f327cc3be757ace7caae33976", "deploy"=>{"rails_env"=>"production", "scm_revision"=>"f4575cd779beae8d430b5165fbf4ec31254ba1cd", "scm_repository"=>"git@bitbucket.org:quicktips/privatese.git", "local_username"=>"shuky"}}

action_dispatch_request_parameters:
{"api_key"=>"21a75e0f327cc3be757ace7caae33976", "deploy"=>{"rails_env"=>"production", "scm_revision"=>"f4575cd779beae8d430b5165fbf4ec31254ba1cd", "scm_repository"=>"git@bitbucket.org:quicktips/privatese.git", "local_username"=>"shuky"}, "controller"=>"deploys", "action"=>"create"}

action_dispatch_request_accepts:
["*/*"]

action_dispatch_request_formats:
["*/*"]