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
[APP SUBMITTED]: dbm.error: db type could not be determined #6804
Comments
You switched from py2 to py3. Remove .dbm files in cache. |
That worked, thank you :) |
INFOPython Version: ERROR2019-07-17 10:07:21 ERROR TORNADO :: [74c3f12] Uncaught exception in APIv2: error('db type could not be determined') Request: GET /api/v2/series/tvdb321285?detailed=false&fetch=true (192.168.23.50) Traceback (most recent call last): File "D:\Programs\Medusa\Medusa\ext\tornado\web.py", line 1592, in _execute result = yield result File "D:\Programs\Medusa\Medusa\ext\tornado\gen.py", line 1133, in run value = future.result() File "D:\Programs\Medusa\Medusa\ext\tornado\gen.py", line 1141, in run yielded = self.gen.throw(*exc_info) File "D:\Programs\Medusa\Medusa\medusa\server\api\v2\base.py", line 64, in async_call content = yield IOLoop.current().run_in_executor(executor, prepared) File "D:\Programs\Medusa\Medusa\ext\tornado\gen.py", line 1133, in run value = future.result() File "C:\Program Files\Python37\lib\concurrent\futures\thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "D:\Programs\Medusa\Medusa\medusa\server\api\v2\series.py", line 69, in get data = series.to_json(detailed=detailed, fetch=fetch) File "D:\Programs\Medusa\Medusa\medusa\tv\series.py", line 2141, in to_json data['config']['release']['allgroups'] = get_release_groups_for_anime(self.name) File "", line 2, in get_release_groups_for_anime File "D:\Programs\Medusa\Medusa\ext\dogpile\cache\region.py", line 1272, in get_or_create_for_user_func should_cache_fn, (arg, kw)) File "D:\Programs\Medusa\Medusa\ext\dogpile\cache\region.py", line 879, in get_or_create async_creator) as value: File "D:\Programs\Medusa\Medusa\ext\dogpile\lock.py", line 186, in __enter__ return self._enter() File "D:\Programs\Medusa\Medusa\ext\dogpile\lock.py", line 86, in _enter value = value_fn() File "D:\Programs\Medusa\Medusa\ext\dogpile\cache\region.py", line 826, in get_value value = self.backend.get(key) File "D:\Programs\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 220, in get with self._dbm_file(False) as dbm: File "C:\Program Files\Python37\lib\contextlib.py", line 112, in __enter__ return next(self.gen) File "D:\Programs\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 215, in _dbm_file "w" if write else "r") File "C:\Program Files\Python37\lib\dbm\__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
Yup, same for me. Switching to Python 3 and removing the .dbm files resolved the issue. |
INFOPython Version: ERROR2019-08-19 19:33:57 ERROR TORNADO :: [74c3f12] Uncaught exception in APIv2: error('db type could not be determined',) Request: GET /sickrage/api/v2/series/tvdb84576?detailed=false&fetch=true (127.0.0.1) Traceback (most recent call last): File "/opt/medusa/ext/tornado/web.py", line 1592, in _execute result = yield result File "/opt/medusa/ext/tornado/gen.py", line 1133, in run value = future.result() File "/opt/medusa/ext/tornado/gen.py", line 1141, in run yielded = self.gen.throw(*exc_info) File "/opt/medusa/medusa/server/api/v2/base.py", line 64, in async_call content = yield IOLoop.current().run_in_executor(executor, prepared) File "/opt/medusa/ext/tornado/gen.py", line 1133, in run value = future.result() File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run result = self.fn(*self.args, **self.kwargs) File "/opt/medusa/medusa/server/api/v2/series.py", line 69, in get data = series.to_json(detailed=detailed, fetch=fetch) File "/opt/medusa/medusa/tv/series.py", line 2141, in to_json data['config']['release']['allgroups'] = get_release_groups_for_anime(self.name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1272, in get_or_create_for_user_func should_cache_fn, (arg, kw)) File "/opt/medusa/ext/dogpile/cache/region.py", line 879, in get_or_create async_creator) as value: File "/opt/medusa/ext/dogpile/lock.py", line 186, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 86, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 826, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 220, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 215, in _dbm_file "w" if write else "r") File "/usr/lib/python3.6/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2019-12-10 17:55:28 ERROR Thread-104 :: [8b7f433] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/Medusa/medusa/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/opt/Medusa/medusa/server/web/home/handler.py", line 1971, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/Medusa/ext/dogpile/cache/region.py", line 1272, in get_or_create_for_user_func should_cache_fn, (arg, kw)) File "/opt/Medusa/ext/dogpile/cache/region.py", line 879, in get_or_create async_creator) as value: File "/opt/Medusa/ext/dogpile/lock.py", line 186, in __enter__ return self._enter() File "/opt/Medusa/ext/dogpile/lock.py", line 86, in _enter value = value_fn() File "/opt/Medusa/ext/dogpile/cache/region.py", line 826, in get_value value = self.backend.get(key) File "/opt/Medusa/ext/dogpile/cache/backends/file.py", line 220, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__ return next(self.gen) File "/opt/Medusa/ext/dogpile/cache/backends/file.py", line 215, in _dbm_file "w" if write else "r") File "/usr/lib/python3.5/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-01-03 17:06:40 ERROR Thread-56 :: [d0c136d] Exception generated: db type could not be determined Traceback (most recent call last): File "/var/www/medusa/medusa/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/var/www/medusa/medusa/server/web/home/handler.py", line 1971, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/var/www/medusa/ext/dogpile/cache/region.py", line 1272, in get_or_create_for_user_func should_cache_fn, (arg, kw)) File "/var/www/medusa/ext/dogpile/cache/region.py", line 879, in get_or_create async_creator) as value: File "/var/www/medusa/ext/dogpile/lock.py", line 186, in __enter__ return self._enter() File "/var/www/medusa/ext/dogpile/lock.py", line 86, in _enter value = value_fn() File "/var/www/medusa/ext/dogpile/cache/region.py", line 826, in get_value value = self.backend.get(key) File "/var/www/medusa/ext/dogpile/cache/backends/file.py", line 220, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.5/contextlib.py", line 59, in __enter__ return next(self.gen) File "/var/www/medusa/ext/dogpile/cache/backends/file.py", line 215, in _dbm_file "w" if write else "r") File "/usr/lib/python3.5/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
Stop medusa |
INFOPython Version: ERROR2020-04-15 09:31:20 ERROR Thread_32 :: [8f6b666] Exception generated: db type could not be determined Traceback (most recent call last): File "C:\Medusa\Medusa\medusa\server\web\core\base.py", line 251, in async_call result = function(**kwargs) File "C:\Medusa\Medusa\medusa\server\web\home\handler.py", line 1971, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 962, in get_or_create async_creator, File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 187, in __enter__ return self._enter() File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 87, in _enter value = value_fn() File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 902, in get_value value = self.backend.get(key) File "C:\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 223, in get with self._dbm_file(False) as dbm: File "C:\Medusa\Python\lib\contextlib.py", line 112, in __enter__ return next(self.gen) File "C:\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "C:\Medusa\Python\lib\dbm\__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
My fault. Just found the fix above... |
INFOPython Version: ERROR2020-07-03 15:37:42 ERROR Thread_18 :: [d9c31da] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/**********/**********/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/opt/**********/**********/server/web/home/handler.py", line 1971, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/**********/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/**********/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/**********/ext/dogpile/lock.py", line 187, in __enter__ return self._enter() File "/opt/**********/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/**********/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/**********/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__ return next(self.gen) File "/opt/**********/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/lib/python3.6/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-06 21:43:12 ERROR Thread_8 :: [b352bb6] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/handler.py", line 1807, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/medusa/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/lib/python3.7/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-07 19:01:38 ERROR Thread_3 :: [b352bb6] Exception generated: db type could not be determined Traceback (most recent call last): File "C:\Medusa\Medusa\medusa\server\web\core\base.py", line 251, in async_call result = function(**kwargs) File "C:\Medusa\Medusa\medusa\server\web\home\handler.py", line 1807, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 962, in get_or_create async_creator, File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 185, in __enter__ return self._enter() File "C:\Medusa\Medusa\ext\dogpile\lock.py", line 87, in _enter value = value_fn() File "C:\Medusa\Medusa\ext\dogpile\cache\region.py", line 902, in get_value value = self.backend.get(key) File "C:\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 223, in get with self._dbm_file(False) as dbm: File "C:\Medusa\Python\lib\contextlib.py", line 112, in __enter__ return next(self.gen) File "C:\Medusa\Medusa\ext\dogpile\cache\backends\file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "C:\Medusa\Python\lib\dbm\__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-09 18:53:26 ERROR Thread_5 :: [b352bb6] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/handler.py", line 1807, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/medusa/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/lib/python3.7/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-12 17:48:28 ERROR Thread_12 :: [b352bb6] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 251, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/handler.py", line 1807, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/medusa/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/lib/python3.7/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-11-08 18:59:08 ERROR Thread_0 :: [552f119] Exception generated: db type could not be determined Traceback (most recent call last): File "/home/hd29/**********/apps/medusa/medusa/server/web/core/base.py", line 252, in async_call result = function(**kwargs) File "/home/hd29/**********/apps/medusa/medusa/server/web/home/handler.py", line 1640, in manualSearchSubtitles found_subtitles = subtitles.list_subtitles(tv_episode=ep_obj, video_path=video_path) File "/home/hd29/**********/apps/medusa/medusa/subtitles.py", line 342, in list_subtitles cache.set(subtitle_key.format(id=subtitle.id).encode('utf-8'), subtitle) File "/home/hd29/**********/apps/medusa/ext/dogpile/cache/region.py", line 1112, in set self.backend.set(key, self._value(value)) File "/home/hd29/**********/apps/medusa/ext/dogpile/cache/backends/file.py", line 240, in set with self._dbm_file(True) as dbm: File "/usr/lib/python3.6/contextlib.py", line 81, in __enter__ return next(self.gen) File "/home/hd29/**********/apps/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/lib/python3.6/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-12-09 03:19:28 ERROR Thread_1 :: [ce68da5] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 252, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/handler.py", line 1792, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/medusa/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/local/lib/python3.7/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-12-15 03:05:25 ERROR Thread_0 :: [ce68da5] Exception generated: db type could not be determined Traceback (most recent call last): File "/opt/medusa/medusa/server/web/core/base.py", line 252, in async_call result = function(**kwargs) File "/opt/medusa/medusa/server/web/home/handler.py", line 1792, in fetch_releasegroups groups = get_release_groups_for_anime(series_name) File "", line 2, in get_release_groups_for_anime File "/opt/medusa/ext/dogpile/cache/region.py", line 1360, in get_or_create_for_user_func key, user_func, timeout, should_cache_fn, (arg, kw) File "/opt/medusa/ext/dogpile/cache/region.py", line 962, in get_or_create async_creator, File "/opt/medusa/ext/dogpile/lock.py", line 185, in __enter__ return self._enter() File "/opt/medusa/ext/dogpile/lock.py", line 87, in _enter value = value_fn() File "/opt/medusa/ext/dogpile/cache/region.py", line 902, in get_value value = self.backend.get(key) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 223, in get with self._dbm_file(False) as dbm: File "/usr/local/lib/python3.7/contextlib.py", line 112, in __enter__ return next(self.gen) File "/opt/medusa/ext/dogpile/cache/backends/file.py", line 218, in _dbm_file dbm = self.dbmmodule.open(self.filename, "w" if write else "r") File "/usr/local/lib/python3.7/dbm/__init__.py", line 88, in open raise error[0]("db type could not be determined") dbm.error: db type could not be determined STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
So it makes sense to me that this would happen when switching from Python 2.7 to Python 3.x. And it's reasonable that, in that case, there's no automatic migration or anything to take care of this. Python 2 -> 3 is a big transition. But I've been on Python 3.x since the AUR package transitioned (v0.3.1?) and this issue just appeared after updating from Perhaps that exception should be caught and the dmb file deleted. Since this is a scheduled task it should be re-created when the backlog runs again, right?
|
Shouldn't Medusa do this automatically? Medusa created those files, it's responsible for them, then all of a sudden it thinks they're broken? |
INFO
Python Version:
3.7.1 (default, Oct 22 2018, 11:21:55) [GCC 8.2.0]
Operating System:
Linux-4.14.120-160-armv7l-with-Ubuntu-18.04-bionic
Locale:
UTF-8
Branch: master
Database:
44.14
Commit: 6a21a60
Link to Log: https://gist.github.com/8166b921b6df0d9554c1a3a515bf05d2
ERROR
STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators
The text was updated successfully, but these errors were encountered: