9.0 got an unexpected keyword argument 'dialect' in subServiceFactory
While trying to upgrade my FreeBSD port of calendarserver to 9.0, I get Reading configuration from file: /usr/local/etc/caldavd/caldavd.plist Traceback (most recent call last): File "/usr/local/bin/twistd", line 11, in <module> load_entry_point('Twisted==16.4.1', 'console_scripts', 'twistd')() File "/usr/local/lib/python2.7/site-packages/twisted/scripts/twistd.py", line 29, in run app.run(runApp, ServerOptions) File "/usr/local/lib/python2.7/site-packages/twisted/application/app.py", line 648, in run runApp(config) File "/usr/local/lib/python2.7/site-packages/twisted/scripts/twistd.py", line 25, in runApp _SomeApplicationRunner(config).run() File "/usr/local/lib/python2.7/site-packages/twisted/application/app.py", line 379, in run self.application = self.createOrGetApplication() File "/usr/local/lib/python2.7/site-packages/twisted/application/app.py", line 439, in createOrGetApplication ser = plg.makeService(self.config.subOptions) File "/usr/local/lib/python2.7/site-packages/twisted/plugins/caldav.py", line 50, in makeService return self._serviceMaker.makeService(options) File "/usr/local/lib/python2.7/site-packages/calendarserver/tap/caldav.py", line 844, in makeService service = serviceMethod(options) File "/usr/local/lib/python2.7/site-packages/calendarserver/tap/caldav.py", line 1995, in makeService_Combined spawnerSvcCreator, None, uid, gid File "/usr/local/lib/python2.7/site-packages/calendarserver/tap/caldav.py", line 1690, in storageService DBAPIConnector.connectorFor(config.DBType, **config.DatabaseConnection).connect, None File "/usr/local/lib/python2.7/site-packages/calendarserver/tap/caldav.py", line 1584, in subServiceFactory maxConnections=config.MaxDBConnectionsPerPool TypeError: __init__() got an unexpected keyword argument ‚dialect' Can I remove that argument safely? Axel --- PGP-Key:29E99DD6 ☀ computing @ chaos claudius
Hi,
On Nov 19, 2016, at 1:55 PM, Axel Rau <Axel.Rau@Chaos1.DE> wrote:
... maxConnections=config.MaxDBConnectionsPerPool TypeError: __init__() got an unexpected keyword argument ‚dialect'
Can I remove that argument safely?
"dialect" is (was) used to select either Postgres or Oracle. I'd say the problem is either: 1) your config needs to be updated, or 2) you have mismatched versions of subcomponents with respect to CalendarServer (like maybe twisted extensions). In particular, this change set seems relevant: https://github.com/apple/ccs-twistedextensions/commit/0d442984f49a7966e7fdda... Here's a plist representation of the possible server settings: https://github.com/apple/ccs-calendarserver/blob/master/conf/caldavd-stdconf... I think the comment for DBType should reference DatabaseConnection, not DSN... -dre
Axel --- PGP-Key:29E99DD6 ☀ computing @ chaos claudius
_______________________________________________ calendarserver-dev mailing list calendarserver-dev@lists.macosforge.org https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
Hi Andre, thanks for your detailed answer.
Am 22.11.2016 um 01:10 schrieb Andre LaBranche <dre@apple.com>:
Hi,
On Nov 19, 2016, at 1:55 PM, Axel Rau <Axel.Rau@Chaos1.DE <mailto:Axel.Rau@Chaos1.DE>> wrote:
... maxConnections=config.MaxDBConnectionsPerPool TypeError: __init__() got an unexpected keyword argument ‚dialect'
Can I remove that argument safely?
"dialect" is (was) used to select either Postgres or Oracle. I'd say the problem is either: 1) your config needs to be updated, or 2) you have mismatched versions of subcomponents with respect to CalendarServer (like maybe twisted extensions).
In particular, this change set seems relevant: https://github.com/apple/ccs-twistedextensions/commit/0d442984f49a7966e7fdda... <https://github.com/apple/ccs-twistedextensions/commit/0d442984f49a7966e7fdda862ba6850a91e6e79b>Using a8528bc which is mentioned in requirements-cs.txt’ fixes the issue. (-;
Here's a plist representation of the possible server settings: https://github.com/apple/ccs-calendarserver/blob/master/conf/caldavd-stdconf... <https://github.com/apple/ccs-calendarserver/blob/master/conf/caldavd-stdconfig.plist>
I think the comment for DBType should reference DatabaseConnection, not DSN...
Axel — PGP-Key:29E99DD6 ☀ computing @ chaos claudius
participants (2)
-
Andre LaBranche
-
Axel Rau