Subject: Re: [HTCondor-users] Executable file not found error for docker universe job
Hi Edier,
Thank you for the suggestion. Unfortunately, I just tried
changing "should_transfer_files" to True, the job is still being
held. And the hold reason is same.
Thanks,
Zhuo
Edier Zapata wrote on 5/16/2017 12:21
PM:
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.
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 ...