Projects
Wiki     Timeline     Roadmap     Browse Source     View Tickets     New Ticket     Search

Ticket #428 (new Defect)

Opened 2 years ago

Last modified 3 months ago

_parseConfigFromFile fails to parse the configuration file in Ubuntu.

Reported by: sk@… Owned by: dre@…
Priority: 3: Important Milestone: Later
Component: Calendar Server Severity: Serious
Keywords: parser fail configuration ubuntu parseConfigFromFile caldavd-dev.plist Cc: sk@…, testing10@…
Port:

Description (last modified by wsanchez@…) (diff)

The parser.parse() functions returns None from the following piece of code in CalendarServer/twistedcaldav/stdconfig.py

    def _parseConfigFromFile(self, filename):
        parser = NoUnicodePlistParser()
        configDict = None 
        try: 
            configDict = parser.parse(open(filename))
        except (IOError, OSError):
            log.err("Configuration file does not exist or is inaccessible: %s" % (filename, ))
            raise ConfigurationError("Configuration file does not exist or is inaccessible: %s" % (filename, ))
        else:
            configDict = _cleanup(configDict, self._defaults)
        return configDict
sangeetk@sk:/calendar/CalendarServer$ ./run -v

Using system version of Zope Interface.

Using system version of PyXML.

Using system version of PyOpenSSL.

Using system version of PyKerberos.

A system version of xattr exists, but version is 0.4 (< 0.5).
Current working copy (/calendar/xattr) is from the wrong URI: http://svn.red-bean.com/bob/xattr/releases/xattr-0.6.1 != http://svn.red-bean.com/bob/xattr/releases/xattr-0.6.1/
Performing repository switch for xattr...
At revision 1038.

Removing build directory /calendar/xattr/build...
Removing pyc files from /calendar/xattr...
Building xattr...

Using system version of PyGreSQL.

A system version of twisted exists, but version is 10.0.0 (< 10.1).
Building Twisted...

Using system version of dateutil.

Building python-ldap...
extra_compile_args: 
extra_objects: 
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found



Building SQLParse...

Using system version of Pyflakes.
Updating CalDAVTester...
At revision 7290.

Removing build directory /calendar/CalDAVTester/build...
Removing pyc files from /calendar/CalDAVTester...
Updating CalDAVClientLibrary...
At revision 7290.

Removing build directory /calendar/CalDAVClientLibrary/build...
Removing pyc files from /calendar/CalDAVClientLibrary...

Building pydoctor...
Building our own extension modules...
running build_ext

Using python as Python

Starting server...
/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/mail/smtp.py:10: DeprecationWarning: the MimeWriter module is deprecated; use the email package instead
  import MimeWriter, tempfile, rfc822
Reading configuration from file: /calendar/CalendarServer/conf/caldavd-dev.plist
Traceback (most recent call last):
  File "/calendar/Twisted/build/scripts-2.6/twistd", line 19, in <module>
    run()
  File "/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/scripts/twistd.py", line 27, in run
    app.run(runApp, ServerOptions)
  File "/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/application/app.py", line 621, in run
    config.parseOptions()
  File "/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/application/app.py", line 601, in parseOptions
    usage.Options.parseOptions(self, options)
  File "/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/python/usage.py", line 231, in parseOptions
    self.subOptions.parseOptions(rest)
  File "/calendar/Twisted/build/lib.linux-x86_64-2.6/twisted/python/usage.py", line 241, in parseOptions
    self.postOptions()
  File "/calendar/CalendarServer/calendarserver/tap/caldav.py", line 266, in postOptions
    self.loadConfiguration()
  File "/calendar/CalendarServer/calendarserver/tap/caldav.py", line 277, in loadConfiguration
    config.load(self["config"])
  File "/calendar/CalendarServer/twistedcaldav/config.py", line 223, in load
    configDict = ConfigDict(self._provider.loadConfig())
  File "/calendar/CalendarServer/twistedcaldav/stdconfig.py", line 756, in loadConfig
    configDict = self._parseConfigFromFile(self._configFileName)
  File "/calendar/CalendarServer/twistedcaldav/stdconfig.py", line 781, in _parseConfigFromFile
    configDict = _cleanup(configDict, self._defaults)
  File "/calendar/CalendarServer/twistedcaldav/stdconfig.py", line 1208, in _cleanup
    for key in configDict:
TypeError: ''''NoneType'''' object is not iterable

sangeetk@sk:/calendar/CalendarServer$ 

Change History

comment:1 Changed 2 years ago by wsanchez@…

  • Description modified (diff)

comment:2 Changed 22 months ago by wsanchez@…

  • Owner changed from wsanchez@… to dre@…

comment:3 Changed 10 months ago by hotukdeals.com2@…

The ouput does depend on the configuration in /var/lib/pgsql/data/postgresql.conf thanks Profile

comment:4 Changed 6 months ago by kurt.leubner@…

  • Cc kurt.leubner@… added

Cc Me!

comment:5 Changed 6 months ago by kurt.leubner@…

  • Cc kurt.leubner@… removed

Cc Me!

comment:6 Changed 4 months ago by wsanchez@…

  • Milestone changed from Linux Port to Later

comment:7 Changed 4 months ago by wsanchez@…

  • Priority changed from 1: Blocker to 3: Important

We don't have problems with this in OREL Linux. Is it still an issue on Ubuntu?

comment:8 Changed 3 months ago by testing10@…

  • Cc testing10@… added

Cc Me!

comment:9 Changed 3 months ago by testing10@…

  • Cc testing10@… removed

Cc Me!

comment:10 Changed 3 months ago by testing10@…

  • Cc testing10@… added

Cc Me!

Note: See TracTickets for help on using tickets.