Re: [CalendarServer-users] Status on FreeBSD
On 17/apr/07, at 18:35, David Reid wrote:
Since it is a ConnectionError it looks like it's probably one of the ControlSockets ... eithers logs/caldavd.sock or logs/caldavd- pydir.sock. If one of these doesn't exist then there should be another exception near the top, or printed when you ^C the server. - -David
Only caldavd.sock is present in logs, caldavd-pydir.sock is not there, here's the full output from starting the server to trying to access 192.168.200.6:8008 in a browser. -Gianni # ./run 2007-04-18 06:18:11+0200 [-] Log opened. 2007-04-18 06:18:11+0200 [-] twistd 2.5.0+rUnknown (/usr/local/bin/ python 2.4.3) starting up 2007-04-18 06:18:11+0200 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-18 06:18:11+0200 [-] Could not autodetect number of CPUs: 2007-04-18 06:18:11+0200 [-] getNCPU not supported on freebsd6 2007-04-18 06:18:11+0200 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Log opened. 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] twistd 2.5.0+rUnknown (/usr/local/bin/python 2.4.3) starting up 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Configuring SudoDirectoryService with file: conf/sudoers.plist 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up document root at: twistedcaldav/test/data/ 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResourc e'> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up default ACEs on root resource 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up AdminPrincipals 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Added /principals/ users/admin/ as admin principal 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting root ACL 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Configuring authentication for realm: Test Realm 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up scheme: basic 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Configuring authentication wrapper 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Setting up service 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x16be090> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Adding server at 192.168.200.6:8008 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Adding SSL server at 192.168.200.6:8443 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8008 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x16bf128> 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8443 2007-04-18 06:18:12+0200 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/ caldavd.sock') PEER:UNIXSocket('')) 2007-04-18 06:18:12+0200 [-] [caldav-8008] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2007-04-18 06:18:32+0200 [-] [caldav-8008] [-] Exception rendering: 2007-04-18 06:18:32+0200 [-] [caldav-8008] [-] Unhandled Error 2007-04-18 06:18:32+0200 [-] [caldav-8008] Traceback (most recent call last): 2007-04-18 06:18:32+0200 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-18 06:18:32+0200 [-] [caldav-8008] 2007-04-18 06:18:32+0200 [-] [caldav-8008] [-] Exception rendering: 2007-04-18 06:18:32+0200 [-] [caldav-8008] [-] Unhandled Error 2007-04-18 06:18:32+0200 [-] [caldav-8008] Traceback (most recent call last): 2007-04-18 06:18:32+0200 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-18 06:18:32+0200 [-] [caldav-8008] ^C2007-04-18 06:24:51+0200 [-] Received SIGINT, shutting down. 2007-04-18 06:24:51+0200 [-] (Port None Closed) 2007-04-18 06:24:51+0200 [AMPLoggingProtocol,0,] AMPLoggingProtocol connection lost (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket ('')) 2007-04-18 06:24:51+0200 [-] Main loop terminated. 2007-04-18 06:24:51+0200 [-] Server Shut Down.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Gianni, On Apr 17, 2007, at 9:27 PM, giannidoe@mac.com wrote:
On 17/apr/07, at 18:35, David Reid wrote:
Since it is a ConnectionError it looks like it's probably one of the ControlSockets ... eithers logs/caldavd.sock or logs/caldavd- pydir.sock. If one of these doesn't exist then there should be another exception near the top, or printed when you ^C the server. - -David
Only caldavd.sock is present in logs, caldavd-pydir.sock is not there, here's the full output from starting the server to trying to access 192.168.200.6:8008 in a browser. -Gianni
It's possible I'm not handling the single server case correctly and that it is trying to connect to the caldavd-pydir.sock (which isn't there because pydir isn't running.) You might try editing the config file to launch 2 processes and see if the problem still occurs. Could you please file a bug and assign it to me? I'll try to reproduce and hopefully fix the problem this afternoon. - -David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iD8DBQFGJmzgrsrO6aeULcgRAi7KAJ49m873TdxIF0MpeJ6bvHSKYaw6JgCgm7y5 duTjciAnV5Szj7Uwl9dvVII= =k6Rk -----END PGP SIGNATURE-----
On Apr 17, 2007, at 9:27 PM, giannidoe@mac.com wrote:
On 17/apr/07, at 18:35, David Reid wrote:
Since it is a ConnectionError it looks like it's probably one of the ControlSockets ... eithers logs/caldavd.sock or logs/caldavd- pydir.sock. If one of these doesn't exist then there should be another exception near the top, or printed when you ^C the server. - -David
Only caldavd.sock is present in logs, caldavd-pydir.sock is not there, here's the full output from starting the server to trying to access 192.168.200.6:8008 in a browser. -Gianni
It's possible I'm not handling the single server case correctly and that it is trying to connect to the caldavd-pydir.sock (which isn't there because pydir isn't running.) You might try editing the config file to launch 2 processes and see if the problem still occurs. Could you please file a bug and assign it to me? I'll try to reproduce and hopefully fix the problem this afternoon.
- -David
Hi David It seems that is indeed the case, when I configure the server to launch 2 processes it works fine. I've created an account on the site and tried to submit a bug ticket but it I don't have permission. -Gianni
Here you go: http://trac.macosforge.org/projects/calendarserver/ticket/162 -wsv On Apr 18, 2007, at 9:59 PM, giannidoe@mac.com wrote:
It seems that is indeed the case, when I configure the server to launch 2 processes it works fine. I've created an account on the site and tried to submit a bug ticket but it I don't have permission.
— Wilfredo Sánchez - wsanchez@wsanchez.net
participants (3)
-
David Reid
-
giannidoe@mac.com
-
Wilfredo Sánchez Vega