Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9233

Mesos fetcher failed for windows with linux tars with embedded symlinks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • fetcher
    • None

    Description

      When trying to extract a linux tar on windows, tar fails with the command below:

      tar xf server-jre-8u162-linux-x64.tar
      jdk1.8.0_162/man/ja: Can't create '\\\\?\\C:\\Users\\andrew\\Downloads\\jdk1.8.0_162\\man\\ja'
      jdk1.8.0_162/jre/lib/amd64/server/libjsig.so: Can't create '\\\\?\\C:\\Users\\andrew\\Downloads\\jdk1.8.0_162\\jre\\lib\\amd64\\server\\libjsig.so'
      tar.exe: Error exit delayed from previous errors.
      

      andschwa has found that someone has attempted to get this to work for windows which should resolve this problem for Mesos. https://github.com/libarchive/libarchive/pull/1030

      Marathon app def to reproduce as well:

      {
        "id": "/sleep",
        "backoffFactor": 1.15,
        "backoffSeconds": 1,
        "cmd": "powershell -c start-sleep 999",
        "container": {
          "type": "MESOS",
          "volumes": []
        },
        "cpus": 0.1,
        "disk": 0,
        "fetch": [
          {
            "uri": https://downloads.mesosphere.com/java/server-jre-8u162-linux-x64.tar.gz",
            "extract": true,
            "executable": false,
            "cache": false
          }
        ],
        "instances": 1,
        "maxLaunchDelaySeconds": 3600,
        "mem": 128,
        "gpus": 0,
        "networks": [
          {
            "mode": "host"
          }
        ],
        "portDefinitions": [],
        "requirePorts": false,
        "upgradeStrategy": {
          "maximumOverCapacity": 1,
          "minimumHealthCapacity": 1
        },
        "killSelection": "YOUNGEST_FIRST",
        "unreachableStrategy": {
          "inactiveAfterSeconds": 0,
          "expungeAfterSeconds": 0
        },
        "healthChecks": [],
        "constraints": []
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            bernadinm Miguel Bernadin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: