apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

'NoneType' object is not subscriptable regression: 8541 to 8628 #368

Closed macosforgebot closed 10 years ago

macosforgebot commented 12 years ago

mail@… originally submitted this as ticket:476


2012-02-06 20:42:50+0100 [-] Log opened.
2012-02-06 20:42:50+0100 [-] twistd 11.0.0 (/usr/bin/python2.7 2.7.2) starting up.
2012-02-06 20:42:50+0100 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
2012-02-06 20:42:51+0100 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'/var/run/caldavd.sock'"
2012-02-06 20:42:51+0100 [-] [calendarserver.accesslog#debug] rotateGlobalHitHistoryStats: [{'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557370}, {'hits': 0, 'time': 1328557371}]
2012-02-06 20:42:51+0100 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'/var/run/caldavd-stats.sock'"
2012-02-06 20:42:51+0100 [-] [calendarserver.tools.util.DummyDirectoryService#info] Directory service <calendarserver.tools.util.DummyDirectoryService object at 0x29987d0> has no GUID; generating service GUID from realm name.
2012-02-06 20:42:51+0100 [-] [twistedcaldav.directory.xmlfile.XMLDirectoryService#info] Directory service <XMLDirectoryService 'Test Realm': FilePath('/etc/caldavd/accounts.xml')> has no GUID; generating service GUID from realm name.
2012-02-06 20:42:51+0100 [-] Unhandled error in Deferred:
2012-02-06 20:42:51+0100 [-] Unhandled Error
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/calendarserver/tools/util.py", line 143, in getDirectory
        directory = BaseDirectoryService(config.DirectoryService.params)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 122, in __init__
        self._accounts()
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 178, in _accounts
        record.recordType)
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
        return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
    --- <exception caught here> ---
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/augment.py", line 99, in getAugmentRecord
        "%s-%s*" % (recordType, uid[0:2]),
    exceptions.TypeError: 'NoneType' object is not subscriptable

2012-02-06 20:42:51+0100 [-] Unhandled error in Deferred:
2012-02-06 20:42:51+0100 [-] Unhandled Error
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/calendarserver/tools/util.py", line 143, in getDirectory
        directory = BaseDirectoryService(config.DirectoryService.params)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 122, in __init__
        self._accounts()
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 178, in _accounts
        record.recordType)
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
        return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
    --- <exception caught here> ---
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/augment.py", line 99, in getAugmentRecord
        "%s-%s*" % (recordType, uid[0:2]),
    exceptions.TypeError: 'NoneType' object is not subscriptable

2012-02-06 20:42:51+0100 [-] Unhandled error in Deferred:
2012-02-06 20:42:51+0100 [-] Unhandled Error
    Traceback (most recent call last):
      File "/usr/lib64/python2.7/site-packages/calendarserver/tools/util.py", line 143, in getDirectory
        directory = BaseDirectoryService(config.DirectoryService.params)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 122, in __init__
        self._accounts()
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/xmlfile.py", line 178, in _accounts
        record.recordType)
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
        return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
    --- <exception caught here> ---
      File "/usr/lib64/python2.7/site-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
        result = g.send(result)
      File "/usr/lib64/python2.7/site-packages/twistedcaldav/directory/augment.py", line 99, in getAugmentRecord
        "%s-%s*" % (recordType, uid[0:2]),
    exceptions.TypeError: 'NoneType' object is not subscriptable

2012-02-06 20:42:51+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Beginning database schema check.
2012-02-06 20:42:57+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Required database key VERSION: 8.
2012-02-06 20:42:58+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Actual database key VERSION: 7.
2012-02-06 20:42:58+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Starting schema upgrade from version 7 to 8.
2012-02-06 20:42:58+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Applying schema upgrade: upgrade_from_7_to_8.sql
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Schema upgraded from version 7 to 8.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseSchemaService#warn] Database schema check complete.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Beginning database data check.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Required database key CALENDAR-DATAVERSION: 2.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Actual database key CALENDAR-DATAVERSION: 2.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Data version check complete: no upgrade needed.
2012-02-06 20:43:02+0100 [-] [txdav.common.datastore.upgrade.sql.upgrade.UpgradeDatabaseDataService#warn] Database data check complete.
macosforgebot commented 12 years ago

mail@… originally submitted this as comment:1:⁠ticket:476


Seem like one has to have <guid></guid> tags in accounts.xml and an augments.xml file, this was not necessary before. At least I did not have it ...

macosforgebot commented 10 years ago

@wsanchez originally submitted this as comment:5:⁠ticket:476


No sightings of this in a long time