Une erreur se produit pour un travail de réplication existant dans une file d'attente de réplication pour un agent non activé.

Problème

Le message d'erreur qui contient "com.day.cq.replication.impl.AgentManagerImpl Job contains agent which is not started: publish" est consigné plusieurs fois dans error.log.

06.12.2016 23:12:40.324 *ERROR* [sling-threadpool-f90155c4-2a3e-4fbe-bf02-e0e3089e6f2f-(apache-sling-job-thread-pool)-1404-com_day_cq_replication_job_publish(com/day/cq/replication/job/publish)] com.day.cq.replication.impl.AgentManagerImpl Job contains agent which is not started: publish. waiting ReplicationJob{job=JobImpl [properties=org.apache.sling.api.wrappers.ValueMapDecorator@1fd82b1b : {replicationContent=ReplicationContentFacade{path='/var/replication/data/b73f26d0-04d6-4e31-8080-4ef7b37aee92/bf/bff8b3a5-63de-4a77-82fa-910148642f3f', contentType='application/cq5-replication-durbo', contentLength=58277}, event.job.retrydelay=60000, cq:type=ACTIVATE, slingevent:application=b73f26d0-04d6-4e31-8080-4ef7b37aee92, jcr:created=java.util.GregorianCalendar[time=1480925587441,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT-08:00",offset=-28800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2016,MONTH=11,WEEK_OF_YEAR=50,WEEK_OF_MONTH=2,DAY_OF_MONTH=5,DAY_OF_YEAR=340,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=13,SECOND=7,MILLISECOND=441,ZONE_OFFSET=-28800000,DST_OFFSET=0], slingevent:created=java.util.GregorianCalendar[time=1480925587399,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT-08:00",offset=-28800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2016,MONTH=11,WEEK_OF_YEAR=50,WEEK_OF_MONTH=2,DAY_OF_MONTH=5,DAY_OF_YEAR=340,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=13,SECOND=7,MILLISECOND=399,ZONE_OFFSET=-28800000,DST_OFFSET=0], event.job.queuename=com_day_cq_replication_job_publish, event.job.queued.time=java.util.GregorianCalendar[time=1480925587399,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT-08:00",offset=-28800000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2016,MONTH=11,WEEK_OF_YEAR=50,WEEK_OF_MONTH=2,DAY_OF_MONTH=5,DAY_OF_YEAR=340,DAY_OF_WEEK=2,DAY_OF_WEEK_IN_MONTH=1,AM_PM=0,HOUR=0,HOUR_OF_DAY=0,MINUTE=13,SECOND=7,MILLISECOND=399,ZONE_OFFSET=-28800000,DST_OFFSET=0], jcr:createdBy=admin, sling:resourceType=slingevent:Job, slingevent:eventId=2016/12/5/0/13/b73f26d0-04d6-4e31-8080-4ef7b37aee92_3, event.job.application=b73f26d0-04d6-4e31-8080-4ef7b37aee92, event.job.retries=-1, cq:path=/content/dam/geometrixx/shapes/W06.jpg, cq:user=admin, event.job.started.time=java.util.GregorianCalendar[time=1481094760259,areFieldsSet=true,areAllFieldsSet=true,lenient=true,zone=sun.util.calendar.ZoneInfo[id="US/Pacific-New",offset=-28800000,dstSavings=3600000,useDaylight=true,transitions=185,lastRule=java.util.SimpleTimeZone[id=US/Pacific-New,offset=-28800000,dstSavings=3600000,useDaylight=true,startYear=0,startMode=3,startMonth=2,startDay=8,startDayOfWeek=1,startTime=7200000,startTimeMode=0,endMode=3,endMonth=10,endDay=1,endDayOfWeek=1,endTime=7200000,endTimeMode=0]],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2016,MONTH=11,WEEK_OF_YEAR=50,WEEK_OF_MONTH=2,DAY_OF_MONTH=6,DAY_OF_YEAR=341,DAY_OF_WEEK=3,DAY_OF_WEEK_IN_MONTH=1,AM_PM=1,HOUR=11,HOUR_OF_DAY=23,MINUTE=12,SECOND=40,MILLISECOND=259,ZONE_OFFSET=-28800000,DST_OFFSET=0], jcr:primaryType=slingevent:Job, event.job.retrycount=2816, event.job.topic=com/day/cq/replication/job/publish, cq:time=1480925587154}, topic=com/day/cq/replication/job/publish, path=/var/eventing/jobs/assigned/b73f26d0-04d6-4e31-8080-4ef7b37aee92/com.day.cq.replication.job.publish/2016/12/5/0/13/b73f26d0-04d6-4e31-8080-4ef7b37aee92_3, jobId=2016/12/5/0/13/b73f26d0-04d6-4e31-8080-4ef7b37aee92_3]}

Environnement

AEM 6.x

Cause

Une tâche de réplication existe dans une file d’attente de réplication pour un agent de réplication qui n’est pas activé.

Résolution

Procédez comme suit pour vous débarrasser de l’erreur :

  1. Connexion à AEM en tant qu’administrateur.
  2. Accédez à http://hôte:port/etc/replication/agents.author/publish.html
  3. Cliquez sur Modifier.
  4. Activez l’agent et sauvegardez.
  5. Pour effacer la file d’attente, cliquez sur le bouton Effacer.
  6. Cliquez sur Modifier et désactivez de nouveau l’agent.
  7. Enregistrer