"GenericJDBCException - Cannot open connection" for all active users. Database corruption results in FECRU outage.

A database exception results from normal user login and app-access (People or Reviews access.) FECRU becomes unusable for _all_ users.

Appears to be related to malformed/unavailable LDAP attribute: (real user names changed to 'xuser' and 'yuser')

==SNIP atlassian-fisheye.log

WARN btpool0-758 fisheye LDAPAuth-extract - Could not find the attribute 'mail' in LDAP

...

ERROR ThreadPool5 org.hibernate.util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - Batch entry 0 insert into cru_recently_visited (cru_last_viewed, cru_user_name, cru_item_type, cru_entity_id) values ('1361382326880', 'xuser', 'atlassian-user', 'yuser') was aborted. Call getNextException to see the cause.

WARN ThreadPool5 org.hibernate.util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - SQL Error: 0, SQLState : 23505

ERROR ThreadPool5 org.hibernate.util.JDBCExceptionReporter JDBCExceptionReporter-logExceptions - ERROR: duplicate key value violates unique constraint cru_recently_visited_pkey

Detail: Key (cru_user_name, cru_item_type, cru_entity_id)=(xuser, atlassian-user, yuser) already exists

==/SNIP

==SNIP PostgreSQL logs

UTC ERROR: duplicate key value violates unique constraint cru_recently_visited_pkey

UTC DETAIL: Key (cru_user_name, cru_item_type, cru_entity_id)=(xuser, atlassian-user, yuser) already exists.

UTC STATEMENT: insert into cru_recently_visited (cru_last_viewed, cru_user_name, cru_item_type, cru_entity_id) values ($1, $2, $3, $4)

UTC ERROR: current transaction is aborted, commands ignored until end of transaction block

...

==/SNIP

1 answer

1 accepted

0 votes
Accepted answer

From Atlassian:

Unfortunately you seem to be experiencing a known bug, as documented here:

https://jira.atlassian.com/browse/CRUC-6385

Suggest an answer

Log in or Sign up to answer
Community showcase
Published yesterday in Feedback & Announcements

How do you analyze GC logs, thread dumps and head dumps?

Hi awesome community!  In this article, I would like to describe the one of the toolset (service) for the analyze some problems on different Java-based instances, of course, as Atlassian admini...

94 views 0 7
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