Opened 8 years ago

Closed 5 years ago

#4352 closed defect (duplicate)

Weather blows up with a stacktrace on locked database

Reported by: kaner Owned by: kaner
Priority: Medium Milestone:
Component: Metrics/Tor Weather Version:
Severity: Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:

Description (last modified by arma)

This has been seen a few times recently:

WARN [ Thu Oct 27 19:19:06 2011 ]: No event for: 650 NEWCONSENSUS
Traceback (most recent call last):
  File "/srv/", line 535, in _eventLoop
    self._handleFn(timestamp, reply)
  File "/srv/", line 1061, in _handle1
    self._map1.get(event.event_name, self.unknown_event)(event)
  File "/srv/", line 30, in new_consensus_event
  File "/srv/", line 335, in run_all
    email_list = update_all_routers(ctl_util, email_list)
  File "/srv/", line 263, in update_all_routers
    if len(deployed_query) == 0:
  File "/usr/lib/pymodules/python2.6/django/db/models/", line 81, in __len__
    self._result_cache = list(self.iterator())
  File "/usr/lib/pymodules/python2.6/django/db/models/", line 269, in iterator
    for row in compiler.results_iter():
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/", line 672, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/", line 727, in execute_sql
    cursor.execute(sql, params)
  File "/usr/lib/pymodules/python2.6/django/db/backends/sqlite3/", line 200, in execute
    return Database.Cursor.execute(self, query, params)
DatabaseError: database is locked

Child Tickets

Change History (4)

comment:1 Changed 8 years ago by kaner

Seems like a second Weather process was running that kept the database locked. I wonder where that came from. Keeping this ticket open for now.

comment:2 Changed 8 years ago by arma

Description: modified (diff)

comment:3 Changed 5 years ago by kaner

This is fixed together with #5521. Closing.

comment:4 Changed 5 years ago by kaner

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.