Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Duplicate entry for key 'uk_token_id_hash' in crwod log

pupie September 28, 2014

Hi,

I am wondering if anyone has noticed this error in crowd log. 

I am using latest crowd 2.7.2 and JIRA 6.3.6. I noticed that there are always some errors in crowd logs like:

2014-09-29 08:35:59,575 http-bio-8095-exec-21 WARN [engine.jdbc.spi.SqlExceptionHelper] SQL Error: 1062, SQLState: 23000
2014-09-29 08:35:59,575 http-bio-8095-exec-21 ERROR [engine.jdbc.spi.SqlExceptionHelper] Duplicate entry 'DExcfx0O9tpVuoIqjtqREw00' for key 'uk_token_id_hash'
2014-09-29 08:35:59,589 http-bio-8095-exec-21 ERROR [jdbc.batch.internal.BatchingBatch] HHH000315: Exception executing batch [could not perform addBatch]

 

so, what is wrong is my crowd and how to get rid of this error?

4 answers

0 votes
Deleted user March 21, 2020
0 votes
pupie September 29, 2014

i try to switch Token Storage to memory and error occurred. http://pastebin.com/Zub9B3wL

0 votes
Tiago Comasseto
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.
September 28, 2014

Hi, if you're running Crowd previous to version 2.7.2 it's possible that you're running into a bug as this one, in this case you may switch the token storage to in memory or upgrade Crowd to the latest version.

I hope it helps.

Cheers

pupie September 29, 2014

i swither it to memory and error occurred. http://pastebin.com/Zub9B3wL

pupie September 29, 2014

I am using crowd 2.7.2 build 626. the Authentication Token Storage is in database.

I tried to switch it to memory from web interface and error occurred can be seen from web interface and log.

http://pastebin.com/Zub9B3wL

Tiago Comasseto
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.
September 29, 2014

Hi, since you're facing problem to switch the token storage via web interface, you can do it directly via database:

  1. Shutdown crowd - ensure the pid is stopped
  2. Perform a database backup
  3. Connect to the database
  4. Execute this sql:
    update cwd_property 
    set property_value='false'
    where property_name='database.token.storage.enabled';
  5. Restart Crowd
  6. Validate the session storage is now in-memory by Navigating to Administration > Session Config

 

0 votes
Caspar Krieger
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 28, 2014

Would you please attach the full exception stack trace, e.g. on http://pastebin.com/ ?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events