"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

This widget could not be displayed.

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
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

170 views 18 7
Join discussion

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