[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [HTCondor-users] Executable file not found error for docker universe job

Hi Zhuo,
Âdid you try enabling file transfer?
Âshould_transfer_files = True
I found that error with docker some times and was because I didn't allowed tranfer files.

Maybe this help you.

On Tue, May 16, 2017 at 11:16 AM, Zhuo Zhang <zhuo.zhang@xxxxxxxx> wrote:

I have a simple docker image fm, and it can run successful when launching the image container locally. But when I use docker universe and send the image fm to HTCondor, the job is in Hold status. And the hold reason is "Error running docker job: [8] System error: exec: 'run_fm.pl': executable file not found in $PATH".

The perl script run_fm.pl can be run inside docker container successfully when launching container on the host, but why it cannot be found when sending the image to condor?

FYI, my Dockerfile is:


    FROM centos:latest
    LABEL maintainer="xxx"
    RUN mkdir -p /home/user/working_dir
    COPY xxx...
    ENV PATH ".:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    ENV LD_LIBRARY_PATH "/usr/lib64:/usr/lib:/usr/local/lib:/usr/local/lib64"
    WORKDIR /home/user/working_dir
    RUN ...


    ENTRYPOINT ["run_fm.pl"]
    CMD ["/home/user/working_dir", "test.cfg", "test.log"]


The submit file is:


    Universe            = docker
    docker_image       Â= fm
#    executable          Â= ./run_fm.pl
#    arguments          Â= "/home/user/working_dir test_docker.cfg /test/test.log"
    log                Â= fm.sub.log
    output             = fm.sub.out
    error              Â= fm.sub.err
    initialdir           Â= /my_initial_dir
    Request_cpus      Â= 1
    Request_disk       = 20000
    Request_memory   = 10000
    should_transfer_files = YES
    notification         = Complete
    getenv             = True
    queue              Â1


Thank you,


HTCondor-users mailing list
To unsubscribe, send a message to htcondor-users-request@xxxxxxx.edu with a
subject: Unsubscribe
You can also unsubscribe by visiting

The archives can be found at:

Edier Alberto Zapata HernÃndez
Ingeniero de Soporte en Infraestructura
CIER - Sur