Find what is wrong with a build or a module¶
When a build stops before it starts, or a module you installed does not load, two commands say why.
eb-local doctor checks, one line each, what would stop a build, eb-local eb or a module load, and eb-local list shows the CPU targets each module is built for.
These steps run them and read what they say.
Before you start¶
A shell where the problem happens: inside the allocation for a build, and on the node type where it does not load for a module.
Find what stops a build or a load¶
Run
doctorin that shell. In this one, an earlier session leftEESSI_PROJECT_INSTALLandLD_LIBRARY_PATHset:eb-local doctorok eb-local 3.6.0 ok site file /usr/local/bin/config.toml ok builds use the allocation's own xfs mount /local/%u.%j ok installs go to /home/alice/eessi: a user install, prefix from default warn EESSI_PROJECT_INSTALL=/path/to/project/eessi is set in this shell; eb-local builds clear it, but EESSI-extend or eb run by hand would use it ok `eb-local eb` sources /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash warn EESSI_PROJECT_INSTALL=/path/to/project/eessi is not a directory, so EESSI-extend refuses to load and `eb-local eb` stops; the project owner creates it with the project group and chmod 2770 warn LD_LIBRARY_PATH is set; programs built with eb-local dev do not need it, and it can mix host libraries into EESSI's ok Slurm job 21: build space /local/alice.21 info EESSI is not loaded in this shell; eval "$(eb-local env)" loads it with your modules info eessi-arch-guard is not on PATH; builds, env and dev load EESSI for the target EESSI detects warn your modules are not on MODULEPATH in this shell; eval "$(eb-local env)" info no module command in this shell; builds source /cvmfs/software.eessi.io/versions/2026.06/init/lmod/bash ok rtrash is on PATH: clean and uninstall move files to the trash Nothing above stops a build.
Each line says
ok,info,warnorFAIL, and awarnorFAILline says what to change.doctorchanges nothing, and exits 1 when a line saysFAIL(orwarnwith--strict). With a site file, what stops a build is aFAIL, and what stops onlyeb-local ebis awarn; without one, builds cannot run, so what stopseb-local ebis theFAIL. HereEESSI_PROJECT_INSTALLwould send EESSI-extend, loaded by hand or byeb-local eb, to a project directory that is not there;unset EESSI_PROJECT_INSTALL LD_LIBRARY_PATHclears both warnings. A site that preloads XALT’slibxalt_init.sofor every login gets aninfoline forLD_PRELOADinstead of awarn: builds leave it out, and--strictdoes not fail on it.With EESSI loaded, see which CPU targets the module is built for:
eval "$(eb-local env)" eb-local list pigz
/home/alice/eessi: 1 module(s) for 1 CPU target(s) MODULE sapphirerapids* pigz/2.8-GCCcore-15.2.0 x Every module listed is built for this node's target, x86_64/intel/sapphirerapids (*).
Each CPU target has its own tree, so a module built on one node type is not there on another. Each tree has a column,
xwhere the module is built for it, and*marks this node’s target. When this node’s target lacks modules, the last lines name them:Not built for this node's target, TARGET (*): MODULES. Build them in an allocation on this node type; each target needs its own build.
When nothing is built for it, the last line is
Nothing is built for this node's target, TARGET, yet; build in an allocation on this node type.eb-local listalone shows every module you installed.Load the module by hand, with its full name, to see the reason Lmod gives:
module load pigz/2.8-GCCcore-15.2.0For a module that is not on
MODULEPATH, herepigz/9.9, Lmod says:Lmod has detected the following error: The following module(s) are unknown: "pigz/9.9"
A build that cannot load a module prints Lmod’s reason itself, indented below the module’s name, keeps its workspace, and exits 1:
eb-local: could not load EESSI/2099.01: Lmod has detected the following error: The following module(s) are unknown: "EESSI/2099.01"
Here
EB_LOCAL_STACK_MODULEnamed an EESSI version this host does not have;eb-local configshows each setting and where it was set.Where the shell has Lmod’s
modulecommand and no directory onMODULEPATHholds the EESSI module, a build addsinit/modulesunderEESSI_CVMFS_REPO; where that does not hold it either, a build cannot loadEESSI/2026.06; with nothing onMODULEPATH, Lmod’s reason startsLmod Warning: MODULEPATH is undefined.eb-local doctornames the directory to add:eb-local doctorFAIL no directory on MODULEPATH in this shell holds stack.module, EESSI/2026.06 [default], so builds, env and dev cannot load it; module use /cvmfs/software.eessi.io/init/modules adds EESSI's module directoryFor a build that stops before it starts, read its refusal: the first line says what was refused and why, and the next what to change, with the setting and where it was set. Refusals lists each one.
eb-local --explain RECIPEprints the checks a build makes, and the script it runs.
When you ask the site for help, include the output of eb-local doctor and of eb-local config; neither shows the value of a secret.
Check the EESSI client and module order¶
Before a site build, run the standalone, non-mutating readiness probe eb-local-readiness.
A release ships the eb-local binary only; the script is in the repository on main, not in the release archive.
From a checkout, run it from the repository root:
./eb-local-readiness --prefix /opt/site/eessi
Without a checkout, copy the script from main onto PATH.
The commit pinned here matches published main:
curl -fsSL -o ~/.local/bin/eb-local-readiness \
https://raw.githubusercontent.com/stackhands/eb-local/8cc1d02b38c163accd7973d1ac8e8ab12e013427/eb-local-readiness
chmod 0755 ~/.local/bin/eb-local-readiness
eb-local-readiness --prefix /opt/site/eessi
The repository defaults to EESSI_CVMFS_REPO, or /cvmfs/software.eessi.io.
The prefix defaults to EB_LOCAL_PREFIX, EESSI_SITE_SOFTWARE_PREFIX, EESSI_PROJECT_INSTALL or EESSI_USER_INSTALL, in that order.
When none of these is set and --prefix is omitted, the probe prints an info line and skips the MODULEPATH precedence check (exit 0 unless the repository itself is missing).
A ready shell reports that the repository is mounted with CVMFS and that local modules precede EESSI on MODULEPATH.
The probe exits 1 when the repository is missing, or (with a prefix selected) no local module directory is on MODULEPATH or upstream EESSI modules occur first.
It warns but exits 0 for another filesystem because a site may deliberately expose CVMFS through a bind mount.
Use --mountinfo FILE to check a saved node mount table or a container’s view.
See Readiness probe for every option and exit status.
A path from outside the prefix¶
A value left in the shell can point a build at the host’s Perl, Python, R, CMake or pkg-config tree, or at a compiler wrapper that is not EESSI’s.
eb-local doctor names each entry of PERL5LIB, PYTHONPATH, R_LIBS*, JULIA_LOAD_PATH, JULIA_DEPOT_PATH, NODE_PATH, CMAKE_PREFIX_PATH and PKG_CONFIG_PATH, and each compiler-wrapper variable, including a CARGO_TARGET_*_LINKER and R_MAKEVARS_USER or R_MAKEVARS_SITE, that resolves outside the EESSI repository, your prefix and doctor.approved_prefixes.
It also names the timezone /etc/localtime resolves to, a bind mount of that file, and a host library directory a container runtime injected.
eb-local doctor
warn PERL5LIB entry /opt/host/perl5 is outside the approved prefixes; a build keeps it until build.clear_foreign_prefixes is set
info timezone target /usr/share/zoneinfo/UTC
info no runtime-injected host library directory was found
The build keeps the entry.
Set build.clear_foreign_prefixes = true in the configuration, or EB_LOCAL_BUILD_CLEAR_FOREIGN_PREFIXES=true for one build, and doctor then says the build drops it.
Neither is set unless you set it.
The CernVM-FS client¶
eb-local doctor --cvmfs checks the repository this shell would read.
It reports the mount, the HTTP proxy in force and the file or variable that set it, and the result of cvmfs_config probe and cvmfs_config chksetup when that program is on PATH.
A build does not run this check.
eb-local doctor --cvmfs
ok CernVM-FS repository /cvmfs/software.eessi.io is mounted
info CernVM-FS HTTP proxy mode is direct, from /etc/cvmfs/default.local
ok cvmfs_config probe software.eessi.io exited 0
ok cvmfs_config chksetup exited 0
A stale mount, whose kernel status is transport endpoint is not connected, is a FAIL, and the probe is not run.
--cvmfs-parallel N, or doctor.cvmfs_parallel, reads repository metadata from N tasks, and only inside an allocation.
It uses srun when that is on PATH.
An MPI transport¶
eb-local doctor --mpi reports fi_info, ucx_info and any Slurm CPU or memory bind.
Inside an allocation it runs a two-rank hello for each transport in doctor.mpi_transports.
A build does not set the variables that hello uses.
eb-local doctor --mpi
info fi_info: provider: tcp
info ucx_info: # UCT version=1.16.0
info no Slurm CPU or memory bind is set
ok MPI ofi hello size 2 on cpus 0,1 with OMPI_MCA_pml=cm OMPI_MCA_mtl=ofi
Ranks that share one CPU are a warning. Outside an allocation the hello is not compiled.
Check that it worked¶
eb-local doctor in the same shell ends with this line, and exits 0:
Nothing above stops a build.
Without a site file, it ends with Nothing above stops `eb-local eb`; `eb-local RECIPE` needs a site file. instead.
If it fails¶
Message |
Cause |
What to do |
|---|---|---|
|
A line says |
Do what that line says, then run |
|
The module is not on |
Run |
|
No module under this prefix matches the name. |
Check the prefix with |