Skip to content

Instantly share code, notes, and snippets.

@adelcambre
Created November 4, 2008 22:16
Show Gist options
  • Select an option

  • Save adelcambre/22232 to your computer and use it in GitHub Desktop.

Select an option

Save adelcambre/22232 to your computer and use it in GitHub Desktop.
~/ey_projs/awsm(migration) $ MERB_ENV=development bin/rake db:migrate
(in /Users/pbiegaj/ey_projs/awsm)
Loading init file from /Users/pbiegaj/ey_projs/awsm/config/init.rb
Loading /Users/pbiegaj/ey_projs/awsm/config/environments/development.rb
Loading init file from /Users/pbiegaj/ey_projs/awsm/config/init.rb
/Users/pbiegaj/ey_projs/awsm/config/init.rb:30: warning: already initialized constant SSH_KEY_FILE
Loading /Users/pbiegaj/ey_projs/awsm/config/environments/development.rb
~ Connecting to database...
~ Loaded slice 'MerbAuthSlicePassword' ...
~ Parent pid: 1412
~ Compiling routes...
~ Skipped adding slice ChefSlice to router...
~ Activating slice 'MerbAuthSlicePassword' ...
~ SELECT COUNT(*) FROM `information_schema`.`tables` WHERE `table_type` = 'BASE TABLE' AND `table_schema` = 'awsm_development' AND `table_name` = 'migration_info'
~ default: begin
~ XA START '1850bbada5b6d574406abd8f481389f6ef723fd113434b816d2352e8809eaa62'
== Performing Up Migration #1: create_people_table
CREATE TABLE `people` (`id` serial PRIMARY KEY, `name` VARCHAR(50), `age` INT(11))
~ CREATE TABLE `people` (`id` serial PRIMARY KEY, `name` VARCHAR(50), `age` INT(11))
~ XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state (mysql_error_code=0001)
~ #<DataObjects::Mysql::Connection:0x3454658 @concrete_command=DataObjects::Mysql::Command, @__allocated_in_pool=Tue Nov 04 14:12:09 -0800 2008, @__pool=#<Extlib::Pooling::Pool<DataObjects::Mysql::Connection> available=0 used=1 size=8>, @uri=#<struct DataObjects::URI scheme="mysql", user=nil, password=nil, host=nil, port=nil, specified_port=nil, path="awsm_development", query="user=root&hostname=localhost", fragment=nil>, @connection=#<Object:0x3453f50>, @using_socket=false>
~ XAER_RMFAIL: The command cannot be executed when global transaction is in the ACTIVE state (mysql_error_code=0001)
~ default: rollback
~ default: rollback
~ #<DataMapper::Transaction:0x34536e0>#each_adapter(:rollback_adapter_if_begin, [:rollback_and_close_adapter_if_begin, :close_adapter_if_none]) failed with #<MysqlError: This connection has already been closed.>: /Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:10:in `execute_non_query'
/Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:10:in `finalize_transaction'
/Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:24:in `rollback'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:211:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:211:in `do_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:249:in `rollback_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:150:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:150:in `method_missing'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:186:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:186:in `each_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:185:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:185:in `each_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:114:in `rollback'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:95:in `commit'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration.rb:56:in `perform_up'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:60:in `migrate_up!'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:58:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:58:in `migrate_up!'
/Users/pbiegaj/ey_projs/awsm/gems/gems/merb_datamapper-0.9.11/lib/merb_datamapper/merbtasks.rb:38
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/bin/rake:31
bin/rake:32:in `load'
bin/rake:32 - and when sending rollback_and_close_adapter_if_begin to #<DataMapper::Adapters::MysqlAdapter:0x33e8e44> we failed again with #<MysqlError: This connection has already been closed.>: /Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:10:in `execute_non_query'
/Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:10:in `finalize_transaction'
/Users/pbiegaj/ey_projs/awsm/gems/gems/do_mysql-0.9.6/lib/do_mysql/transaction.rb:24:in `rollback'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:211:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:211:in `do_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:249:in `rollback_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:262:in `rollback_and_close_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:150:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:150:in `method_missing'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:192:in `send'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:192:in `each_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:190:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:190:in `each_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:189:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:189:in `each_adapter'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:114:in `rollback'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-core-0.9.6/lib/dm-core/transaction.rb:95:in `commit'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration.rb:56:in `perform_up'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:60:in `migrate_up!'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:58:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/dm-migrations-0.9.6/lib/migration_runner.rb:58:in `migrate_up!'
/Users/pbiegaj/ey_projs/awsm/gems/gems/merb_datamapper-0.9.11/lib/merb_datamapper/merbtasks.rb:38
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:617:in `call'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:617:in `execute'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:612:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:588:in `invoke_prerequisites'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:585:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:585:in `invoke_prerequisites'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:577:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
/Users/pbiegaj/ey_projs/awsm/gems/gems/rake-0.8.3/bin/rake:31
bin/rake:32:in `load'
bin/rake:32
rake aborted!
This connection has already been closed.
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment