Rare ConstraintViolationException error

One of my users, when attempting to close out a Code Review got the following error:

Internal Server Error
Error 2
An org.hibernate.exception.ConstraintViolationException was encountered

Could not execute JDBC batch update
Cannot delete or update a parent row: a foreign key constraint fails (`fisheye`.`cru_comment`, CONSTRAINT `FKE5A1D10674DF349C` FOREIGN KEY (`cru_reply_to_comment_id`) REFERENCES `cru_comment` (`cru_comment_id`))
You are running release CR2.7.8 FE2.7.8 (20111130052542 2011-11-30), please report your release number when reporting bugs.
Got a suggestion or an issue?
Discuss it in our forums or visit our support website for other options

Has anyone else encountered this error and if so, what did you do to resolve the issue?

1 answer

Hi Rick,

There's a bug report very similar to this at https://jira.atlassian.com/browse/CRUC-6079. Apparently this is related to some inconsistency in your database. In previous cases Atlassian Support needed to get the database dumb in order to run some tests locally and correct some tables values. So if you still facing this issue I recommend you to contact support.atlassian.com



Suggest an answer

Log in or Join to answer
Community showcase
Bridget Sauer
Published Mar 09, 2018 in Jira Service Desk

E.L. Fridge's take on education, Jira Service Desk, and creative Jira use cases

...word of mouth, so by 2016, we were working with several other entities on campus to implement Jira Service Desk . The Atlassian motto of “for every team” has really come true for us in this case. We...

340 views 0 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot