irc-rss-feed-bot icon indicating copy to clipboard operation
irc-rss-feed-bot copied to clipboard

Cache directory "/app/.ircrssfeedbot_cache/URLReader"

Open ssbarnea opened this issue 3 years ago • 1 comments

Apparently something changed since last time I used the feed bot and it no longer starts inside containers. It is bit weird because I did not see /app as being configured anywhere.

The deploy guidelines indicate to use `image: ascensive/irc-rss-feed-bot, which makes me believe that maybe that image is not the results of building https://github.com/impredicative/irc-rss-feed-bot/blob/master/Dockerfile ?

Does this means we have no published image that we can just run with building? In the end a tool like this does not need more than mounting its config.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/app/ircrssfeedbot/__main__.py", line 6, in <module>
    from ircrssfeedbot.main import main
  File "/app/ircrssfeedbot/main.py", line 11, in <module>
    from ircrssfeedbot.bot import Bot
  File "/app/ircrssfeedbot/bot.py", line 17, in <module>
    from . import config, publishers, searchers
  File "/app/ircrssfeedbot/publishers/__init__.py", line 2, in <module>
    from . import github
  File "/app/ircrssfeedbot/publishers/github.py", line 12, in <module>
    from ._base import BasePublisher
  File "/app/ircrssfeedbot/publishers/_base.py", line 12, in <module>
    from ..feed import FeedEntry
  File "/app/ircrssfeedbot/feed.py", line 21, in <module>
    from .url import URLReader
  File "/app/ircrssfeedbot/url.py", line 106, in <module>
    class URLReader:
  File "/app/ircrssfeedbot/url.py", line 109, in URLReader
    _CACHE = diskcache.Cache(directory=config.DISKCACHE_PATH / "URLReader", timeout=2, size_limit=config.DISKCACHE_SIZE_LIMIT)
  File "/usr/local/lib/python3.8/site-packages/diskcache/core.py", line 481, in __init__
    raise EnvironmentError(
PermissionError: [Errno 13] Cache directory "/app/.ircrssfeedbot_cache/URLReader" does not exist and could not be created

ssbarnea avatar Jan 25 '21 11:01 ssbarnea

I'm not sure if I understand this issue. Are you saying you're running docker in docker?

For what it's worth, there shouldn't be any meaningful difference between the image on Docker Hub and the one that's built locally. Both work for me.

impredicative avatar Feb 07 '21 06:02 impredicative