Cctbx.xfel GUI/Troubleshooting: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
== A status light is red == | == A status light is red == | ||
A red light means that | A red light means that background task failed and stopped; the error is in the terminal. Common causes: the database connection dropped (the server was restarted or the job running it ended), the queuing system command failed (<code>squeue</code> or <code>bjobs</code> not on the path), or a run block refers to a run that no longer exists. Fix the cause, then restart it: toggle '''Watch for new runs''' or '''Auto-submit jobs''' off and on, or switch away from and back to the tab for the tab-specific sentinels. If the database itself is gone, restart the GUI. | ||
== The Calib Worker light is red == | |||
A FEE or ebeam calibration failed; the message is in the terminal. Correct the inputs and press ''Run Calibration'' again. Common causes: a scan run that is not in the run database, a wrong experiment name, runs with no spectrometer data, or runs not yet in any run block (the ebeam comparison takes the detector address from the block). | |||
== No runs appear == | == No runs appear == | ||
| Line 21: | Line 24: | ||
== The GUI asks me to confirm "about N jobs" == | == The GUI asks me to confirm "about N jobs" == | ||
Activating a trial or dataset, saving a run block on an active trial, or saving an active dataset counts the jobs the job sentinel would then submit and asks when the total reaches <code>job_count_warning</code> (50 by default). The count by stage tells you what is about to happen: a replaced run block reprocesses all of its runs, a changed early stage re-runs every later stage, and an open run block on a long experiment covers every run collected since its start. Answer ''No'' to go back and narrow the selection, or raise or disable the setting in the project file if the numbers are routine for your experiment. | Activating a trial or dataset, saving a run block on an active trial, or saving an active dataset counts the jobs the job sentinel would then submit and asks when the total reaches <code>job_count_warning</code> (50 by default). The count by stage tells you what is about to happen: a replaced run block reprocesses all of its runs, a changed early stage re-runs every later stage, and an open run block on a long experiment covers every run collected since its start. Answer ''No'' to go back and narrow the selection, or raise or disable the setting in the project file if the numbers are routine for your experiment. | ||
== The run block dialog warns about the detector address == | |||
On saving, an address that names none of Jungfrau, Rayonix, ePix or CSPAD is queried, because no image format would read it. Pick an alias from the drop-down, or type the full psana address if the detector is one of those under another name. Saving anyway is allowed, for example for a custom format. | |||
== A job fails immediately (S_FAIL or EXIT) == | == A job fails immediately (S_FAIL or EXIT) == | ||
| Line 31: | Line 37: | ||
== The Run Stats plot is empty == | == The Run Stats plot is empty == | ||
A trial must be selected, and runs ticked (or ''Auto plot last five runs'' pressed). Only runs whose jobs have logged results show up; a run whose job is still pending has nothing to plot yet. If ''Auto update'' is unticked the plot does not refresh. | A trial must be selected, and runs ticked (or ''Auto plot last five runs'' pressed). Only runs whose jobs have logged results show up; a run whose job is still pending has nothing to plot yet. If ''Auto update'' is unticked the plot does not refresh. In the per-run view, gaps in the lines and a "still to query" note mean the runs are being read in; wait for the next refreshes. If the Run Stats light is red, a plot or query failed and the message is in the terminal; switch away from the tab and back to restart it. | ||
== The cosym page says there is no plot == | == The cosym page says there is no plot == | ||
Latest revision as of 00:08, 12 November 2026
What to check when something does not behave. The GUI prints errors and progress to the terminal it was started from, so that terminal is always the first place to look.
Back to cctbx.xfel GUI.
A status light is red
A red light means that background task failed and stopped; the error is in the terminal. Common causes: the database connection dropped (the server was restarted or the job running it ended), the queuing system command failed (squeue or bjobs not on the path), or a run block refers to a run that no longer exists. Fix the cause, then restart it: toggle Watch for new runs or Auto-submit jobs off and on, or switch away from and back to the tab for the tab-specific sentinels. If the database itself is gone, restart the GUI.
The Calib Worker light is red
A FEE or ebeam calibration failed; the message is in the terminal. Correct the inputs and press Run Calibration again. Common causes: a scan run that is not in the run database, a wrong experiment name, runs with no spectrometer data, or runs not yet in any run block (the ebeam comparison takes the detector address from the block).
No runs appear
- Watch for new runs must be on (the Run Sentinel light green).
- LCLS: check the experiment name and the XTC stream location in the credentials dialog, and that the run database web service is reachable from this machine.
- Standalone: check the folder, the template (it is a glob, so
*.h5, not.h5), and the completion criteria; a file younger than Minimum time since last modified or smaller than Minimum file size is not picked up yet. Folders need the status file or the required number of files.
Jobs are not submitted
- Auto-submit jobs must be on, the trial must be active, and it must have a run block containing the runs.
- In local mode only one job runs at a time; the next is submitted when it finishes.
mp.max_queuedin the settings file limits the number of queued and running jobs.- For datasets: the dataset must be active and must have at least one tag; all its tags must be in use on the trial's runs; the runs' indexing jobs must be
DONE; and each stage waits for the previous stage of the same run to beDONE. A failed stage (EXIT) blocks the rest of the pipeline for that run until it is restarted. - Watch the terminal: the job sentinel prints what it submits and why it is waiting.
The GUI asks me to confirm "about N jobs"
Activating a trial or dataset, saving a run block on an active trial, or saving an active dataset counts the jobs the job sentinel would then submit and asks when the total reaches job_count_warning (50 by default). The count by stage tells you what is about to happen: a replaced run block reprocesses all of its runs, a changed early stage re-runs every later stage, and an open run block on a long experiment covers every run collected since its start. Answer No to go back and narrow the selection, or raise or disable the setting in the project file if the numbers are routine for your experiment.
The run block dialog warns about the detector address
On saving, an address that names none of Jungfrau, Rayonix, ePix or CSPAD is queried, because no image format would read it. Pick an alias from the drop-down, or type the full psana address if the detector is one of those under another name. Saving anyway is allowed, for example for a custom format.
A job fails immediately (S_FAIL or EXIT)
Open the job's log: <output folder>/r<run>/<trial>_rg<block>/stdout/log.out for indexing jobs, and the queue's error file next to it. Typical causes are a wrong detector address, a mask or reference geometry file that the compute nodes cannot read, an environment script that does not set up cctbx, or a PHIL parameter that the processing program rejects. After fixing, use Restart job in the Jobs tab (or, for a run block change, let the new block's jobs run).
Images index poorly
- Check the unit cell and space group in the trial, and the detector distance and beam centre in the run block (an average image from the Runs tab helps with the latter).
- In the Run Stats tab, many grey points high in the strong spots panel are hits that did not index: look at some of those images.
- Too many or too few spots: adjust the spot finding thresholds in a new trial and compare.
The Run Stats plot is empty
A trial must be selected, and runs ticked (or Auto plot last five runs pressed). Only runs whose jobs have logged results show up; a run whose job is still pending has nothing to plot yet. If Auto update is unticked the plot does not refresh. In the per-run view, gaps in the lines and a "still to query" note mean the runs are being read in; wait for the next refreshes. If the Run Stats light is red, a plot or query failed and the message is in the terminal; switch away from the tab and back to restart it.
The cosym page says there is no plot
The embedding plot is only written when the merging stage runs modify_cosym, and only for a single selected version. Check the merging stage's step list under Edit PHIL and that the merging job is DONE.
The drift page says there is no ensemble refinement output
The drift plot reads the refined experiments written by the ensemble refinement stage, so the dataset needs that stage and its jobs must have run. A version merged before the stage was added has nothing to read. If the line above the plot says some chunks were skipped, the reason given is for the first one; a chunk still being written is the usual cause and clears on a later refresh.
The dataset dialog refuses two identical stages
Two consecutive stages of the same type with the same parameters (two merging stages, say) would be the same task and compute the same thing twice. Change one of them, or remove the extra stage.
The GUI refuses to load a project
While the GUI is connected, a project with a different database connection or experiment tag cannot be loaded. Quit and start the GUI again; the login dialog can load any project.
Resetting an experiment
To start again with an empty database but the same experiment tag, tick Delete and regenerate all tables in the credentials dialog at login. This erases every run, trial, job and logged result for that tag (the files on disk are untouched, so delete or move the output folder as well if you want a clean slate). Using a new experiment tag instead keeps the old records available.
Getting help
The About entry in the Help menu lists the authors. Questions and bug reports go to the cctbx.xfel developers; include the terminal output and the relevant job log.