Ticket #602 (closed defect: fixed)

Opened 14 years ago

Last modified 14 years ago

Periodic errors from updating sqlite reports database

Reported by: kisielk Owned by: desai
Priority: major Milestone: Bcfg2 0.9.6 Release
Component: bcfg2-reports Version:
Keywords: Cc:


Every once in a while a client will cause the following error message on the server:

bcfg2-server[18027]: Unexpected handler failure
bcfg2-server[18027]: <class 'sqlite3.DatabaseError'> : database disk image is malformed
bcfg2-server[18027]: Traceback (most recent call last):
bcfg2-server[18027]:   File "usr/lib64/python2.5/site-packages/Bcfg2/", line 221, in _cobalt_marshalled_dispatch
bcfg2-server[18027]:     response = self._dispatch(method, (address, ) + params)
bcfg2-server[18027]:   File "/usr/lib64/python2.5/", line 415, in _dispatch
bcfg2-server[18027]:     return func(*params)
bcfg2-server[18027]:   File "/usr/sbin/bcfg2-server", line 182, in Bcfg2RecvStats
bcfg2-server[18027]:     self.Core.stats.StoreStatistics(meta, sdata)
bcfg2-server[18027]:   File "usr/lib64/python2.5/site-packages/Bcfg2/Server/Plugins/", line 38, in StoreStatistics
bcfg2-server[18027]:     self.core.metadata.clientdata, container, 0, True)
bcfg2-server[18027]:   File "usr/lib64/python2.5/site-packages/Bcfg2/Server/Reports/", line 139, in load_stats
bcfg2-server[18027]:     if links:
bcfg2-server[18027]:   File "/usr/lib64/python2.5/site-packages/django/db/models/", line 105, in __len__
bcfg2-server[18027]:     return len(self._get_data())
bcfg2-server[18027]:   File "/usr/lib64/python2.5/site-packages/django/db/models/", line 470, in _get_data
bcfg2-server[18027]:     self._result_cache = list(self.iterator())
bcfg2-server[18027]:   File "/usr/lib64/python2.5/site-packages/django/db/models/", line 183, in iterator
bcfg2-server[18027]:     cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
bcfg2-server[18027]:   File "/usr/lib64/python2.5/site-packages/django/db/backends/sqlite3/", line 93, in execute
bcfg2-server[18027]:     return Database.Cursor.execute(self, query, params)
bcfg2-server[18027]: DatabaseError: database disk image is malformed

The client reports:

Failed to upload configuration statistics


Change History

comment:1 Changed 14 years ago by desai

  • Status changed from new to closed
  • Resolution set to fixed
  • Milestone set to Bcfg2 0.9.6 Release

WARNING! You need to establish a session before you can create or edit tickets. Otherwise the ticket will get treated as spam.


Add a comment

Modify Ticket

Change Properties
<Author field>
as closed
The resolution will be deleted. Next status will be 'reopened'

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.