After following the usual upgrade procedure to upgrade from 5.6.1 to 6.0, the SonarQube server doesn't start:
ActiveRecord::JDBCError: Table 'projects' already exists
CREATE TABLE `projects` (
`id` int(11) auto_increment PRIMARY KEY,
`name` varchar(256),
`description` varchar(2000),
`enabled` tinyint(1) DEFAULT 1 NOT NULL,
`scope` varchar(3),
`qualifier` varchar(10),
`kee` varchar(400),
`root_id` integer,
`language` varchar(20),
`copy_resource_id` integer,
`long_name` varchar(256),
`person_id` integer,
`created_at` datetime
) ENGINE=InnoDB CHARACTER SET utf8 COLLATE utf8_bin
This error happens when:
- Starting the 6.0 just after deploying the new distribution and configuring it according to the upgrade procedure
- It is configured to connect to the existing 5.6.1 database (same location, credentials, etc..) running on MySQL 5.7
- At that stage, I didn't run any db upgrade
The same error occurs if I start again the sonarqube server