beaker icon indicating copy to clipboard operation
beaker copied to clipboard

Lustre File Locking

Open crutching opened this issue 6 years ago • 1 comments

Getting following error message trying to lock file before a citation is displayed. We are working on a lustre fs, which i assume is the problem.

Traceback (most recent call last):
  File "~/lustre1/galaxydev/galaxy/lib/galaxy/managers/citations.py", line 149, in to_bibtex
    self.raw_bibtex = self.doi_cache.get_bibtex(self.__doi)
  File "~/lustre1/galaxydev/galaxy/lib/galaxy/managers/citations.py", line 55, in get_bibtex
    return self._cache.get(key=doi, createfunc=createfunc)
  File "/galaxy/.venv/local/lib/python2.7/site-packages/beaker/cache.py", line 317, in get
    return self._get_value(key, **kw).get_value()
  File "/galaxy/.venv/local/lib/python2.7/site-packages/beaker/container.py", line 330, in get_value
    self.namespace.acquire_read_lock()
  File "/galaxy/.venv/local/lib/python2.7/site-packages/beaker/container.py", line 204, in acquire_read_lock
    self.access_lock.acquire_read_lock()
  File "/galaxy/.venv/local/lib/python2.7/site-packages/beaker/synchronization.py", line 154, in acquire_read_lock
    x = self.do_acquire_read_lock(wait)
  File "/galaxy/.venv/local/lib/python2.7/site-packages/beaker/synchronization.py", line 251, in do_acquire_read_lock
    fcntl.flock(filedescriptor, fcntl.LOCK_SH)
IOError: [Errno 38] Function not implemented```

crutching avatar May 17 '18 17:05 crutching

Are you sure you are mounting the file system with the flock option? Should be needed to enable file locks on lustre.

amol- avatar May 17 '18 21:05 amol-