problems with .lock file remaining after normal autosubmit termination
When creating a new experiment and something goes wrong (either a problem with downloading from the git repository or missing conf file in this case), the lock file remains and even though there is no autosubmit process running.
Here is what happened in my case:
etourign@bscearth346:/esnas/autosubmit/a09s> autosubmit create a09s
Preparing .lock file to avoid multiple instances with same expid.
Checking configuration files...
autosubmit_a09s.conf OK
platforms_a09s.conf OK
[WARNING] No remote platforms configured
jobs_a09s.conf OK
expdef_a09s.conf OK
Configuration files OK
Cloning v3.2.0c https://earth.bsc.es/gitlab/es/auto-ecearth3.git into /esnas/autosubmit/a09s/proj
Cloning into 'auto-ecearth3'...
ksshaskpass(25785)/kdeui (Wallet): The kwalletd service has been disabled
[...]
Cloning into 'specs2cmor'...
remote: Counting objects: 3361, done.
remote: Compressing objects: 100% (1169/1169), done.
remote: Total 3361 (delta 2461), reused 2787 (delta 2120)
Receiving objects: 100% (3361/3361), 67.92 MiB | 14.02 MiB/s, done.
Resolving deltas: 100% (2461/2461), done.
Checking connectivity... done.
[CRITICAL] Unhandled exception on Autosubmit: [Errno 2] No such file or directory: '/esnas/autosubmit/a09s/proj/auto-ecearth3/templates/common/jobs.conf'
Traceback (most recent call last):
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/autosubmit-3.6.0-py2.7.egg/autosubmit/autosubmit.py", line 304, in parse_args
return Autosubmit.create(args.expid, args.noplot, args.hide, args.output)
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/autosubmit-3.6.0-py2.7.egg/autosubmit/autosubmit.py", line 1468, in create
Autosubmit._create_project_associated_conf(as_conf, False, update_job)
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/autosubmit-3.6.0-py2.7.egg/autosubmit/autosubmit.py", line 1420, in _create_project_associated_conf
jobs_destiny)
File "/shared/earth/software/Python/2.7.9-foss-2015a/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/esnas/autosubmit/a09s/proj/auto-ecearth3/templates/common/jobs.conf'
[fix the issue]
etourign@bscearth346:/esnas/autosubmit/a09s> autosubmit create a09s
[CRITICAL] Unhandled exception on Autosubmit: [Errno 11] Resource temporarily unavailable
Traceback (most recent call last):
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/autosubmit-3.6.0-py2.7.egg/autosubmit/autosubmit.py", line 304, in parse_args
return Autosubmit.create(args.expid, args.noplot, args.hide, args.output)
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/autosubmit-3.6.0-py2.7.egg/autosubmit/autosubmit.py", line 1452, in create
with portalocker.Lock(os.path.join(tmp_path, 'autosubmit.lock'), timeout=1):
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/portalocker-0.5.7-py2.7.egg/portalocker/utils.py", line 188, in __enter__
self.fh = self.acquire()
File "/shared/earth/software/autosubmit/3.6.0-foss-2015a-Python-2.7.9/lib/python2.7/site-packages/portalocker-0.5.7-py2.7.egg/portalocker/utils.py", line 139, in acquire
raise AlreadyLocked(exception)
AlreadyLocked: [Errno 11] Resource temporarily unavailable
If I delete tmp/autosubmit.lock then I can continue