Jira suddenly is throwing errors

Howard Nedd April 9, 2021

Jira is throwings errors. i believe it has something to do with the DB, but not to sure. It is the following error:

2021-03-16 15:28:35,197+0100 http-nio-8080-exec-79 url: /internal-error ERROR [c.a.j.web.servlet.InternalServerErrorServlet] {errorId=8e113123-0a43-44a5-b929-b9182e18fef6, interpretedMsg=, cause=com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:Membership][lowerChildName,sgupta14][membershipType,GROUP_USER][parentName,NSR_ODATA_NC_TBAPI][childName,sgupta14][directoryId,10000][id,1808709][childId,45603][lowerParentName,nsr_odata_nc_tbapi][parentId,30917] (SQL Exception while executing the following:INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated
Caused by: Error : 1, Position : 0, Sql = INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (:1 , :2 , :3 , :4 , :5 , :6 , :7 , :8 , :9 , :10 ), OriginalSql = INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?), Error Msg = ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated
Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated
Caused by: org.ofbiz.core.entity.GenericDataSourceException: SQL Exception while executing the following:INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated
Caused by: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:Membership][lowerChildName,sgupta14][membershipType,GROUP_USER][parentName,NSR_ODATA_NC_TBAPI][childName,sgupta14][directoryId,10000][id,1808709][childId,45603][lowerParentName,nsr_odata_nc_tbapi][parentId,30917] (SQL Exception while executing the following:INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated
com.atlassian.jira.exception.DataAccessException: org.ofbiz.core.entity.GenericEntityException: while inserting: [GenericEntity:Membership][lowerChildName,sgupta14][membershipType,GROUP_USER][parentName,NSR_ODATA_NC_TBAPI][childName,sgupta14][directoryId,10000][id,1808709][childId,45603][lowerParentName,nsr_odata_nc_tbapi][parentId,30917] (SQL Exception while executing the following:INSERT INTO cwd_membership (ID, parent_id, child_id, membership_type, group_type, parent_name, lower_parent_name, child_name, lower_child_name, directory_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?) (ORA-00001: unique constraint (TMC002_JIRA.UK_MEM_PARENT_CHILD_TYPE) violated

 Does anyone have any idea what is causing this error to suddenly pop up?

1 answer

0 votes
Juan Manuel Ibarra
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 9, 2021

Hello, if the instqance seems to be losing connection with the database.

Usually an error message appears in jira if the validation query is correctly configured in the dbconfig.xml file.

With this error you cannot see much, I recommend you verify that the database is accessible from the jira server. For more details you should see the entire log.

I recommend you analyze the log and if you can't find anything and the database works ok, it is accessible and it has the credentials that you upload a ticket to atlassian support attaching the support zip.

regards

Suggest an answer

Log in or Sign up to answer