Alfresco lock exception

cancel
Showing results for 
Search instead for 
Did you mean: 
elshelsen
Member II

Alfresco lock exception

I create a new site programmatically. At the end of the transaction I get the following error:

2019-02-12 14:20:45,098 ERROR [repo.transaction.RetryingTransactionHelper] [defaultAsyncAction8] Rolling back in exception org.alfresco.repo.lock.LockAcquisitionException: 01120883 Failed to get lock '{}tagscope_workspace://spacesstore/6c18bee8-2d3d-4e37-babb-7e0555fc899b' using token '2c9a3fe7-ba1c-4c2b-b709-15a5f42729f4'. An exclusive lock exists: LockEntity[ ID=100, sharedResourceId=184, exclusiveResourceId=184]
2019-02-12 14:20:45,101 ERROR [repo.transaction.RetryingTransactionHelper] [defaultAsyncAction3] txn failed org.springframework.dao.DuplicateKeyException:
### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "idx_alf_lockr_key"
Detail: Key (qname_ns_id, qname_localname)=(14, tagscope_workspace://spacesstore/d8c161fe-bd98-42f2-b872-82937d738964) already exists.
### The error may exist in alfresco/ibatis/#resource.dialect#/locks-insert-SqlMap.xml
### The error may involve alfresco.lock.insert.insert_LockResource-Inline
### The error occurred while setting parameters
### SQL: insert into alf_lock_resource (id, version, qname_ns_id, qname_localname) values (?, ?, ?, ?)

The site is working correct.    Any idea what goes wrong?