beefproject/beef — Issue #399: Data too long for some DB fields when using MSF
Author: passbe
Created: 2011-12-10 23:08:42+00:00
State: open

Sometimes errors like this one are thrown when enabling MSF.

Data too long for column 'value' at row 1
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:114:in `execute_non_query'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:114:in `block (2 levels) in create'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:276:in `with_connection'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:113:in `block in create'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:85:in `each'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-do-adapter-1.1.0/lib/dm-do-adapter/adapter.rb:85:in `create'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/repository.rb:146:in `create'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource/state/transient.rb:61:in `create_resource'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource/state/transient.rb:25:in `commit'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:957:in `_persist'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:971:in `block in create_with_hooks'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:968:in `catch'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:968:in `create_with_hooks'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1022:in `save_self'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1007:in `block in _save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1223:in `run_once'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1006:in `_save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:406:in `save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1240:in `block in _save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1240:in `each'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1240:in `all?'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/collection.rb:1240:in `_save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/associations/one_to_many.rb:273:in `_save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/collection.rb:872:in `save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1055:in `block in save_children'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1054:in `map'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1054:in `save_children'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1007:in `block in _save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1223:in `run_once'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:1006:in `_save'
/opt/local/lib/ruby1.9/gems/1.9.1/gems/dm-core-1.1.0/lib/dm-core/resource.rb:406:in `save'
/Users/antisnatchor/WORKS/BEEF/beefnextgen/main/extensions/metasploit/dbmigration.rb:59:in `block (2 levels) in migrate_commands!'
/Users/antisnatchor/WORKS/BEEF/beefnextgen/main/extensions/metasploit/dbmigration.rb:50:in `each'
/Users/antisnatchor/WORKS/BEEF/beefnextgen/main/extensions/metasploit/dbmigration.rb:50:in `block in migrate_commands!'
Google Code Issue: http://code.google.com/p/beef/issues/detail?id=314