[keycloak-user] Failed to replace entity

Nicolas Ocquidant nocquidant at gmail.com
Wed Nov 28 05:52:29 EST 2018


Hi

I am currently testing KC and I get WARN messages in my console when I try
to refresh tokens.

11:42:54,245 WARN
[org.keycloak.models.sessions.infinispan.changes.InfinispanChangelogBasedTransaction]
(default task-1) Failed to replace entity
'9c206d08-8542-4385-ad97-61ae61ee4e00' in cache 'sessions'

Steps to reproduce :

   - start KC 4.6.0.Final
   - populate KC using the admin web console : realm=SpringBootKeycloak,
   client=login-app, role=user, user=user1/user1(role user)
   - use curl to login user1 :

tmp=$(curl -s -d
"grant_type=password&client_id=login-app&username=user1&password=user1" -X
POST -H "Content-Type: application/x-www-form-urlencoded"
http://localhost:8180/auth/realms/SpringBootKeycloak/protocol/openid-connect/token)
&& refresh_token1=$(echo "$tmp" | jq -r '.refresh_token') && echo "$tmp" |
jq .

   - use curl to refresh tokens of user1 :

curl -s -d
"grant_type=refresh_token&client_id=login-app&refresh_token=$refresh_token1"
-X POST -H "Content-Type: application/x-www-form-urlencoded"
http://localhost:8180/auth/realms/SpringBootKeycloak/protocol/openid-connect/token
| jq .

My config is as follow :

<distributed-cache name="sessions" owners="2" statistics-enabled="true"
remote-timeout="600000">
<state-transfer timeout="36000000"/>
<binary-memory eviction-type="COUNT" size="30000"/>
<expiration lifespan="86400000" interval="120000"/>
<jdbc-store data-source="InfinispanDS"
dialect="POSTGRES"
fetch-state="true"
passivation="true"
preload="false"
purge="false"
shared="false"
singleton="false">
<table prefix="ISPN_mbd_node1">
<id-column name="ID_COLUMN" type="VARCHAR(255)"/>
<data-column name="DATA_COLUMN" type="BYTEA"/>
<timestamp-column name="TIMESTAMP_COLUMN" type="BIGINT"/>
</table>
</jdbc-store>
</distributed-cache>

Shall I fill a Jira?
Thanks,
--nick


More information about the keycloak-user mailing list