Skip to content

sqlite3.OperationalError: database is locked #24

@fakebenjay

Description

@fakebenjay

Hey all,
Quick question, every time I run trackthenews (it's on a cronjob in an AWS instance that goes off every 10 minutes,) the script doesn't work, and when I try to run it manually, I get a database is locked error. In full:

Running with configuration files in /home/ubuntu/CWRSS/ttnconfig
Traceback (most recent call last):
  File "/home/ubuntu/.pyenv/versions/3.6.5/bin/trackthenews", line 11, in <module>
    sys.exit(main())
  File "/home/ubuntu/.pyenv/versions/3.6.5/lib/python3.6/site-packages/trackthenews/core.py", line 382, in main
    conn.execute('BEGIN EXCLUSIVE')
sqlite3.OperationalError: database is locked

For what it's worth, I'm using an alpha version 0.1.10a2, based off of Matthew McVickar's recent pull request, which prevents the script from crapping out if it encounters a missing title or URL.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions