Hello again,
The error message: could not make temporary directory: `/var/lib/condor/execute/dir_33779/Graph_Xmgrace_23' etc
only appears on HTcondor when the perl script contains more than one call to xmgrace.
Adding permission changes before the perl script is called:
chmod g+w $TEMP
chmod g+w $TMPDIR
chmod a+rw ${PWD}
Assuming that ${PWD} is in fact the temporary
/var/lib/condor/execute/dir_*
has no effect on the error even though it does change the permissions:
drwxrw-rw-. 2 390870428 390800513 202 Oct 29 22:48 .
But still the error persists.
It is rather strange... and the error does not occur on a the Mac when using
docker run â
Any idea?
JYS
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of htcondor-users@xxxxxxxxxxx <htcondor-users@xxxxxxxxxxx>
Sent: Friday, October 29, 2021 3:53 PM To: htcondor-users@xxxxxxxxxxx <htcondor-users@xxxxxxxxxxx> Cc: JEAN-YVES SGRO <jsgro@xxxxxxxx> Subject: Re: [HTCondor-users] Fw: Xvfb | Docker Universe | Can't open display | (but works with docker run)
Hello Dima,
Thank you very much for taking the time to answer so promptly.
I am just an "end user" trying to make things work. (i tried many things before replying...)
I found the Display problem: the following line is necessary to have Xvfb active (on DISPLAY named :99) and can be added to the script or source from
/etc/bashrc
Xvfb :99 -ac &
However, I encounter another problem reported in the error output:
The directory name varies. This time it ends with
23 â but another time it ended with
21 â so it's not predictable.
Lines 135 and 136 from the Xmgrace.pm file say:
135 # create tmpdir
136 _make_tmpdir("_Xmgrace_"); # grace files should be saved for user tweaking
Is there a way to fix this permission issue?
I don't have these issues when running on the Mac: I "pushed" the image onto the hub, and it is available to test. I included the simple
test.pl â file into the /home â directory on the image. In that case there is no need for
-v â to test:
This is what I can do on my Mac from a Terminal:
docker run -it --rm -w /home jysgro/xmgrace-c7
This creates a new container, with interactive Terminal, which will be removed when using
exit â and goes directly into the /home â directory. There is a single file called
test.pl â which can then be executed within the container with:
perl test.pl â
When this is done, the
/home â directory will contain 3 files:
test.pl xmgrace1.agr xmgrace1.png
and that means that the program worked fine.
If there is a temporary directory to create it is not a problem there but it is on HTCondor.
Is there a permission to be given so that temporary directories can be created ?
THank you!
Jean-Yves
From: HTCondor-users <htcondor-users-bounces@xxxxxxxxxxx> on behalf of dmitri.maziuk@xxxxxxxxx <dmitri.maziuk@xxxxxxxxx>
Sent: Friday, October 29, 2021 12:52 PM To: htcondor-users@xxxxxxxxxxx <htcondor-users@xxxxxxxxxxx> Subject: Re: [HTCondor-users] Fw: Xvfb | Docker Universe | Can't open display | (but works with docker run) On 2021-10-29 12:07 PM, JEAN-YVES SGRO via HTCondor-users wrote:
> Problem1: Docker Universeâ does not provide the same environment as docker runâ within the container. > Problem2: Xvfb works fine within a docker runâ container but does not work when running as a Docker Universeâ job. > Question: is there a way to make Xvbfâ work on HTcondor? How does it "work fine" outside of condor? Access to host XVfb is via a socket in /tmp/.X11-unix, are you mounting it with `-v` for the non-condor runs? Or are you firing up Xvfb inside the container? For the former, my guess is you should be able to mount the socket as per https://htcondor.readthedocs.io/en/latest/admin-manual/setting-up-vm-docker-universes.html#the-docker-universe Dima _______________________________________________ HTCondor-users mailing list To unsubscribe, send a message to htcondor-users-request@xxxxxxxxxxx with a subject: Unsubscribe You can also unsubscribe by visiting https://lists.cs.wisc.edu/mailman/listinfo/htcondor-users The archives can be found at: https://lists.cs.wisc.edu/archive/htcondor-users/ |