Ocorre um erro em um trabalho de replicação que existe em uma fila de replicação para um agente que não está ativado.

Problema

A mensagem de erro que contém "com.day.cq.replication.impl.AgentManagerImpl Job contains agent which is not started: publish" é registrada em error.log repetidamente.

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]}

Ambiente

AEM 6.x

Causa

Existe um trabalho de replicação em uma fila de replicação para um agente que não está habilitado.

Resolução

Siga estas etapas para se livrar do erro:

  1. Faça o logon no AEM como admin.
  2. Acesse http://host:port/etc/replication/agents.author/publish.html
  3. Clique em Editar
  4. Ative o agente e salve
  5. Limpe a fila clicando no botão Limpar
  6. Clique em Editar e desative o agente novamente
  7. Salve.

Esta obra está licenciada sob uma licença não adaptada da Creative Commons Attribution-Noncommercial-Share Alike 3.0  As publicações do Twitter™ e do Facebook não são cobertas pelos termos do Creative Commons.

Avisos legais   |   Política de privacidade online