Skip to content
Permalink
Browse files

Add FAQ about "database is locked" error

  • Loading branch information...
delivrance committed Aug 6, 2019
1 parent 82e0087 commit f87aae1dbdf9b9062310b77e2b89f22621e7b7d4
Showing with 17 additions and 0 deletions.
  1. +17 −0 docs/source/faq.rst
@@ -269,6 +269,23 @@ Telegram cloud. This error usually happens in case the provided URL is not publi
media exceeds 20 MB in size. In such cases, your only option is to download the media yourself and upload from your
local machine.

sqlite3.OperationalError: database is locked
--------------------------------------------

This error occurs when more than one process is using the same session file, that is, when you run two or more clients
at the same time using the same session name.

It could also occur when a background script is still running and you forgot about it. In this case, you either restart
your system or find and kill the process that is locking the database. On Unix based systems, you can do the following:

#. ``cd`` into your session file directory.
#. ``fuser my_account.session`` to find the process id.
#. ``kill 1234`` to gracefully stop the process.
#. If the last command doesn't help, use ``kill -9 1234`` instead.

If you want to run multiple clients on the same account, you must authorize your account (either user or bot)
from the beginning every time, and use different session names for each parallel client you are going to use.

My verification code expires immediately!
-----------------------------------------

0 comments on commit f87aae1

Please sign in to comment.
You can’t perform that action at this time.