Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysql2::Error: Data too long for column 'description' #67

Open
mrPsycho opened this issue Apr 27, 2016 · 0 comments
Open

Mysql2::Error: Data too long for column 'description' #67

mrPsycho opened this issue Apr 27, 2016 · 0 comments

Comments

@mrPsycho
Copy link

redmine@devcenter:~/redmine$ bundle exec rake redmine:tagging:reconfigure RAILS_ENV=production
Adding inline tags to issues
rake aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: Data too long for column 'description' at row 1: UPDATE `issues` SET `issues`.`description` = 
...
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `query'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `block in execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:252:in `exec_delete'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:114:in `update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation.rb:345:in `update_all'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/locking/optimistic.rb:95:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/dirty.rb:128:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:310:in `block in _update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_update_callbacks'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:310:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/timestamp.rb:70:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:504:in `create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:302:in `block in create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:302:in `create_or_update'
/home/redmine/redmine/app/models/issue.rb:182:in `create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:142:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:43:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:291:in `block in save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:220:in `transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:291:in `save!'
/home/redmine/redmine/plugins/redmine_tagging/lib/tasks/reconfigure.rake:24:in `block (4 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `block in find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:50:in `find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/querying.rb:9:in `find_each'
/home/redmine/redmine/plugins/redmine_tagging/lib/tasks/reconfigure.rake:9:in `block (3 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/home/redmine/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Mysql2::Error: Data too long for column 'description' at row 1
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `query'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `block in execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:305:in `execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/mysql2_adapter.rb:252:in `exec_delete'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:114:in `update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation.rb:345:in `update_all'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/locking/optimistic.rb:95:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/dirty.rb:128:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:310:in `block in _update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_update_callbacks'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:310:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/timestamp.rb:70:in `_update_record'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:504:in `create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:302:in `block in create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:117:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:505:in `call'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.5.2/lib/active_support/callbacks.rb:778:in `_run_save_callbacks'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/callbacks.rb:302:in `create_or_update'
/home/redmine/redmine/app/models/issue.rb:182:in `create_or_update'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/persistence.rb:142:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/validations.rb:43:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/attribute_methods/dirty.rb:29:in `save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:291:in `block in save!'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:351:in `block in with_transaction_returning_status'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:220:in `transaction'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:348:in `with_transaction_returning_status'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/transactions.rb:291:in `save!'
/home/redmine/redmine/plugins/redmine_tagging/lib/tasks/reconfigure.rake:24:in `block (4 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `block (2 levels) in find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:51:in `block in find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:124:in `find_in_batches'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/relation/batches.rb:50:in `find_each'
/home/redmine/.rvm/gems/ruby-2.2.1/gems/activerecord-4.2.5.2/lib/active_record/querying.rb:9:in `find_each'
/home/redmine/redmine/plugins/redmine_tagging/lib/tasks/reconfigure.rake:9:in `block (3 levels) in <top (required)>'
/home/redmine/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `eval'
/home/redmine/.rvm/gems/ruby-2.2.1/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => redmine:tagging:reconfigure
(See full trace by running task with --trace)

i believe it is not good to update current descriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant