AnsweredAssumed Answered

Status 404 after applying new AMP

Question asked by mbel on Nov 1, 2016
Latest reply on Nov 2, 2016 by mbel

Hello,

I have the following issue:

I created maven alfresco amp project with 'Hello World' message which was generated automatically and then built it to an amp.file.

After that I copied it to .\amps folder and then ran apply_amps.bat.

Then I could't access any URL in alfresco- I receive 404 error.

I checked the logs:

alfrescotomcat-stdout.txt

 

2016-11-01 01:11:00,186  ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-29] Model tracking failed

org.alfresco.error.AlfrescoRuntimeException: 10010020 GetModelsDiff return status is 404

  at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1157)

  at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:249)

  at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)

  at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:229)

  at org.alfresco.solr.component.EnsureModelsComponent.prepare(EnsureModelsComponent.java:80)

  at org.apache.solr.handler.component.AlfrescoSearchHandler.handleRequestBody(AlfrescoSearchHandler.java:283)

  at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)

  at org.alfresco.solr.Cloud.getResponse(Cloud.java:159)

  at org.alfresco.solr.Cloud.getSolrDocumentList(Cloud.java:143)

  at org.alfresco.solr.SolrInformationServer.getDocsWithUncleanContent(SolrInformationServer.java:715)

  at org.alfresco.solr.tracker.ContentTracker.doTrack(ContentTracker.java:74)

  at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:185)

  at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)

  at org.quartz.core.JobRunShell.run(JobRunShell.java:216)

  at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

2016-11-01 01:11:00,217  ERROR [solr.tracker.AbstractTracker] [SolrTrackerScheduler_Worker-33] Tracking failed

org.alfresco.error.AlfrescoRuntimeException: 10010021 GetModelsDiff return status is 404

  at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1157)

  at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:249)

  at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)

  at org.alfresco.solr.tracker.ModelTracker.doTrack(ModelTracker.java:167)

  at org.alfresco.solr.tracker.AbstractTracker.track(AbstractTracker.java:185)

  at org.alfresco.solr.tracker.TrackerJob.execute(TrackerJob.java:47)

  at org.quartz.core.JobRunShell.run(JobRunShell.java:216)

  at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)

 

in localhost_access_log:

127.0.0.1 - - [01/Nov/2016:01:11:45 -0700] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 404 1021

127.0.0.1 - - [01/Nov/2016:01:12:00 -0700] "GET /alfresco/service/api/solr/aclchangesets?fromId=0&toId=2000&maxResults=1 HTTP/1.1" 404 1027

127.0.0.1 - - [01/Nov/2016:01:12:00 -0700] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 404 1021

127.0.0.1 - - [01/Nov/2016:01:12:00 -0700] "GET /alfresco/service/api/solr/aclchangesets?fromId=0&toId=2000&maxResults=1 HTTP/1.1" 404 1027

127.0.0.1 - - [01/Nov/2016:01:12:00 -0700] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 404 1021

127.0.0.1 - - [01/Nov/2016:01:12:00 -0700] "POST /alfresco/service/api/solr/modelsdiff HTTP/1.1" 404 1021

 

 

I haven't done anything with solr, so I don't know why I receive this error.

Could you please advise what I did wrong when applied the amp or have to do something more ?

 

Thank you in advance.

Outcomes