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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

551 views 6 12
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