-
Notifications
You must be signed in to change notification settings - Fork 64
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
Container running under Podman errors with sqlite3.OperationalError: unable to open database file #202
Comments
I was able to work around this issue after noticing that the /root/.cache folder does not exist in this container.
|
I also just happened to find this problem. Apparently, requests_cache looks for the But I think the root of this problem lays in |
Similar error to Issue #133 however the suggested --no-cache workaround does not work.
Podman is a drop-in replacement for Docker however it does not permit containers to run as root. Wondering if this issue is related to that?
Here is how I launch the container session:
podman run -it --rm --name b3vis-mnamer -v /home/wade/Movies:/mnt --entrypoint "/bin/sh" b3vis/mnamer:latest
Here is the mnamer command I used:
python -m mnamer -v --no-cache -r /mnt
system
settings
targets
Starting mnamer
Processing Episode "Saturday Night Live S1 E4.mkv" (2.26GB)
/mnt/SNL_SEASON_1_VOL_2/Saturday Night Live S1 E4.mkv
using tvmaze
search parameters
============================== CRASH REPORT BEGIN ==============================
--------------------------------- environment ----------------------------------
--------------------------------- stack trace ----------------------------------
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/mnamer/main.py", line 23, in main
frontend.launch()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 80, in launch
self._process_targets()
File "/usr/local/lib/python3.9/site-packages/mnamer/frontends.py", line 97, in _process_targets
matches = target.query()
File "/usr/local/lib/python3.9/site-packages/mnamer/target.py", line 233, in query
for idx, result in enumerate(results, start=1):
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 374, in search
yield from self._search_with_season_and_episode(
File "/usr/local/lib/python3.9/site-packages/mnamer/providers.py", line 437, in _search_with_season_and_episode
series_data = tvmaze_show_search(series)
File "/usr/local/lib/python3.9/site-packages/mnamer/endpoints.py", line 466, in tvmaze_show_search
status, content = request_json(url, parameters, cache=cache)
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 264, in request_json
session = get_session()
File "/usr/local/lib/python3.9/site-packages/mnamer/utils.py", line 188, in get_session
get_session.session = requests_cache.CachedSession(
File "/usr/local/lib/python3.9/site-packages/requests_cache/core.py", line 73, in init
self.cache = backends.create_backend(backend, cache_name, backend_options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/init.py", line 63, in create_backend
return registry[backend_name](cache_name, **options)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/sqlite.py", line 28, in init
self.responses = DbPickleDict(location + extension, 'responses', fast_save=fast_save)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 62, in init
with self.connection() as con:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in enter
return next(self.gen)
File "/usr/local/lib/python3.9/site-packages/requests_cache/backends/storage/dbdict.py", line 74, in connection
con = sqlite.connect(self.filename)
sqlite3.OperationalError: unable to open database file
=============================== CRASH REPORT END ===============================
Dang, it looks like mnamer crashed! Please consider filling an issue at
https://github.com/jkwill87/mnamer/issues along with this report.
The text was updated successfully, but these errors were encountered: