Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_gdbm.error: [Errno 11] Resource temporarily unavailable: '/home/runner/.cache/wetterdienst/dogpile/metaindex.dbm' #491

Closed
amotl opened this issue Aug 10, 2021 · 1 comment · Fixed by #567
Labels
bug Something isn't working

Comments

@amotl
Copy link
Member

amotl commented Aug 10, 2021

Hi there,

this is just for the records. When turning on parallel testing using pytest-xdist on CI on behalf of #431, the test suite croaks [1] with:

==================================== ERRORS ====================================
______________________ ERROR collecting tests/test_api.py ______________________
tests/test_api.py:6: in <module>
    from wetterdienst import Wetterdienst
wetterdienst/__init__.py:7: in <module>
    from wetterdienst.api import Wetterdienst
wetterdienst/api.py:9: in <module>
    from wetterdienst.provider.dwd.forecast import DwdMosmixRequest
wetterdienst/provider/dwd/forecast/__init__.py:4: in <module>
    from wetterdienst.provider.dwd.forecast.api import DwdMosmixRequest, DwdMosmixValues
wetterdienst/provider/dwd/forecast/api.py:27: in <module>
    from wetterdienst.provider.dwd.forecast.access import KMLReader
wetterdienst/provider/dwd/forecast/access.py:18: in <module>
    from wetterdienst.util.cache import CacheExpiry
wetterdienst/util/cache.py:72: in <module>
    metaindex_cache = make_region(
.venv/lib/python3.9/site-packages/dogpile/cache/region.py:491: in configure
    self.backend = backend_cls(arguments or {})
.venv/lib/python3.9/site-packages/dogpile/cache/backends/file.py:160: in __init__
    self._init_dbm_file()
.venv/lib/python3.9/site-packages/dogpile/cache/backends/file.py:183: in _init_dbm_file
    fh = dbm.open(self.filename, "c")
/opt/hostedtoolcache/Python/3.9.6/x64/lib/python3.9/dbm/__init__.py:95: in open
    return mod.open(file, flag, mode)
E   _gdbm.error: [Errno 11] Resource temporarily unavailable: '/home/runner/.cache/wetterdienst/dogpile/metaindex.dbm'

The exception is the same to what has been noted at [2].

With kind regards,
Andreas.

[1] https://github.com/earthobservations/wetterdienst/runs/3274094097#step:8:37
[2] https://github.com/earthobservations/wetterdienst/blob/v0.20.3/docs/usage/explorer.rst#known-bugs

@amotl
Copy link
Member Author

amotl commented Aug 10, 2021

This is another reason to get rid of the dbmfile-based dogpile cache completely (#243). Currently, even with the patch from #431, Wetterdienst will still use a hybrid of dogpile and FSSPEC, see #431 (comment).

@gutzbenj gutzbenj added the bug Something isn't working label Sep 16, 2021
@gutzbenj gutzbenj linked a pull request Jan 28, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants