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

How to unlock database? #6

Open
uruk-hai-21 opened this issue May 27, 2021 · 3 comments
Open

How to unlock database? #6

uruk-hai-21 opened this issue May 27, 2021 · 3 comments

Comments

@uruk-hai-21
Copy link

Traceback (most recent call last):
File "adder.py", line 36, in
with client:
File "/usr/local/lib/python3.8/dist-packages/telethon/helpers.py", line 184, in _sync_enter
return loop.run_until_complete(self.aenter())
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/auth.py", line 713, in aenter
return await self.start()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/auth.py", line 140, in _start
await self.connect()
File "/usr/local/lib/python3.8/dist-packages/telethon/client/telegrambaseclient.py", line 524, in connect
self.session.auth_key = self._sender.auth_key
File "/usr/local/lib/python3.8/dist-packages/telethon/sessions/sqlite.py", line 180, in auth_key
self._update_session_table()
File "/usr/local/lib/python3.8/dist-packages/telethon/sessions/sqlite.py", line 194, in _update_session_table
c.execute('delete from sessions')
sqlite3.OperationalError: database is locked
Task was destroyed but it is pending!
task: <Task pending name='Task-3' coro=<Connection._send_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/connection/connection.py:306> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c062d60>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-4' coro=<Connection._recv_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/connection/connection.py:324> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c062eb0>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-5' coro=<MTProtoSender._send_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/mtprotosender.py:460> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c08a070>()]>>
Task was destroyed but it is pending!
task: <Task pending name='Task-6' coro=<MTProtoSender._recv_loop() running at /usr/local/lib/python3.8/dist-packages/telethon/network/mtprotosender.py:503> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f2a6c08a0a0>()]>>

@AbirHasan2005
Copy link
Owner

Delete Client Session Files!

@uruk-hai-21
Copy link
Author

uruk-hai-21 commented May 28, 2021

Hi Abir, thank you for your reply!
Do you mean /TelegramScraper/+123456789.session file?

@AbirHasan2005
Copy link
Owner

Hi Abir, thank you for your reply!
Do you mean /TelegramScraper/+123456789.session file?

Yes Sir

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