redmine_error.txt

error when "bundle exec rake redmine:plugins NAME=redmine_contacts RAILS_ENV=production" - Ramon Dina, 2019-04-29 15:03

Download (12.1 KB)

 
1
Migrating redmine_contacts (Redmine CRM plugin (Light version))...
2
== 16 CreateContacts: migrating ===============================================
3
-- create_table(:contacts)
4
   -> 0.0242s
5
-- add_index(:contacts, :author_id)
6
   -> 0.0129s
7
-- add_index(:contacts, :company)
8
rake aborted!
9
StandardError: An error has occurred, all later migrations canceled:
10

    
11
Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE  INDEX `index_contacts_on_company`  ON `contacts` (`company`)
12
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
13
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
14
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
15
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
16
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
17
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
18
/var/lib/gems/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
19
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
20
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
21
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
22
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:549:in `add_index'
23
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:665:in `block in method_missing'
24
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `block in say_with_time'
25
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `say_with_time'
26
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:654:in `method_missing'
27
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:416:in `method_missing'
28
/usr/share/redmine/plugins/redmine_contacts/db/migrate/016_create_contacts.rb:44:in `up'
29
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:571:in `up'
30
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in `exec_migration'
31
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
32
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in `block in migrate'
33
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
34
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in `migrate'
35
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in `migrate'
36
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
37
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1071:in `ddl_transaction'
38
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
39
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in `block in migrate'
40
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `each'
41
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `migrate'
42
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in `up'
43
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in `migrate'
44
/usr/share/redmine/lib/redmine/plugin.rb:481:in `migrate_plugin'
45
/usr/share/redmine/lib/redmine/plugin.rb:453:in `migrate'
46
/usr/share/redmine/lib/redmine/plugin.rb:464:in `migrate'
47
/usr/share/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
48
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
49
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
50

    
51
Caused by:
52
ActiveRecord::StatementInvalid: Mysql2::Error: Specified key was too long; max key length is 767 bytes: CREATE  INDEX `index_contacts_on_company`  ON `contacts` (`company`)
53
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
54
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
55
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
56
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
57
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
58
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
59
/var/lib/gems/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
60
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
61
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
62
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
63
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:549:in `add_index'
64
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:665:in `block in method_missing'
65
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `block in say_with_time'
66
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `say_with_time'
67
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:654:in `method_missing'
68
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:416:in `method_missing'
69
/usr/share/redmine/plugins/redmine_contacts/db/migrate/016_create_contacts.rb:44:in `up'
70
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:571:in `up'
71
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in `exec_migration'
72
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
73
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in `block in migrate'
74
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
75
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in `migrate'
76
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in `migrate'
77
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
78
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1071:in `ddl_transaction'
79
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
80
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in `block in migrate'
81
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `each'
82
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `migrate'
83
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in `up'
84
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in `migrate'
85
/usr/share/redmine/lib/redmine/plugin.rb:481:in `migrate_plugin'
86
/usr/share/redmine/lib/redmine/plugin.rb:453:in `migrate'
87
/usr/share/redmine/lib/redmine/plugin.rb:464:in `migrate'
88
/usr/share/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
89
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
90
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
91

    
92
Caused by:
93
Mysql2::Error: Specified key was too long; max key length is 767 bytes
94
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `_query'
95
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:120:in `block in query'
96
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `handle_interrupt'
97
/var/lib/gems/2.3.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:119:in `query'
98
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `block in execute'
99
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
100
/var/lib/gems/2.3.0/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
101
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
102
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:317:in `execute'
103
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/mysql2_adapter.rb:217:in `execute'
104
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:549:in `add_index'
105
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:665:in `block in method_missing'
106
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `block in say_with_time'
107
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:634:in `say_with_time'
108
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:654:in `method_missing'
109
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:416:in `method_missing'
110
/usr/share/redmine/plugins/redmine_contacts/db/migrate/016_create_contacts.rb:44:in `up'
111
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:571:in `up'
112
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:611:in `exec_migration'
113
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
114
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:591:in `block in migrate'
115
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
116
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:590:in `migrate'
117
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:768:in `migrate'
118
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1023:in `block in execute_migration_in_transaction'
119
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1071:in `ddl_transaction'
120
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:1022:in `execute_migration_in_transaction'
121
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:984:in `block in migrate'
122
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `each'
123
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:980:in `migrate'
124
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:823:in `up'
125
/var/lib/gems/2.3.0/gems/activerecord-4.2.11.1/lib/active_record/migration.rb:801:in `migrate'
126
/usr/share/redmine/lib/redmine/plugin.rb:481:in `migrate_plugin'
127
/usr/share/redmine/lib/redmine/plugin.rb:453:in `migrate'
128
/usr/share/redmine/lib/redmine/plugin.rb:464:in `migrate'
129
/usr/share/redmine/lib/tasks/redmine.rake:127:in `block (3 levels) in <top (required)>'
130
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
131
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
132
Tasks: TOP => redmine:plugins:migrate
133
(See full trace by running task with --trace)