Synology Redmine DB migration error

Added by Denes Hogya 6 months ago

Hi!

After updating the previous Redmine version on my Synology DS I get a persistent error when starting Redmine. I guess the problem is with the DB migration but I am not an expert in this field. I'm thinking about the following:

ActiveRecord::StatementInvalid: Mysql2::Error: Table 'imports' already exists: CREATE TABLE `imports` (`id` int(11) auto_increment PRIMARY KEY, `type` varchar(255), `user_id` int(11) NOT NULL, `filename` varchar(255), `settings` text, `total_items` int(11), `finished` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB

Could someone look into it and give me a hint how to fix this?

Thanks!

2017-04-26 21:20:14 stdout (See full trace by running task with --trace)
2017-04-26 21:20:14 stdout Tasks: TOP => db:migrate
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:801:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:823:in `up'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `each'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:959:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:997:in `execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:1046:in `ddl_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:998:in `block in execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:768:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:590:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:591:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:608:in `exec_migration'
2017-04-26 21:20:14 stdout /home/redmine/redmine/db/migrate/20150730122707_create_imports.rb:3:in `change'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:654:in `method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `block in say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:665:in `block in method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:474:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:222:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `block in execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `handle_interrupt'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `block in query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `_query'
2017-04-26 21:20:14 stdout Mysql2::Error: Table 'imports' already exists
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:801:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:823:in `up'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `each'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:959:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:997:in `execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:1046:in `ddl_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:998:in `block in execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:768:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:590:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:591:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:608:in `exec_migration'
2017-04-26 21:20:14 stdout /home/redmine/redmine/db/migrate/20150730122707_create_imports.rb:3:in `change'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:654:in `method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `block in say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:665:in `block in method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:474:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:222:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `block in execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `handle_interrupt'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `block in query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `_query'
2017-04-26 21:20:14 stdout ActiveRecord::StatementInvalid: Mysql2::Error: Table 'imports' already exists: CREATE TABLE `imports` (`id` int(11) auto_increment PRIMARY KEY, `type` varchar(255), `user_id` int(11) NOT NULL, `filename` varchar(255), `settings` text, `total_items` int(11), `finished` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:137:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:801:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:823:in `up'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:955:in `each'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:959:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:997:in `execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:1046:in `ddl_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:998:in `block in execute_migration_in_transaction'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:768:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:590:in `migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:591:in `block in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:592:in `block (2 levels) in migrate'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:608:in `exec_migration'
2017-04-26 21:20:14 stdout /home/redmine/redmine/db/migrate/20150730122707_create_imports.rb:3:in `change'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:654:in `method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `block in say_with_time'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:665:in `block in method_missing'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:474:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:222:in `create_table'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/mysql2_adapter.rb:231:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:309:in `block in execute'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:79:in `handle_interrupt'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `block in query'
2017-04-26 21:20:14 stdout /home/redmine/redmine/vendor/bundle/ruby/2.1.0/gems/mysql2-0.3.21/lib/mysql2/client.rb:80:in `_query'
2017-04-26 21:20:14 stdout Mysql2::Error: Table 'imports' already exists: CREATE TABLE `imports` (`id` int(11) auto_increment PRIMARY KEY, `type` varchar(255), `user_id` int(11) NOT NULL, `filename` varchar(255), `settings` text, `total_items` int(11), `finished` tinyint(1) DEFAULT 0 NOT NULL, `created_at` datetime NOT NULL, `updated_at` datetime NOT NULL) ENGINE=InnoDB
2017-04-26 21:20:14 stdout
2017-04-26 21:20:14 stdout StandardError: An error has occurred, all later migrations canceled:
2017-04-26 21:20:14 stdout rake aborted!
2017-04-26 21:20:06 stdout redmine already exists
2017-04-26 21:20:00 stdout Migrating database. Please be patient, this could take a while...
2017-04-26 21:19:59 stdout Configuring nginx::redmine...
2017-04-26 21:19:59 stdout Configuring nginx...
2017-04-26 21:19:59 stdout Configuring redmine::backups...
2017-04-26 21:19:59 stdout Configuring redmine::autologin_cookie...
2017-04-26 21:19:59 stdout Configuring redmine::sudo_mode...
2017-04-26 21:19:59 stdout Configuring redmine::max_concurrent_ajax_uploads...
2017-04-26 21:19:59 stdout SHOULD be defined if you have a load-balancing Redmine cluster.
2017-04-26 21:19:59 stdout Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
2017-04-26 21:19:59 stdout All old sessions will become invalid.
2017-04-26 21:19:59 stdout Note:
2017-04-26 21:19:59 stdout Generating a session token...
2017-04-26 21:19:59 stdout Configuring redmine::secret_token...
2017-04-26 21:19:59 stdout Configuring redmine::unicorn...
2017-04-26 21:19:59 stdout Configuring redmine::database
2017-04-26 21:19:59 stdout Configuring redmine...
2017-04-26 21:19:58 stdout Installing configuration templates...
2017-04-26 21:19:58 stdout Symlinking dotfiles...
2017-04-26 21:19:58 stdout Initializing datadir...
2017-04-26 21:19:58 stdout Initializing logdir...
2017-04-26 21:19:07 stdout redmine already exists
2017-04-26 21:18:57 stdout Migrating database. Please be patient, this could take a while...
2017-04-26 21:18:56 stdout Configuring nginx::redmine...
2017-04-26 21:18:56 stdout Configuring nginx...
2017-04-26 21:18:56 stdout Configuring redmine::backups...
2017-04-26 21:18:56 stdout Configuring redmine::autologin_cookie...
2017-04-26 21:18:56 stdout Configuring redmine::sudo_mode...
2017-04-26 21:18:56 stdout Configuring redmine::max_concurrent_ajax_uploads...
2017-04-26 21:18:55 stdout SHOULD be defined if you have a load-balancing Redmine cluster.
2017-04-26 21:18:55 stdout Please specify the REDMINE_SECRET_TOKEN parameter for persistence.
2017-04-26 21:18:55 stdout All old sessions will become invalid.
2017-04-26 21:18:55 stdout Note:
2017-04-26 21:18:55 stdout Generating a session token...
2017-04-26 21:18:55 stdout Configuring redmine::secret_token...
2017-04-26 21:18:55 stdout Configuring redmine::unicorn...
2017-04-26 21:18:55 stdout Configuring redmine::database
2017-04-26 21:18:55 stdout Configuring redmine...
2017-04-26 21:18:55 stdout Installing configuration templates...
2017-04-26 21:18:54 stdout Symlinking dotfiles...
2017-04-26 21:18:52 stdout Initializing datadir...
2017-04-26 21:18:52 stdout Initializing logdir...

Replies (1)

RE: Synology Redmine DB migration error - Added by Immanuel Wilhelmy 6 months ago

I am no expert on this, but the errorlog says the "table imports" already exists. Without any warrantee: inspect this table for important content and try to drop it before trying next migration. Be sure to think about the root cause.

(1-1/1)