cancel
Showing results for 
Search instead for 
Did you mean: 

What means "Model tracking failed" Error?

iceja
Confirmed Champ
Confirmed Champ

Hi!

I have an exception:

2020-07-11 02:20:15,305 ERROR [org.alfresco.solr.tracker.AbstractTracker] [org.alfresco.solr.AlfrescoCoreAdminHandler@74ed9d53_Worker-40] Model tracking failed
org.alfresco.service.cmr.dictionary.DictionaryException: 06117358 d_dictionary.compiled_model.err.compile.failure - [ecmcndindustrystd:nd_industry_standards]
at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:126)
at org.alfresco.repo.dictionary.M2Model.compile(M2Model.java:174)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelImpl(DictionaryDAOImpl.java:273)
at org.alfresco.repo.dictionary.DictionaryDAOImpl.putModelIgnoringConstraints(DictionaryDAOImpl.java:267)
at org.alfresco.solr.AlfrescoSolrDataModel.putModel(AlfrescoSolrDataModel.java:1399)
at org.alfresco.solr.SolrInformationServer.putModel(SolrInformationServer.java:3116)
at org.alfresco.solr.tracker.ModelTracker.loadModel(ModelTracker.java:523)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:290)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:214)
at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:236)
at org.alfresco.solr.component.EnsureModelsComponent.prepare(EnsureModelsComponent.java:87)
at org.apache.solr.handler.component.AlfrescoSearchHandler.handleRequestBody(AlfrescoSearchHandler.java:292)
at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
at org.alfresco.solr.Cloud.getResponse(Cloud.java:166)
at org.alfresco.solr.Cloud.getResultContext(Cloud.java:132)
at org.alfresco.solr.SolrInformationServer.getDocListSize(SolrInformationServer.java:1050)
at org.alfresco.solr.SolrInformationServer.getAclTxDocsSize(SolrInformationServer.java:1037)
at org.alfresco.solr.tracker.AclTracker.checkRepoAndIndexConsistency(AclTracker.java:360)
at org.alfresco.solr.tracker.AclTracker.trackRepository(AclTracker.java:320)
at org.alfresco.solr.tracker.AclTracker.doTrack(AclTracker.java:111)
at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:190)
at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:54)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06117357 d_dictionary.class_definition.mandatory_aspect_not_found - [ecmcnddoc:has_document_case, ecmcndindustrystd:nd_industry_standards]
at org.alfresco.repo.dictionary.M2ClassDefinition.resolveDependencies(M2ClassDefinition.java:262)
at org.alfresco.repo.dictionary.CompiledModel.resolveDependencies(CompiledModel.java:255)
at org.alfresco.repo.dictionary.CompiledModel.<init>(CompiledModel.java:110)
... 23 more

Could you tell me what does it mean?

1 REPLY 1

abhinavmishra14
World-Class Innovator
World-Class Innovator

You get this error due to various reasons:

- There is an error deploying content model. There could be various reasons for deployment failure, such as you added a typo, used duplicate property/type/aspect name, used an invalid data type, used an unknown unsupported element in the model etc. In this case content model could not be compiled, and generally you get clear error as to why it failed.

- There are breaking changes in content model.

- Connection error, solr is not able to connect to repo. 

etc.

In your case, you are getting this error due to model compilation failure which prevented your custom model deployment. If you read the stacktrace, the error is clear: 

Caused by: org.alfresco.service.cmr.dictionary.DictionaryException: 06117357 d_dictionary.class_definition.mandatory_aspect_not_found - [ecmcnddoc:has_document_case, ecmcndindustrystd:nd_industry_standards]

A mandatory aspect is expected which can not be found in your model. Correct the error and retry.

~Abhinav
(ACSCE, AWS SAA, Azure Admin)