سلام خطای زیر را چطوری رفع کنم ؟
هنگام کار با پنل میگه ارتباط با سرور قطع شده است . توی لاگ اینو زده
sqlite3.OperationalError: database is locked
[2024-09-08 10:11:08,314] ERROR in app: Exception on /get_config/wg0 [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 1473, in wsgi_app
response = self.full_dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 880, in full_dispatch_request
rv = self.dispatch_request()
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 865, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/WireguardPersian/src/dashboard.py", line 1249, in get_conf
"peer_data": get_peers(config_name, search, sort),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/WireguardPersian/src/dashboard.py", line 542, in get_peers
get_all_peers_data(config_name)
File "/root/WireguardPersian/src/dashboard.py", line 522, in get_all_peers_data
get_latest_handshake(config_name)
File "/root/WireguardPersian/src/dashboard.py", line 331, in get_latest_handshake
g.cur.execute(query, bindings)
sqlite3.OperationalError: database is locked
سلام خطای زیر را چطوری رفع کنم ؟ هنگام کار با پنل میگه ارتباط با سرور قطع شده است . توی لاگ اینو زده sqlite3.OperationalError: database is locked
[2024-09-08 10:11:08,314] ERROR in app: Exception on /get_config/wg0 [GET] Traceback (most recent call last): File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 1473, in wsgi_app response = self.full_dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 882, in full_dispatch_request rv = self.handle_user_exception(e) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 880, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/dist-packages/flask/app.py", line 865, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/WireguardPersian/src/dashboard.py", line 1249, in get_conf "peer_data": get_peers(config_name, search, sort), ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/root/WireguardPersian/src/dashboard.py", line 542, in get_peers get_all_peers_data(config_name) File "/root/WireguardPersian/src/dashboard.py", line 522, in get_all_peers_data get_latest_handshake(config_name) File "/root/WireguardPersian/src/dashboard.py", line 331, in get_latest_handshake g.cur.execute(query, bindings) sqlite3.OperationalError: database is locked