Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-10110

Publish Maven Indexes task does not always fetch remote index to make it searchable

    Details

    • Story Points:
      2

      Description

      I configured a proxy repo called nx2-proxy-hosted in nx3 proxying a hosted release repo that is publishing indexes in Nexus 2. While I can directly confirm using curl that the nx 2 repo is publishing a Maven index, Nexus 3 does not want to seem to get it when the Publish Indexes task is run in Nexus 3

      2016-04-19 12:43:46,599-0300 DEBUG [qtp1870741025-270] admin org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Invoking action method: coreui_Task.run, java-method: org.sonatype.nexus.coreui.TaskComponent.run
      2016-04-19 12:43:46,601-0300 INFO  [qtp1870741025-270] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task 'Publish Indexes' [repository.maven.publish-dotindex] runNow
      2016-04-19 12:43:46,602-0300 INFO  [qtp1870741025-270] admin org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task nexus.3bf28f1b-4133-4856-beea-094420dedfda : 'Publish Indexes' [repository.maven.publish-dotindex] state change WAITING -> RUNNING
      2016-04-19 12:43:46,603-0300 DEBUG [qtp1870741025-270] admin org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Store trigger: trigger=Trigger 'DEFAULT.MT_7rhccphq5cln7':  triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Tue Apr 19 12:43:46 ADT 2016, replaceExisting=false
      2016-04-19 12:43:46,604-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1461080656604, maxCount=1, timeWindow=0
      2016-04-19 12:43:46,604-0300 DEBUG [qtp1870741025-270] admin com.softwarementors.extjs.djn.Timer -   - Java method dispatch time (TaskComponent.run): 5.99 ms.
      2016-04-19 12:43:46,605-0300 DEBUG [qtp1870741025-270] admin com.softwarementors.extjs.djn.router.processor.standard.json.JsonRequestProcessor - ResponseData data (JSON)=>{
        "tid": 27,
        "action": "coreui_Task",
        "method": "run",
        "result": {
          "success": true,
          "data": null
        },
        "type": "rpc"
      }
      2016-04-19 12:43:46,605-0300 DEBUG [qtp1870741025-270] admin com.softwarementors.extjs.djn.Timer - Total servlet processing time: 6.51 ms.
      2016-04-19 12:43:46,607-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Triggers fired: [Trigger 'DEFAULT.MT_7rhccphq5cln7':  triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Tue Apr 19 12:43:46 ADT 2016]
      2016-04-19 12:43:46,608-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Trigger fired: Trigger 'DEFAULT.MT_7rhccphq5cln7':  triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: Tue Apr 19 12:43:46 ADT 2016
      2016-04-19 12:43:46,612-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.JobFactoryImpl - New job: class org.sonatype.nexus.quartz.internal.task.QuartzTaskJob
      2016-04-19 12:43:46,612-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1461080656612, maxCount=1, timeWindow=0
      2016-04-19 12:43:46,616-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.scheduling.internal.TaskFactoryImpl - Creating task instance: {.updated=2016-04-19T11:39:13.997-03:00, .name=Publish Indexes, .enabled=true, .message=Publish Maven indexes of nx2-proxy-hosted, .id=76d47b07-ec3f-4144-9878-7c5cdc67f483, .typeName=Publish Maven indexes, .visible=true, repositoryName=nx2-proxy-hosted, .typeId=repository.maven.publish-dotindex, .created=2016-04-08T14:07:40.704-03:00}
      2016-04-19 12:43:46,618-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskFuture - Task 3bf28f1b-4133-4856-beea-094420dedfda : 'Publish Indexes' [repository.maven.publish-dotindex] runState transition STARTING -> RUNNING
      2016-04-19 12:43:46,618-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.repository.maven.internal.proxy.MavenProxyIndexFacet - Fetching maven index properties from remote
      2016-04-19 12:43:46,619-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.repository.maven.internal.MavenFacetImpl - GET nx2-proxy-hosted : .index/nexus-maven-repository-index.properties
      2016-04-19 12:43:46,620-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.repository.maven.internal.proxy.MavenProxyIndexFacet - No remote index found... nothing to publish
      2016-04-19 12:43:46,622-0300 INFO  [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.task.QuartzTaskInfo - Task nexus.3bf28f1b-4133-4856-beea-094420dedfda : 'Publish Indexes' [repository.maven.publish-dotindex] state change RUNNING -> WAITING (OK)
      2016-04-19 12:43:46,622-0300 DEBUG [quartz-2-thread-13] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Triggered job complete: trigger=Trigger 'DEFAULT.MT_7rhccphq5cln7':  triggerClass: 'org.quartz.impl.triggers.SimpleTriggerImpl calendar: 'null' misfireInstruction: 0 nextFireTime: null, jobDetail=JobDetail 'nexus.3bf28f1b-4133-4856-beea-094420dedfda':  jobClass: 'org.sonatype.nexus.quartz.internal.task.QuartzTaskJob concurrentExectionDisallowed: true persistJobDataAfterExecution: true isDurable: false requestsRecovers: false, instruction=DELETE_TRIGGER
      2016-04-19 12:43:46,624-0300 DEBUG [nexus_QuartzSchedulerThread] *SYSTEM org.sonatype.nexus.quartz.internal.orient.JobStoreImpl - Acquire next triggers: noLaterThan=1461080656624, maxCount=1, timeWindow=0
      

      Notice the Nexus 3 logs says it tried to get the index properties file, but there was no http traffic recorded even though org.apache.http logger was set to DEBUG and I had Nexus 3 using charles proxy monitoring traffic.

        Attachments

          Activity

            People

            Assignee:
            jbryan Jeremy Bryan
            Reporter:
            plynch Peter Lynch
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            Nexus - Core
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title