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

Update Repository Index uses ${NEXUS_HOME}/tmp instead of ${nexus-work}/tmp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 2.11.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Linux arm01 3.5.0-41-generic #64~precise1-Ubuntu SMP Thu Sep 12 16:50:04 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

      Description

      I came across the

      No space left on device
      

      error message as described in NEXUS-2965.

      But I was wondering why there's no space left on the device which stores ${nexus-work} (/dev/sdc1). 102 GB of free space should be fairly enough.

      /dev/sda1                                      12G  5.2G  6.2G  46% /
      udev                                          2.0G  4.0K  2.0G   1% /dev
      tmpfs                                         788M  732K  787M   1% /run
      none                                          5.0M     0  5.0M   0% /run/lock
      none                                          2.0G  192K  2.0G   1% /run/shm
      /dev/sdc1                                     247G  133G  102G  57% /data
      

      Doing some dh -h / --max-depth=1 during the indexing I found out that the disc usage of /opt (/dev/sda1) was increasing. To be more precise /opt/nexus/current/tmp was getting bigger and bigger. That's a subfolder where ${NEXUS_HOME} actually points to.

      So I think the indexer is using the temporary folder ${NEXUS_HOME}/tmp instead of ${nexus-work}/tmp?!?

      I fixed the issue by removing the folder ${NEXUS_HOME}/tmp and replacing it with a link to ${nexus-work}/tmp.

      rm -rf ${NEXUS_HOME}/tmp
      ln -s ${nexus-work}/tmp ${NEXUS_HOME}/tmp
      

      Here's the home and work directory configuration in ${NEXUS_HOME}/bin/nexus and ${NEXUS_HOME}/conf/nexus.properties

      NEXUS_HOME=/opt/nexus/current
      nexus-work=/data/nexus
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              markus.helm Markus Helm
              Last Updated By:
              Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title