wakatime / jetbrains-wakatime

IntelliJ IDEA, PyCharm, RubyMine, PhpStorm, AppCode, AndroidStudio, Goland, Rider, & WebStorm plugin for quantifying your coding.
https://wakatime.com/intellij-idea
BSD 3-Clause "New" or "Revised" License
1.13k stars 167 forks source link

Atom - database is locked #145

Closed saharshMMC closed 4 years ago

saharshMMC commented 4 years ago

Just started happening today with Atom

/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:13:53 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839418.983078, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:13:53 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839421.4343958, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:13:58 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839424.6119099, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:13:58 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839424.323605, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nConnectionResetError: [Errno 54] Connection reset by peer\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"requests/adapters.py\", line 439, in send\n  File \"urllib3/connectionpool.py\", line 719, in urlopen\n  File \"urllib3/util/retry.py\", line 400, in increment\n  File \"urllib3/packages/six.py\", line 734, in reraise\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nurllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/api.py\", line 98, in send_heartbeats\n  File \"requests/sessions.py\", line 578, in post\n  File \"requests/sessions.py\", line 530, in request\n  File \"requests/sessions.py\", line 643, in send\n  File \"requests/adapters.py\", line 498, in send\nrequests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:14:03 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839418.5582879, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nConnectionResetError: [Errno 54] Connection reset by peer\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"requests/adapters.py\", line 439, in send\n  File \"urllib3/connectionpool.py\", line 719, in urlopen\n  File \"urllib3/util/retry.py\", line 400, in increment\n  File \"urllib3/packages/six.py\", line 734, in reraise\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nurllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/api.py\", line 98, in send_heartbeats\n  File \"requests/sessions.py\", line 578, in post\n  File \"requests/sessions.py\", line 530, in request\n  File \"requests/sessions.py\", line 643, in send\n  File \"requests/adapters.py\", line 498, in send\nrequests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:14:03 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839424.6438599, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nConnectionResetError: [Errno 54] Connection reset by peer\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"requests/adapters.py\", line 439, in send\n  File \"urllib3/connectionpool.py\", line 719, in urlopen\n  File \"urllib3/util/retry.py\", line 400, in increment\n  File \"urllib3/packages/six.py\", line 734, in reraise\n  File \"urllib3/connectionpool.py\", line 665, in urlopen\n  File \"urllib3/connectionpool.py\", line 376, in _make_request\n  File \"urllib3/connectionpool.py\", line 994, in _validate_conn\n  File \"urllib3/connection.py\", line 352, in connect\n  File \"urllib3/util/ssl_.py\", line 370, in ssl_wrap_socket\n  File \"ssl.py\", line 500, in wrap_socket\n  File \"ssl.py\", line 1040, in _create\n  File \"ssl.py\", line 1309, in do_handshake\nurllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/api.py\", line 98, in send_heartbeats\n  File \"requests/sessions.py\", line 578, in post\n  File \"requests/sessions.py\", line 530, in request\n  File \"requests/sessions.py\", line 643, in send\n  File \"requests/adapters.py\", line 498, in send\nrequests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:16:35 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839589.4533162, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:16:35 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839589.469067, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}
{"now": "2020/07/27 14:16:42 +0530", "version": "13.0.7", "plugin": "atom-wakatime/9.0.2", "time": 1595839590.668792, "level": "WARNING", "message": "Traceback (most recent call last):\n  File \"wakatime/offlinequeue.py\", line 57, in push\nsqlite3.OperationalError: database is locked\n"}

Screentshot Changed the API-key several time, did reinstall as well.

Screenshot 2020-07-27 at 2 20 06 PM

Atom version - 1.49.0 Wakatime - 9.0.2

alanhamlett commented 4 years ago

Sorry, this was me. 😭 I broke the api key parsing, but it's fixed now. The plugin saves your stats and syncs them up the next time the plugin runs (the next time you're typing) so nothing is lost, but still sorry about the frustration it may have caused.

saharshMMC commented 4 years ago

No worries, works now!