An error occurs for a replication job which exists in a replication queue for an agent that is not enabled.

Issue

The error message which contains "com.day.cq.replication.impl.AgentManagerImpl Job contains agent which is not started: publish" is logged in error.log repeatedly.

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

Environment

AEM 6.x

Cause

A replication job exists in a replication queue for a replication agent which is not enabled.

Resolution

Follow these steps to get rid of the error:

  1. Log in to AEM as admin
  2. Go to http://host:port/etc/replication/agents.author/publish.html
  3. Click Edit
  4. Enable the agent and save
  5. Clear the queue by clicking the Clear button
  6. Click Edit and disable the agent again
  7. Save

Dette produktet er lisensiert i henhold til Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Innlegg på Twitter™ og Facebook dekkes ikke av Creative Commons-vilkår.

Juridiske merknader   |   Regler for personvern på nettet