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

My program cannot access a .so file while being run with mesos containerization on a docker image.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Resolved
    • 1.0.1
    • None
    • None
    • None
    • CentOS Linux release 7.2.1511 (Core)

    Description

      I have an application compiled within a docker environment called ubuntu-mesos:0.11-17102016-IUWT. I've defined the executor for said application with the following code:

      val iuwtURI = CommandInfo.URI.newBuilder().setValue("http://***/
      IUWT.tar.gz").setExtract(true).setCache(false).build()

      val iuwtjURI = CommandInfo.URI.newBuilder().setValue("http://***/
      iuwtExecutor-assembly-0.1-
      SNAPSHOT.jar").setExecutable(false).setCache(false).build()

      val iuwtExec = "java -jar iuwtExecutor-assembly-0.1-SNAPSHOT.jar -
      Xmx1024M -Xmx128M"

      val iuwtCommand =
      CommandInfo.newBuilder.setValue(iuwtExec).addAllUris(List(iuwtjURI,
      iuwtURI).asJava).setShell(true).build()

      val iuwtImageInfo =
      Image.newBuilder().setType(Image.Type.DOCKER).setDocker(Image.Docker.newBuilder.setName("ubuntu-
      mesos:0.11-17102016-IUWT").build()).build()

      val iuwtContInfo =
      ContainerInfo.MesosInfo.newBuilder().setImage(iuwtImageInfo).build()

      val iuwtContainer = ContainerInfo.newBuilder()
      .setMesos(iuwtContInfo)
      .setType(ContainerInfo.Type.MESOS)
      .build()

      val iuwtExecutor = ExecutorInfo.newBuilder()
      .setCommand(iuwtCommand)
      .setContainer(iuwtContainer)
      .setExecutorId(ExecutorID.newBuilder().setValue("iuwt-executor"))
      .setName("iuwt-executor").build()

      My executor then downloads some additional data and then tries to launch the application with the input data. Unfortunately, the application fails to launch because "exec: error while loading shared libraries: libtiff.so.5: cannot open shared object file: No such file or directory". I've attached logs showing libtiff.so.5 is both in /usr/lib/x86_64-linux-gnu, but also in /usr/lib.

      Attachments

        1. Dockerfile
          1 kB
          Mark Hammons
        2. IUWT_140926aR_t000_ch00.log
          47 kB
          Mark Hammons

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mhammons Mark Hammons
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: