option:OOD_SSH_WRAPPER custom ssh wrapper not picked up

The pr is merged but the new ssh wrapper is not used, the setting is not picked up nd default ssh is used. https://github.com/OSC/ondemand/pull/406

We are on ood 1.7.9

does the option need to be defined at app level in
ood/apps/sys/shell/env --> according to https://osc.github.io/ood-documentation/master/customization.html?highlight=env
ood/apps/sys/shell/.env
ood/apps/sys/dashboard/.env.production
all not picked up

in file /apps/sys/shell/app.js
var host = process.env.DEFAULT_SSHHOST || ‘localhost’;
var cmd = process.env.OOD_SSH_WRAPPER

related issu: Difficulty getting shell app to observe DEFAULT_SSHHOST

thx for the info.

1 Like

Yes the environment variables should be listed here /etc/ood/config/apps/shell/env. Be sure to restart your PUN for things to take affect.

Where you able to get this resolved by using the etc config files?

yes, can be closed, no idea why it was not picked up.
thx

I am sorry for the silly question, but how does one restart the PUNs?

I used to do
sudo touch /var/www/ood/apps/sys/shell/tmp/restart.txt
sudo systemctl try-restart httpd24-httpd.service httpd24-htcacheclean.service
but that would not always pick up the changes in “/etc/ood/config/clusters.d/” and “/var/www/ood/apps/sys/shell/”.

Using “sudo /opt/ood/nginx_stage/sbin/nginx_stage nginx_clean -f” now works for me, but if there is a better and more correct way, I would definiltey like to know.

Thank you,
Natasha

Not silly at all! You have a button up at the top right of the dashboard, under the help tab to ‘restart web server’. That’s it, and it’ll restart just your PUN, no sudo required.

Well, that was simpler than I thought :slight_smile: Out of curiosity, what is the command ran underneath “Restart Web Server”?

It calls the api /nginx/stop?redir=/pun/sys/dashboard/ which in turn calls nginx_stage to stop your PUN, but also gives your browser a 302 redirect so that you end up starting it again.

Thanks for the explanation Jeff!