Hi everyone, I had fixed this awhile back, but I can't seem to figure it out.... I downloaded the latest trunk this morning and have it installed in my webserver directory right now. It's running on a 10.4.10 box with OS X Server 10.4.10 installed and I can't seem to figure out the error, below is the log that I get, does anyone have any ideas? Also... I have tried to disable kerberos since I don't have that setup and running on my server, figure why add 1 more piece of complexity right? Thanks for taking the time to look! qs:/volumes/raider/webserver/documents/dev/calendarserver japruim$ ./run /Volumes/RAIDer/webserver/Documents/dev/Calendarserver/twistedcaldav/ authkerb.py:48: RuntimeWarning: Python C API version mismatch for module kerberos: This Python has API version 1013, module kerberos has version 1012. import kerberos 2008-04-07 12:07:38-0400 [-] Log opened. 2008-04-07 12:07:38-0400 [-] twistd 2.5.0+r19773 (/Library/Frameworks/ Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/ Python 2.5.2) starting up 2008-04-07 12:07:38-0400 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-04-07 12:07:38-0400 [-] 1 processors found, configuring 1 processes. 2008-04-07 12:07:38-0400 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2008-04-07 12:07:38-0400 [-] Traceback (most recent call last): 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/bin/twistd", line 21, in <module> 2008-04-07 12:07:38-0400 [-] run() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/scripts/twistd.py", line 27, in run 2008-04-07 12:07:38-0400 [-] app.run(runApp, ServerOptions) 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/app.py", line 379, in run 2008-04-07 12:07:38-0400 [-] runApp(config) 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/scripts/twistd.py", line 23, in runApp 2008-04-07 12:07:38-0400 [-] _SomeApplicationRunner(config).run() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/app.py", line 158, in run 2008-04-07 12:07:38-0400 [-] self.postApplication() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/scripts/_twistd_unix.py", line 213, in postApplication 2008-04-07 12:07:38-0400 [-] startApplication(self.config, self.application) 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/scripts/_twistd_unix.py", line 174, in startApplication 2008-04-07 12:07:38-0400 [-] service.IService(application).privilegedStartService() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/service.py", line 228, in privilegedStartService 2008-04-07 12:07:38-0400 [-] service.privilegedStartService() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/service.py", line 228, in privilegedStartService 2008-04-07 12:07:38-0400 [-] service.privilegedStartService() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/internet.py", line 68, in privilegedStartService 2008-04-07 12:07:38-0400 [-] self._port = self._getPort() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/application/internet.py", line 86, in _getPort 2008-04-07 12:07:38-0400 [-] return getattr(reactor, 'listen'+self.method)(*self.args, **self.kwargs) 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/internet/posixbase.py", line 432, in listenUNIX 2008-04-07 12:07:38-0400 [-] p.startListening() 2008-04-07 12:07:38-0400 [-] File "/volumes/raider/webserver/ documents/dev/Twisted/twisted/internet/unix.py", line 89, in startListening 2008-04-07 12:07:38-0400 [-] raise CannotListenError, (None, self.port, le) 2008-04-07 12:07:38-0400 [-] twisted.internet.error.CannotListenError: Couldn't listen on any:logs/caldavd.sock: (22, 'Invalid argument'). -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com
Hi Jason, --On April 7, 2008 12:12:04 PM -0400 Jason Pruim <japruim@raoset.com> wrote:
2008-04-07 12:07:38-0400 [-] twisted.internet.error.CannotListenError: Couldn't listen on any:logs/caldavd.sock: (22, 'Invalid argument').
Do you have an existing logs/caldavd.sock file in place? If so, delete that. -- Cyrus Daboo
On Apr 7, 2008, at 12:15 PM, Cyrus Daboo wrote:
Hi Jason,
--On April 7, 2008 12:12:04 PM -0400 Jason Pruim <japruim@raoset.com> wrote:
2008-04-07 12:07:38-0400 [-] twisted.internet.error.CannotListenError: Couldn't listen on any:logs/caldavd.sock: (22, 'Invalid argument').
Do you have an existing logs/caldavd.sock file in place? If so, delete that.
Hi Cyrus, I did that and just to be safe I also delete logs/caldavd.pid
-- Cyrus Daboo
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 At 12:19 -0400 4/7/2008, Jason Pruim wrote:
I did that and just to be safe I also delete logs/caldavd.pid
You should also delete caldavd.sock. I've found that after my iMac (running OS X 10.5.2) reboots after a power loss, the .sock file needs to be manually deleted before CalendarServer will start up properly. Note that I haven't updated CalendarServer since I first installed it a few months ago, so it's possible that this problem doesn't occur anymore. -----BEGIN PGP SIGNATURE----- Version: 9.8.2.3005 wj8DBQFH+kq3DlQHnMkeAWMRAuJQAJ90iJMKTLrRR2YwU6Tqg4ESMkkwzQCg1l0c RxyxpgYr+nFxmCKBjB5NM/Q= =8i9k -----END PGP SIGNATURE----- -- Julian Y. Koh <mailto:kohster@northwestern.edu> Network Engineer <phone:847-467-5780> Telecommunications and Network Services Northwestern University PGP Public Key:<http://bt.ittns.northwestern.edu/julian/pgppubkey.html>
On Mon, Apr 07, 2008 at 11:24:24AM -0500, Julian Y. Koh wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
At 12:19 -0400 4/7/2008, Jason Pruim wrote:
I did that and just to be safe I also delete logs/caldavd.pid
You should also delete caldavd.sock. I've found that after my iMac (running OS X 10.5.2) reboots after a power loss, the .sock file needs to be manually deleted before CalendarServer will start up properly. Note that I haven't updated CalendarServer since I first installed it a few months ago, so it's possible that this problem doesn't occur anymore.
I've also experienced this behavior, and I've submitted a bug (ticket #263) about this. I'm still only running release 1.1 of the calendar server, though, so I don't know if this has been fixed in release 1.2 or on the trunk. Certainly nobody's added any notes to the bug report indicating that it's been fixed. The server restarted just fine after I moved the logs directory out of the way. Richard
I'm running 1.3 and had to add a 'rm <caldavrun_dir>/*.sock' to the startup script for this. On Apr 7, 2008, at 10:33 AM, Richard Cobbe wrote:
On Mon, Apr 07, 2008 at 11:24:24AM -0500, Julian Y. Koh wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
At 12:19 -0400 4/7/2008, Jason Pruim wrote:
I did that and just to be safe I also delete logs/caldavd.pid
You should also delete caldavd.sock. I've found that after my iMac (running OS X 10.5.2) reboots after a power loss, the .sock file needs to be manually deleted before CalendarServer will start up properly. Note that I haven't updated CalendarServer since I first installed it a few months ago, so it's possible that this problem doesn't occur anymore.
I've also experienced this behavior, and I've submitted a bug (ticket #263) about this. I'm still only running release 1.1 of the calendar server, though, so I don't know if this has been fixed in release 1.2 or on the trunk. Certainly nobody's added any notes to the bug report indicating that it's been fixed.
The server restarted just fine after I moved the logs directory out of the way.
Richard _______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
On Apr 7, 2008, at 1:52 PM, Scott Buchanan wrote:
I'm running 1.3 and had to add a 'rm <caldavrun_dir>/*.sock' to the startup script for this.
Even after manually removing the .sock file I have the same result... Invalid argument. I will be taking a look at the ticket number though in a little bit.
On Apr 7, 2008, at 10:33 AM, Richard Cobbe wrote:
On Mon, Apr 07, 2008 at 11:24:24AM -0500, Julian Y. Koh wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
At 12:19 -0400 4/7/2008, Jason Pruim wrote:
I did that and just to be safe I also delete logs/caldavd.pid
You should also delete caldavd.sock. I've found that after my iMac (running OS X 10.5.2) reboots after a power loss, the .sock file needs to be manually deleted before CalendarServer will start up properly. Note that I haven't updated CalendarServer since I first installed it a few months ago, so it's possible that this problem doesn't occur anymore.
I've also experienced this behavior, and I've submitted a bug (ticket #263) about this. I'm still only running release 1.1 of the calendar server, though, so I don't know if this has been fixed in release 1.2 or on the trunk. Certainly nobody's added any notes to the bug report indicating that it's been fixed.
The server restarted just fine after I moved the logs directory out of the way.
Richard _______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
-- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com
I was just looking at some stuff in regards to my issue with not being able to start the calendarserver because of an invalid argument, and I wondered if since it looks like I have python 2.3 AND python 2.5.2 running if that could cause an issue? It appears that I never got rid of 2.3 on my server when I upgraded to 2.5 and though maybe something with that was screwing things up? Is that possible? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com
Hi Jason, --On April 7, 2008 12:19:08 PM -0400 Jason Pruim <japruim@raoset.com> wrote:
Couldn't listen on any:logs/caldavd.sock: (22, 'Invalid argument').
Do you have an existing logs/caldavd.sock file in place? If so, delete that.
Hi Cyrus,
I did that and just to be safe I also delete logs/caldavd.pid
OK, could be a permissions problem then. Verify the file permissions on logs and check what user you are running the server as (maybe try sudo first). -- Cyrus Daboo
On Apr 7, 2008, at 12:26 PM, Cyrus Daboo wrote:
Hi Jason,
--On April 7, 2008 12:19:08 PM -0400 Jason Pruim <japruim@raoset.com> wrote:
Couldn't listen on any:logs/caldavd.sock: (22, 'Invalid argument').
Do you have an existing logs/caldavd.sock file in place? If so, delete that.
Hi Cyrus,
I did that and just to be safe I also delete logs/caldavd.pid
OK, could be a permissions problem then. Verify the file permissions on logs and check what user you are running the server as (maybe try sudo first).
Tried it with: sudo ./run and had the same error, then just to make sure I "sued" over to root (Since i have the access) and tried: ./run with the same result, I looked at the permissions from workgroup manager ( I don't know much about checking permissions from the commandline) and it was listed as owner: japruim group: admin with read/write privileges to all the files/directories. Any other ideas? -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424-9337 www.raoset.com japruim@raoset.com
participants (5)
-
Cyrus Daboo
-
Jason Pruim
-
Julian Y. Koh
-
Richard Cobbe
-
Scott Buchanan