AWS:CloudWatch日志服务(cwlogs):数据库/磁盘已满:数据库已锁定

时间:2017-06-04 21:40:24

标签: sqlite amazon-web-services amazon-cloudwatch amazon-cloudwatchlogs

我的日志中出现以下错误。虽然它给出了2个错误,但很可能不是因为磁盘/数据库空间问题而且似乎更多的是数据库锁定问题。我研究并发现cwlogs在sqlite db中编写历史记录,因此可能会将其锁定。对此的任何意见都将受到高度赞赏。

2017-06-02 23:01:27,331 - cwlogs.threads - ERROR - 3875 - Thread-3 - Exception caught in <EventBatchPublisher(Thread-3, started daemon 14047668)>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cwlogs/threads.py", line 58, in run
    self._run()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1391, in _run
    self._publish_event_batch()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1188, in _publish_event_batch
    self.publish_callback(self.event_batch, self.sequence_token)
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 795, in _record_state
    self.state_store.save(event_batch.source_id, state)
  File "/usr/lib/python2.7/dist-packages/cwlogs/kvstore.py", line 47, in save
    key))
OperationalError: database or disk is full


2017-06-02 23:01:38,884 - cwlogs.threads - ERROR - 3875 - Thread-5 - Exception caught in <EventBatchPublisher(Thread-5, started daemon 14047666)>
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cwlogs/threads.py", line 58, in run
    self._run()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1391, in _run
    self._publish_event_batch()
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 1188, in _publish_event_batch
    self.publish_callback(self.event_batch, self.sequence_token)
  File "/usr/lib/python2.7/dist-packages/cwlogs/push.py", line 795, in _record_state
    self.state_store.save(event_batch.source_id, state)
  File "/usr/lib/python2.7/dist-packages/cwlogs/kvstore.py", line 47, in save
    key))
OperationalError: database is locked

0 个答案:

没有答案