apple / ccs-calendarserver

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

"TypeError: an integer is required" when trying to start caldavd 3.2+dfsg-4 on Debian Wheezy/Stable 7.0 #385

Closed macosforgebot closed 11 years ago

macosforgebot commented 11 years ago

andreasb@… originally submitted this as ticket:811


OS: Debian GNU/Linux 7.0 (Wheezy/Stable) Calendarserver: 3.2+dfsg-4

Hi,

I'm trying to get the caldavd working.

When starting the init.d script via "sudo service calendarserver start" everything seems fine.

Reading configuration from file: /etc/caldavd/caldavd.plist

But when checking if the service is really active it says that caldavd isn't working.

sudo service calendarserver status caldavd is not running ... failed!

Also "sudo netstat -tulpn | grep :8443" / nmap / ... confirm that there is nothing ...

The /var/log/caldavd/error.log says the following but "TypeError: an integer is required" doesn't really help me.

tail -n37 /var/log/caldavd/error.log says:

2013-05-25 01:21:23+0200 [-] Log opened. 2013-05-25 01:21:23+0200 [-] twistd 12.0.0 (/usr/bin/python2.7 2.7.3) starting up. 2013-05-25 01:21:23+0200 [-] reactor class: twisted.internet.pollreactor.PollReactor. 2013-05-25 01:21:23+0200 [-] AMPLoggingFactory starting on '/var/run/caldavd/caldavd.sock' 2013-05-25 01:21:23+0200 [-] CalDAVStatisticsServer starting on '/var/run/caldavd/caldavd-stats.sock' 2013-05-25 01:21:23+0200 [-] Traceback (most recent call last): 2013-05-25 01:21:23+0200 [-] File "/usr/bin/twistd", line 14, in <module> 2013-05-25 01:21:23+0200 [-] run() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 27, in run 2013-05-25 01:21:23+0200 [-] app.run(runApp, ServerOptions) 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 652, in run 2013-05-25 01:21:23+0200 [-] runApp(config) 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/twistd.py", line 23, in runApp 2013-05-25 01:21:23+0200 [-] _SomeApplicationRunner(config).run() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/app.py", line 390, in run 2013-05-25 01:21:23+0200 [-] self.postApplication() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/_twistd_unix.py", line 208, in postApplication 2013-05-25 01:21:23+0200 [-] self.startApplication(self.application) 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/scripts/_twistd_unix.py", line 317, in startApplication 2013-05-25 01:21:23+0200 [-] service.IService(application).privilegedStartService() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 277, in privilegedStartService 2013-05-25 01:21:23+0200 [-] service.privilegedStartService() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 277, in privilegedStartService 2013-05-25 01:21:23+0200 [-] service.privilegedStartService() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 277, in privilegedStartService 2013-05-25 01:21:23+0200 [-] service.privilegedStartService() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/service.py", line 277, in privilegedStartService 2013-05-25 01:21:23+0200 [-] service.privilegedStartService() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/application/internet.py", line 105, in privilegedStartService 2013-05-25 01:21:23+0200 [-] self._port = self._getPort() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twext/internet/tcp.py", line 130, in _getPort 2013-05-25 01:21:23+0200 [-] port.startListening() 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 639, in startListening 2013-05-25 01:21:23+0200 [-] skt.bind(addr) 2013-05-25 01:21:23+0200 [-] File "/usr/lib/python2.7/socket.py", line 224, in meth 2013-05-25 01:21:23+0200 [-] return getattr(self._sock,name)(*args) 2013-05-25 01:21:23+0200 [-] TypeError: an integer is required

It would be great if someone could help.

Best regards, Andreas

macosforgebot commented 11 years ago

andreasb@… originally submitted this as comment:1:⁠ticket:811

macosforgebot commented 11 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:811


Well, the server isn't starting up, so netstat won't work.

My best guess is a configuration error, though this exception is a poor way for us to tell you about it.

Since is version 3.2… there's now a 3.3 and a 4.2. Perhaps a string instead of an integer is specified for the port number?

Not a Priority 1 ticket; this is an old version of our server and I don't know if the debian package is well-maintained (the old version suggests not very).

macosforgebot commented 11 years ago

andreasb@… originally submitted this as comment:3:⁠ticket:811


Replying to wsanchez@…:

My best guess is a configuration error, though this exception is a poor way for us to tell you about it.

Since is version 3.2… there's now a 3.3 and a 4.2. Perhaps a string instead of an integer is specified for the port number?

You are right. I had the following in /etc/caldavd/caldavd.plist:

62 <!-- List of IP addresses to bind to [empty = all] --> 63 <key>BindAddresses</key> 64 <array><string>localhost</string> 65 </array>

Just removed the <string .../> and it worked ...

Thank you very much!

Not a Priority 1 ticket; [...]

True. Sorry for choosing the wrong category.

[...] this is an old version of our server and I don't know if the debian package is well-maintained (the old version suggests not very).

It's Debian Stable afterall...

Can you please close the ticket and move it to an appropriate category (if there is any). Maybe then someone searching for the error will find it through hers/his favourite search engine ... :-)

Best regards, Andreas

macosforgebot commented 11 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:811