Data not saving in 1.8.2 and upgrading from 1.8.2 to 1.9.0

Support Ticket

+status
answered
 

Hi Ethan, 

Thanks for addressing my previous ticket. It was indeed a problem with memcache server and resolving that problem fixed the issue. (I am unable to comment on the previous ticket as my requested account is not yet created here on wagn yet)

 

As per your suggestions, i am now also trying to upgrade to the latest version i.e. 1.9.0 . However, before doing that, if i try to edit any previous wiki (a card) it gives me an internal server error. It seems like that "created_by" field in "revisions" is getting a null value because of which mysql validation is failing. What can be the reason of this? 

 

Here is the stack trace from the logs:-

 

Model exception save_without_permissions:Mysql::Error: Column 'created_by' cannot be null: INSERT INTO `revisions` (`card_id`, `content`, `created_at`, `created_by`) VALUES (?, ?, ?, ?) home
exception = Wagn::Oops: error saving home: Mysql::Error: Column 'created_by' cannot be null: INSERT INTO `revisions` (`card_id`, `content`, `created_at`, `created_by`) VALUES (?, ?, ?, ?), /usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/mysql_adapter.rb:368:in `execute'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/mysql_adapter.rb:368:in `exec_stmt'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `log'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/mysql_adapter.rb:357:in `exec_stmt'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/mysql_adapter.rb:292:in `exec_query'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/database_statements.rb:63:in `exec_insert'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/database_statements.rb:90:in `insert'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `insert'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/relation.rb:66:in `insert'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:367:in `create'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/timestamp.rb:57:in `create'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/callbacks.rb:268:in `create'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:403:in `_run__1740787712__create__4__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:385:in `_run_create_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/callbacks.rb:268:in `create'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:348:in `create_or_update'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:414:in `_run__1740787712__save__4__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:84:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/validations.rb:50:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:241:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:295:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:208:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:241:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:240:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:45:in `create'
/home/rails/wagnwiki2/lib/wagn/model/tracked_attributes.rb:106:in `set_content'
/home/rails/wagnwiki2/lib/wagn/model/tracked_attributes.rb:8:in `send'
/home/rails/wagnwiki2/lib/wagn/model/tracked_attributes.rb:8:in `set_tracked_attributes'
/home/rails/wagnwiki2/lib/wagn/model/attribute_tracking.rb:22:in `each_pair'
/home/rails/wagnwiki2/lib/wagn/model/attribute_tracking.rb:22:in `each_pair'
/home/rails/wagnwiki2/lib/wagn/model/tracked_attributes.rb:6:in `set_tracked_attributes'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:473:in `_run__2027912578__save__4__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:84:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/validations.rb:50:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/attribute_methods/dirty.rb:22:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:241:in `save_without_trash'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:295:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:208:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:241:in `save_without_trash'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:252:in `rollback_active_record_state!'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:240:in `save_without_trash'
/home/rails/wagnwiki2/app/models/card.rb:186:in `save_without_permissions'
/home/rails/wagnwiki2/app/models/card.rb:205:in `send'
/home/rails/wagnwiki2/app/models/card.rb:205:in `run_checked_save'
/home/rails/wagnwiki2/app/models/card.rb:192:in `save'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:217:in `update_attributes'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:295:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:208:in `transaction'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/persistence.rb:215:in `update_attributes'
/home/rails/wagnwiki2/app/models/card.rb:124:in `update_attributes'
/home/rails/wagnwiki2/app/controllers/card_controller.rb:79:in `update'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/abstract_controller/base.rb:167:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/rendering.rb:10:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/abstract_controller/callbacks.rb:18:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:458:in `_run__574351748__process_action__230267631__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/abstract_controller/callbacks.rb:17:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/rescue.rb:29:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/notifications.rb:123:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/notifications.rb:123:in `instrument'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/abstract_controller/base.rb:121:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/abstract_controller/rendering.rb:45:in `process'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal.rb:203:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_controller/metal.rb:246:in `action'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/routing/route_set.rb:73:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/routing/route_set.rb:36:in `call'
/usr/lib/ruby/gems/1.8/gems/journey-1.0.4/lib/journey/router.rb:68:in `call'
/usr/lib/ruby/gems/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/usr/lib/ruby/gems/1.8/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/routing/route_set.rb:600:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/etag.rb:23:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/conditionalget.rb:35:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/head.rb:14:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/flash.rb:242:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in `context'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/cookies.rb:338:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/query_cache.rb:64:in `call'
/usr/lib/ruby/gems/1.8/gems/activerecord-3.2.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:473:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/callbacks.rb:28:in `call'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `_run__161086601__call__4__callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `send'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/rack/logger.rb:26:in `call_app'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/rack/logger.rb:16:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/runtime.rb:17:in `call'
/usr/lib/ruby/gems/1.8/gems/activesupport-3.2.7/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/usr/lib/ruby/gems/1.8/gems/rack-1.4.1/lib/rack/lock.rb:15:in `call'
/usr/lib/ruby/gems/1.8/gems/actionpack-3.2.7/lib/action_dispatch/middleware/static.rb:62:in `call'
/usr/lib/ruby/gems/1.8/gems/airbrake-3.1.2/lib/airbrake/rack.rb:42:in `call'
/usr/lib/ruby/gems/1.8/gems/airbrake-3.1.2/lib/airbrake/user_informer.rb:12:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/engine.rb:479:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/application.rb:220:in `call'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/railtie/configurable.rb:30:in `send'
/usr/lib/ruby/gems/1.8/gems/railties-3.2.7/lib/rails/railtie/configurable.rb:30:in `method_missing'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:205:in `start_request_handler'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:170:in `send'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:170:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:165:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/rack/application_spawner.rb:128:in `start'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rack_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rack_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/lib/ruby/gems/1.8/gems/passenger-3.0.9/helper-scripts/passenger-spawn-server:99

 

What can be the reason of this?

 

 

Moreover as per your suggestion, whenever i try to upgrade to wiki 1.9.0 and try to run the migrations, they get failed at 

the following migration with these error

==  CodenameTable: migrating ==================================================
-- remove_index("cards", {:name=>"card_type_index"})
   -> 0.0941s
-- change_column("cards", "typecode", :string, {:null=>true})
   -> 0.1947s
-- change_column("cards", "type_id", :integer, {:null=>false})
   -> 0.1563s
-- add_index("cards", ["type_id"], {:name=>"card_type_index"})
   -> 0.1489s
true
rake aborted!
An error has occurred, all later migrations canceled:
 
for card *double click: No read setting card for *double click
/www/wagnwiki/lib/wagn/model/permissions.rb:75:in `permission_rule_card'
/www/wagnwiki/lib/wagn/model/permissions.rb:183:in `set_read_rule'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:440:in `_run__827338086__save__4__callbacks'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `send'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `send'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/callbacks.rb:264:in `create_or_update'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/persistence.rb:104:in `save!'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/validations.rb:56:in `save!'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `save!'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/transactions.rb:295:in `with_transaction_returning_status'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/transactions.rb:208:in `transaction'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/transactions.rb:293:in `with_transaction_returning_status'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/transactions.rb:246:in `save!'
/www/wagnwiki/app/models/card.rb:224:in `save!'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/validations.rb:41:in `create!'
/www/wagnwiki/db/migrate/20120327090000_codename_table.rb:140:in `add_codename'
/www/wagnwiki/db/migrate/20120327090000_codename_table.rb:70:in `up'
/www/wagnwiki/db/migrate/20120327090000_codename_table.rb:69:in `each'
/www/wagnwiki/db/migrate/20120327090000_codename_table.rb:69:in `up'
/www/wagnwiki/app/models/session.rb:65:in `as_bot'
/www/wagnwiki/db/migrate/20120327090000_codename_table.rb:68:in `up'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:370:in `up'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `send'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `migrate'
/Users/Ali/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/benchmark.rb:293:in `measure'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:410:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:123:in `with_connection'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:389:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:528:in `__send__'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:528:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:720:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:777:in `call'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:777:in `ddl_transaction'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:719:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `each'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:700:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:570:in `up'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/migration.rb:551:in `migrate'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:153
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/Ali/.rvm/rubies/ruby-1.8.7-p371/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/gems/rake-0.9.2.2/bin/rake:33
/Users/Ali/.rvm/gems/ruby-1.8.7-p371/bin/rake:19:in `load'

/Users/Ali/.rvm/gems/ruby-1.8.7-p371/bin/rake:19


Quick response to both of these issues will be highly appreciated!

Best Regards,
Ali

 

Also, please let me know if any other information is required?


I'm a little confused about the 1.8 error. What mysql adapter are you using? If your database.yml file has "mysql" and not "mysql2" I would certainly change that. Hmmm, now that I think about it, that version still depended upon the userstamp plugin in vendor/plugins; that would have been the piece that set the value created_by. Is that plugin gone? There are no plugins used in 1.9.

 

As for the 1.9 migration error, I had not seen that before, but someone else (Pieter Vijfvinkel) actually mentioned it this morning. It's going to be a little tricky to debug this without access to a database where this is happening, but perhaps you'd be willing to add this debug statement to alter lines 138-140 of db/migrate/20120327090000_codename_table.rb to read as follows:

 

puts Rails.logger.info( ":read card = #{Card[:read].name}, :all card = #{Card[:all].name}, *all+*read = #{Card['*all+*read'].content}" )

puts Rails.logger.warn( "adding card for codename #{name}" )

card = if name=='*double_click'

 

... and then try running the migration again?

  --Ethan McCutchen.....2012-11-01 18:15:00 +0000


also, please let me know what os / ruby version you're using.

  --Ethan McCutchen.....2012-11-01 18:15:24 +0000


you could also try adding Wagn::Cache.reset_global in that same spot.

  --Ethan McCutchen.....2012-11-02 02:02:02 +0000


Please pull the latest code from github. Bugs were found and fixed in ruby 1.8.7.

  --Ethan McCutchen.....2012-11-08 17:39:59 +0000


Thanks for your help on this. I've been able to upgrade to wagn 1.9.1 now without running into any issues.

  --Ali ibrahim.....2012-11-14 03:01:22 +0000