Hi Philippe,
The built-in --x11 support still has some rough edges to it. Due to a timeout issue with getting xauth set up, I've been patching SLURM with these minor changes:
--- src/common/run_command.c_orig 2018-02-06 15:03:10.000000000 -0800
+++ src/common/run_command.c 2018-02-06 15:26:23.525128464 -0800
@@ -198,7 +198,7 @@
__func__, script_type, max_wait);
break;
}
- new_wait = MIN(new_wait, MAX_POLL_WAIT);
+ new_wait = MIN(new_wait, 10000);
}
i = poll(&fds, 1, new_wait);
if (i == 0) {
--- src/common/x11_util.c.orig 2018-01-19 12:51:10.400391579 -0800
+++ src/common/x11_util.c 2018-01-23 08:00:42.080557637 -0800
@@ -146,7 +146,7 @@
xauth_argv[1] = xstrdup("list");
xauth_argv[2] = xstrdup(getenv("DISPLAY"));
- result = run_command("xauth", XAUTH_PATH, xauth_argv, 100, &status);
+ result = run_command("xauth", XAUTH_PATH, xauth_argv, 10000, &status);
debug2("%s: result from xauth: %s", __func__, result);
The longer wait makes it work almost everywhere on our system. However, I still have a small number of users for whom it fails and we still haven't figured out why.
Best,
jbh