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

Can't run pyrobud in docker #527

Open
rabbit-93 opened this issue May 26, 2022 · 1 comment
Open

Can't run pyrobud in docker #527

rabbit-93 opened this issue May 26, 2022 · 1 comment

Comments

@rabbit-93
Copy link

rabbit-93 commented May 26, 2022

When trying to run in docker i get following response:

rabbit@top-czipsy:~/tg-selfbot$ sudo docker run --rm -itv "$PWD/data:/data" kdrag0n/pyrobud
  INFO     | launch  | Loading code...
  INFO     | launch  | Loading config
  INFO     | launch  | Using uvloop event loop
  INFO     | launch  | Initializing bot
  ERROR    | asyncio | Task exception was never retrieved
future: <Task finished name='Task-2' coro=<run.<locals>.new_coro() done, defined at /opt/venv/lib/python3.8/site-packages/aiorun.py:202> exception=Error(b'NotFound: main.db/LOCK: No such file or directory')>
Traceback (most recent call last):
  File "/opt/venv/lib/python3.8/site-packages/aiorun.py", line 212, in new_coro
    await coro
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/bot.py", line 50, in create_and_run
    bot = cls(config)
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/bot.py", line 35, in __init__
    super().__init__()
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/telegram_bot.py", line 47, in __init__
    super().__init__(**kwargs)
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/module_extender.py", line 22, in __init__
    super().__init__(**kwargs)
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/command_dispatcher.py", line 21, in __init__
    super().__init__(**kwargs)
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/database_provider.py", line 21, in __init__
    self._init_db(db_path)
  File "/opt/venv/lib/python3.8/site-packages/pyrobud/core/database_provider.py", line 41, in _init_db
    plyvel.DB(db_path, create_if_missing=True, paranoid_checks=True)
  File "plyvel/_plyvel.pyx", line 247, in plyvel._plyvel.DB.__init__
  File "plyvel/_plyvel.pyx", line 94, in plyvel._plyvel.raise_for_status
plyvel._plyvel.Error: b'NotFound: main.db/LOCK: No such file or directory'

The config file specifies that main.db should be created upon startup.

@K0rpse
Copy link

K0rpse commented Oct 3, 2024

I have same issue, did you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants