cancel
Showing results for 
Search instead for 
Did you mean: 

Cache update failed: AbstractAsynchronouslyRefreshedCache

miroslav
Star Contributor
Star Contributor

Hello,

the following error pops up on two Alfresco servers. One has been restarted and second has run out of space before. Database recovery was running there (wal logs).

Don't know what to do with it?

Thank you!

alfresco.log

2020-10-18 13:16:52,435 WARN [org.alfresco.heartbeat.datasender.HBDataSenderServiceBuilder] [localhost-startStop-1] Setting the Heartbeat sender cron with property 'heartbeat.sender.cronExpression' is no longer supported.
2020-10-18 13:16:52,650 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2020-10-18 13:16:52,650 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
2020-10-18 13:16:52,651 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.2-remove-jbpm-tables-from-db
2020-10-18 13:16:52,815 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:postgresql://postgres:5432/alfresco' with user 'alfresco'.
2020-10-18 13:16:52,815 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 12.1 (Debian 12.1-1.pgdg100+1)
2020-10-18 13:16:59,268 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2020-10-18 13:16:59,359 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2020-10-18 13:17:01,915 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] [localhost-startStop-1] Registered template processor Repository Template Processor for extension ftl
2020-10-18 13:17:01,920 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] [localhost-startStop-1] Registered script processor Repository Script Processor for extension js
2020-10-18 13:17:04,747 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted]
2020-10-18 13:17:04,873 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'ContentStore' subsystem, ID: [ContentStore, managed, unencrypted] complete
2020-10-18 13:17:04,988 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Connecting to database: jdbc:postgresql://postgres:5432/alfresco, UserName=alfresco, PostgreSQL JDBC Driver
2020-10-18 13:17:04,989 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Schema managed by database dialect org.alfresco.repo.domain.dialect.PostgreSQLDialect.
2020-10-18 13:17:05,047 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Applied patches detected: 224
2020-10-18 13:17:05,093 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Checking and patching Alfresco tables took 46 ms
2020-10-18 13:17:05,097 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Activiti tables need to be checked for patches
2020-10-18 13:17:05,126 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Checking and patching Activiti tables took 29 ms
2020-10-18 13:17:05,162 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Checking that all patches have been applied took 36 ms
2020-10-18 13:17:05,162 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] Updating the DB schema took 171 ms
2020-10-18 13:17:05,163 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] [localhost-startStop-1] No changes were made to the schema.
2020-10-18 13:17:08,090 ERROR [org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache] [asynchronouslyRefreshedCacheThreadPool1] Cache update failed: AbstractAsynchronouslyRefreshedCache [cacheId=compiledModelsCache]
java.lang.IllegalArgumentException: Cannot change core model: org.alfresco.repo.dictionary.CompiledModel@55369de2
at org.alfresco.repo.dictionary.TenantDictionaryRegistryImpl.putModelImpl(TenantDictionaryRegistryImpl.java:70)
at org.alfresco.repo.dictionary.AbstractDictionaryRegistry.putModel(AbstractDictionaryRegistry.java:113)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:277)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModel(DictionaryDAOImpl.java:260)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.loadModel(DictionaryRepositoryBootstrap.java:584)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInitInTxn(DictionaryRepositoryBootstrap.java:357)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.access$0(DictionaryRepositoryBootstrap.java:255)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap$2.execute(DictionaryRepositoryBootstrap.java:776)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap$2.execute(DictionaryRepositoryBootstrap.java:1)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
at org.alfresco.repo.dictionary.DictionaryRepositoryBootstrap.onDictionaryInit(DictionaryRepositoryBootstrap.java:780)
at org.alfresco.repo.dictionary.TenantDictionaryRegistryImpl.initImpl(TenantDictionaryRegistryImpl.java:221)
at org.alfresco.repo.dictionary.AbstractDictionaryRegistry.init(AbstractDictionaryRegistry.java:683)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$2.doWork(DictionaryDAOImpl.java:735)
at org.alfresco.repo.dictionary.DictionaryDAOImpl$2.doWork(DictionaryDAOImpl.java:721)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.initDictionaryRegistry(DictionaryDAOImpl.java:719)
at org.alfresco.repo.dictionary.CompiledModelsCache$1.doWork(CompiledModelsCache.java:61)
at org.alfresco.repo.dictionary.CompiledModelsCache$1.doWork(CompiledModelsCache.java:58)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:602)
at org.alfresco.repo.dictionary.CompiledModelsCache.buildCache(CompiledModelsCache.java:57)
at org.alfresco.repo.dictionary.CompiledModelsCache.buildCache(CompiledModelsCache.java:41)
at org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache.doRefresh(AbstractAsynchronouslyRefreshedCache.java:479)
at org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache.doCall(AbstractAsynchronouslyRefreshedCache.java:464)
at org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:429)
at org.alfresco.util.cache.AbstractAsynchronouslyRefreshedCache.call(AbstractAsynchronouslyRefreshedCache.java:49)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
1 REPLY 1

mustbebetterway
Champ in-the-making
Champ in-the-making

I got the same error, did  you resove it?