A question came up. If I understand it correctly, all OOD SLURM jobs get submitted from under $HOME/ondemand/something?
Many if not most of HPC centres have a small /home partition they discourage running jobs off, and a large parallel filesystems like /scratch, /project they want users to use insead of /home.
With OOD, is there a way to control the SLURM working directory for JobComposer?
Thanks!
Yes you can change the âdatarootâ by setting the environment variable OOD_DATAROOT to what you like in /etc/ood/config/apps/myjobs/env file.
Though you should note that this environment variable is the same for everyone, so you need something like $USER in it like /some/other/path/$USER so that everyone has their own directory.
Iâll complicate the previous question a little.
How to change the ondemand/other/paths/ directory that is created in /home/$USER/ upon first login to, for example, ood/other/paths/ ?
The situation is as follows.
The following variables are set:
in /etc/ood/config/apps/dashboard/env
OOD_DATAROOT=â/home/$USER/ood/dashboard/â
in /etc/ood/config/apps/myjobs/env
OOD_DATAROOT=â/home/$USER/ood/myjobs/â
Upon successful login, the following directory tree is created automatically
home/$USER/ood/dashboard/batch_connect/cache
When I go to the âJob Composerâ page the following directory and a file are created automatically
home/$USER/ood/myjobs/production.sqlite3
What you need to do is remove the production.sqlite3 file then navigate to the job composer through the navigation bar. That is, do not go to the URL directly, click on the link in the navigation bar.
OK there could be an issue with using different dataroots for the different applications. Can they both use the same OOD_DATAROOT environment variable?
if you meant to use for example OOD_DATAROOT=â/home/$USER/ood/â both in /etc/ood/config/apps/dashboard/env and /etc/ood/config/apps/myjobs/env
it doesnât work, errors in the log are the same
You have to be careful with the order of operations here. This error happens when you navigate to the URL directly without going through the dashboards link, so you have to be careful there.
You should also be restarting the webserver everytime you want the apps to pick up the new configurations. Lastly every time it fails you need to be removing the sqlite3 file.
Sorry, I didnât pay enough attention to your words âThis error happens when you navigate to the URL directly without going through the dashboards linkâ.
The fact is that I did the navigation bar configuration via *.yml file in /etc/ood/config/ondemand.d/
There were lines:
As soon as I returned to the standard menu using â- jobsâ everything worked as it should.
Moreover, the OOD_DATAROOT variables work with different path values:
in /etc/ood/config/apps/dashboard/env
OOD_DATAROOT=â/home/$USER/ood/dashboard/â
in /etc/ood/config/apps/myjobs/env
OOD_DATAROOT=â/home/$USER/ood/myjobs/â
Thanks for the reply! I was worried for a second something may be up, but that makes sense. If you do wish to use a custom navigation bar for the job composer - this is the URL you should use (itâs the same URL as the default navigation bar link).
We discussed this topic in great detail, I have only one last question - is âRestart the webserverâ in the Help menu equals to âsystemctl restart apache2â ?
No. Everyone has their own Per-User-Nginx (PUN) behind apache. Youâre bouncing your own nginx instance when you ârestart the webserverâ. So youâre not affecting other users PUNs or affecting other users by bouncing apache2.