### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SONAR.SYS_C0056700) violated
### The error may involve org.sonar.db.component.ResourceIndexMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into resource_index (kee, position, name_size, resource_id, root_project_id, qualifier) values (?, ?, ?, ?, ?, ?)
### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SONAR.SYS_C0056700) violated
--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/50747721-4fbc-4ec9-baa1-10fb89d6e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Isabelle,When you say that you "can't create any new project", does that mean that the error is raised whatever the project key or name ? Did you try multiple values ?And could you also give me information about the Oracle constraint SONAR.SYS_C0056700 ?Thanks
On Wed, 31 Aug 2016 at 14:50 Isabelle Guimiot <isabelle...@gmail.com> wrote:
Hi,--I recently updated our 9Gb sonar database (oracle 11) from v 5.1 to v 5.6.1, and now I can't create any new project, I always get this error :### Error updating database. Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SONAR.SYS_C0056700) violated
### The error may involve org.sonar.db.component.ResourceIndexMapper.insert-Inline
### The error occurred while setting parameters
### SQL: insert into resource_index (kee, position, name_size, resource_id, root_project_id, qualifier) values (?, ?, ?, ?, ?, ?)
### Cause: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (SONAR.SYS_C0056700) violatedIt happens at the end of the audit, while trying to insert the data, and it also happens when I try to manually create the project through the GUI. I think the database is corrupted...I already had this error a few month ago on a test DB that was almost empty, so I destroyed the DB and created a new one and everything was OK, but this time I'd like to keep the data : restoring from the backup we made prior to migration is possible but not easy... Is there a way to repair the DB ?Thanks !Isabelle
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/50747721-4fbc-4ec9-baa1-10fb89d6e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
SELECT resource_index_seq.nextval FROM dual;
SELECT max(id) FROM resource_index;
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/50747721-4fbc-4ec9-baa1-10fb89d6e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/50747721-4fbc-4ec9-baa1-10fb89d6e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
It's a DB used for the validation environment, we asked the DBA to take the data from production and to import them to the validation DB. I will contact the DBA and see if he missed anything during the export...Thank you !
OK, I finally had an explanation : the export was fully made by the DBA, but the prod server wasn't stopped during the export, and some audits were running during the export, making the sequences inconsistent in the DB dump...Good to know for the next time, we'll stop the DB before we run a dump ! :)
2016-08-31 15:24 GMT-04:00 Isabelle Guimiot <isabelle...@gmail.com>:
It's a DB used for the validation environment, we asked the DBA to take the data from production and to import them to the validation DB. I will contact the DBA and see if he missed anything during the export...Thank you !
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/50747721-4fbc-4ec9-baa1-10fb89d6e500%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--