Outdated auto-restart in production machine
I noticed that the GUI doesn't restart by itself after bscesweb04
boots.
In webadmin's crontab:
@reboot /home/webadmin/run_gunicorn.sh
This script (corresponding to https://earth.bsc.es/gitlab/es/autosubmitreact/-/blob/master/deployment/scripts/boot_gunicorn.sh) executes what I think is a legacy version of the API:
source /srv/www/htdocs/AutosubmitAPI/venv27/bin/activate
cd ~
gunicorn --error-logfile ~/rebootGunicorn.txt --timeout 600 -b 0.0.0.0:8081 -w 4 autosubmitAPIwu.testAPI:app --daemon
And it fails because it depends on paramiko (==2.6.0)
. The "actual" GUI depends on paramiko 1.15.0
.
I think that in the crontab we should rather use launch_AS_API.sh
, corresponding to (https://earth.bsc.es/gitlab/es/autosubmitreact/-/blob/master/deployment/scripts/launch_autosubmit_API.sh).
Concerning autosubmitAPIwu
it' only used in's commented out from everywhere but https://earth.bsc.es/gitlab/es/autosubmit_api/-/blob/main/autosubmit_api/autosubmit_legacy/platforms/ecmwf_adaptor.py. But we can discuss it in a separate issue about autosubmit_legacy
, which is only used for certain operations and that should disappear in the long term.