Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-21270

Temp directory not set properly in make install mode

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.2.0, 7.0.8
    • Component/s: Embedded Languages
    • Labels:
      None

      Description

      ./regress/ecl/javaembed:ecl(22,1): error C2405: Failed to create temporary directory /var/lib/HPCCSystems/hpcc-data/temp/javaembed/tmp:Ih2cD5 (error 2)
      

      It looks like this is failing because javaembed is trying to create a unique directory, but the parent directories don't necessarily already exist.
      I think it may be this code:

          StringBuffer tmpDirName;
          getTempFilePath(tmpDirName, "javaembed", nullptr);
          tmpDirName.append(PATHSEPCHAR).append("tmp.XXXXXX");
          if (!mkdtemp((char *) tmpDirName.str()))
              throw makeStringExceptionV(0, "Failed to create temporary directory %s (error %d)", tmpDirName.str(), errno);
      

      there mkdtemp will fail if e.g. 'javaembed' doesn't already exist.

        Attachments

          Activity

            People

            • Assignee:
              richardkchapman Richard Chapman
              Reporter:
              jakesmith Jake Smith
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: