Se produce un error en un trabajo de replicación que existe en una cola de replicación para un agente que no está habilitado.

Problema

El mensaje de error que contiene "com.day.cq.replication.impl.AgentManagerImpl Job contains agent which is not started: publish" se registra en 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]}

Entorno

AEM 6.x

Causa

Existe un trabajo de replicación en una cola de replicación para un agente de replicación que no está habilitado.

Resolución

Siga estos pasos para deshacerse del error:

  1. Iniciar sesión en AEM como administrador
  2. Vaya a http://host:port/etc/replication/agents.author/publish.html
  3. Haga clic en Editar
  4. Habilitar el agente y guardar
  5. Para borrar la cola, haga clic en el botón Borrar
  6. Haga clic en Editar y deshabilite el agente de nuevo
  7. Guardar

Esta obra está autorizada con arreglo a la licencia de Reconocimiento-NoComercial-CompartirIgual 3.0 Unported de Creative Commons.  Los términos de Creative Commons no cubren las publicaciones en Twitter™ y Facebook.

Avisos legales   |   Política de privacidad en línea