[CalendarServer-users] caladmin stats fails
Filipp Lepalaan
filipp at mekanisti.fi
Fri Aug 28 00:49:16 PDT 2009
Hi all,
I have a OS X 10.5.8 server running iCal server that is unable to produce
usage statistics
$ sudo caladmin --config /etc/caldavd/caldavd.plist stats
Traceback (most recent call last):
File "/usr/sbin/caladmin", line 29, in <module>
run()
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/script.py", line
112, in run
adminOptions.parseOptions(sys.argv[1:])
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/script.py", line
77, in parseOptions
usage.Options.parseOptions(self, opts)
File "/usr/share/caldavd/lib/python/twisted/python/usage.py", line 199, in
parseOptions
self.postOptions()
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/script.py", line
100, in postOptions
self.parseOptions(self.params)
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/script.py", line
77, in parseOptions
usage.Options.parseOptions(self, opts)
File "/usr/share/caldavd/lib/python/twisted/python/usage.py", line 189, in
parseOptions
self.subOptions.parseOptions(rest)
File "/usr/share/caldavd/lib/python/twisted/python/usage.py", line 199, in
parseOptions
self.postOptions()
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/options.py", line
53, in postOptions
report = reflect.namedAny(self.action)(self).run()
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/stats.py", line 89,
in run
self.calendarCollection))
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/util.py", line 161,
in getCalendarDataCounts
eventCount += db.countEvents()
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/util.py", line 143,
in countEvents
return self._countType('VEVENT')
File "/usr/share/caldavd/lib/python/twistedcaldav/admin/util.py", line 140,
in _countType
type)
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 230, in
_db_value_for_sql
for row in self._db_values_for_sql(sql, *query_params):
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 218, in
_db_values_for_sql
return (row[0] for row in self._db_execute(sql, *query_params))
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 243, in
_db_execute
q = self._db().cursor()
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 121, in _db
self._db_init(db_filename, q)
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 154, in
_db_init
self._db_init_data_tables(q)
File "/usr/share/caldavd/lib/python/twistedcaldav/sql.py", line 196, in
_db_init_data_tables
raise NotImplementedError
NotImplementedError
It looks like an SQL error in util.py and I've tried my best to isolate
this further, but I'm guessing the database these queries are run against
are in memory and not available for poking around with sqlite3?
Or maybe I'm just completely off, anyways if anyone could nudge me in some
direction, i would greatly appreciate it.
Many TIA,
-filipp
More information about the calendarserver-users
mailing list