Feature #5471
closed
Restrict reference session research and creation to a specified path
Added by Anchi Cheng almost 7 years ago.
Updated almost 7 years ago.
Description
It makes if possible to have reference sessions saved in a separate disk. Useful when there are disk failures.
With the old implementation, this is always the same as Image path head in leginon.cfg
- Tracker changed from Bug to Feature
- Subject changed from when file system hangs, getReference session also fails regardless of session image path change to Restrict reference session research and creation to a specified path
- Description updated (diff)
The original access validation in researchReference already take care of access problem. Therefore, the restriction applys only when a specific path is given in leginon.cfg
Add the following config in leginon.cfg if this restriction is desirable:
[References]
path: /your_specific_path_head_before_sessionname
- Status changed from Assigned to Closed
Add also a way for myamiweb redux server to avoid serving a path. Needed this because some users have imageviewer opens automatically when opening their web browser, causing it to try to load an old session that is not accessible and freezes the system.
To use, uncommand or add the constant definitiion
define('REDUX_AVOID_PATH',"/your_path_to_avoid");
tested locally.
- Related to Feature #5923: add data type to batch_leginon_path_change.py to move references added
Also available in: Atom
PDF