Connection made but no data transfers through Leopard server
I have just installed the CalendarServer onto a macMini home fileserver running leopard. Install went very smoothly although I must have made a wrong turn somewhere because when I try to access the server through my web browser the connection goes through but nothing returns. I have it setup identically on an ubuntu machine with no problem. after I kick off the daemon and attempt one request through the web browser no data comes back. If I turn off the daemon the I get the expected "Unable to connect" message. no access is reported in the log from when I try to reach the server. Here is what I get when I start the daemon: access.log: Log opened - server start: [Thu Feb 7 18:28:39 2008]. error.log: 2008-02-07 18:28:39-0800 [-] Log opened. 2008-02-07 18:28:39-0800 [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:39-0800 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:39-0800 [-] 2 processors found, configuring 2 processes. 2008-02-07 18:28:39-0800 [-] Adding pydirector service with configuration: /tmp/pydirXitwlw 2008-02-07 18:28:39-0800 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] Log opened. 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] Log opened. 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up document root at: /Users/Shared/Calendar/twistedcaldav/test/data/ 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up default ACEs on root resource 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up AdminPrincipals 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Added /principals/__uids__/admin/ as admin principal 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting root ACL 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up Timezone Cache 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring authentication for realm: myHostIP Realm 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up document root at: /Users/Shared/Calendar/twistedcaldav/test/data/ 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1) 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Could not start Kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: digest 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: basic 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring authentication wrapper 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up service 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x14ba2d0> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Adding server at 127.0.0.1:8010 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Adding SSL server at 127.0.0.1:8445 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8010 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14bb080> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8445 2008-02-07 18:28:40-0800 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up default ACEs on root resource 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up AdminPrincipals 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Added /principals/__uids__/admin/ as admin principal 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting root ACL 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up Timezone Cache 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring authentication for realm: boccaccio-home Realm 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Could not start Kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: digest 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: basic 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring authentication wrapper 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up service 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x14ba2d0> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Adding server at 127.0.0.1:8009 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Adding SSL server at 127.0.0.1:8444 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8009 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14bb080> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8444 2008-02-07 18:28:40-0800 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) -- View this message in context: http://www.nabble.com/Connection-made-but-no-data-transfers-through-Leopard-... Sent from the Calendar Server - Users mailing list archive at Nabble.com.
Methinks you might have forgotten to add your server's IP number to the BindAddress array in caldavd-dev.plist. By default, the server only responds to requests from localhost (127.0.0.1), i.e. the server itself. C.f. this post: http://lists.macosforge.org/pipermail/calendarserver- users/2007-November/000546.html HTH, /Emil 8 feb 2008 kl. 17.10 skrev tdog:
I have just installed the CalendarServer onto a macMini home fileserver running leopard.
Install went very smoothly although I must have made a wrong turn somewhere because when I try to access the server through my web browser the connection goes through but nothing returns. I have it setup identically on an ubuntu machine with no problem.
after I kick off the daemon and attempt one request through the web browser no data comes back. If I turn off the daemon the I get the expected "Unable to connect" message.
no access is reported in the log from when I try to reach the server. Here is what I get when I start the daemon:
access.log: Log opened - server start: [Thu Feb 7 18:28:39 2008].
error.log: 2008-02-07 18:28:39-0800 [-] Log opened. 2008-02-07 18:28:39-0800 [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:39-0800 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:39-0800 [-] 2 processors found, configuring 2 processes. 2008-02-07 18:28:39-0800 [-] Adding pydirector service with configuration: /tmp/pydirXitwlw 2008-02-07 18:28:39-0800 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] Log opened. 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] Log opened. 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twistd 2.5.0+rUnknown (/System/Library/Frameworks/Python.framework/Versions/2.5/Resources/ Python.app/Contents/MacOS/Python 2.5.1) starting up 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up document root at: /Users/Shared/Calendar/twistedcaldav/test/data/ 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResou rce'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up default ACEs on root resource 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up AdminPrincipals 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Added /principals/__uids__/admin/ as admin principal 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting root ACL 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up Timezone Cache 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring authentication for realm: myHostIP Realm 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring SudoDirectoryService with file: conf/sudoers.plist 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up document root at: /Users/Shared/Calendar/twistedcaldav/test/data/ 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResou rce'> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1) 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Could not start Kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: digest 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up scheme: basic 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring authentication wrapper 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Setting up service 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x14ba2d0> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Adding server at 127.0.0.1:8010 2008-02-07 18:28:40-0800 [-] [caldav-8010] [startup] Adding SSL server at 127.0.0.1:8445 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8010 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14bb080> 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] twisted.web2.channel.http.HTTPFactory starting on 8445 2008-02-07 18:28:40-0800 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-02-07 18:28:40-0800 [-] [caldav-8010] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up default ACEs on root resource 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up AdminPrincipals 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Added /principals/__uids__/admin/ as admin principal 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting root ACL 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up Timezone Cache 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring authentication for realm: boccaccio-home Realm 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [KerberosCredentialFactoryBase] getServerPrincipalDetails: ('Principal not found in keytab', -1) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Could not start Kerberos 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: digest 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up scheme: basic 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring authentication wrapper 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Setting up service 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x14ba2d0> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Adding server at 127.0.0.1:8009 2008-02-07 18:28:40-0800 [-] [caldav-8009] [startup] Adding SSL server at 127.0.0.1:8444 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8009 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x14bb080> 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] twisted.web2.channel.http.HTTPFactory starting on 8444 2008-02-07 18:28:40-0800 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2008-02-07 18:28:40-0800 [-] [caldav-8009] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock'))
-- View this message in context: http://www.nabble.com/Connection-made- but-no-data-transfers-through-Leopard-server-tp15348362p15348362.html Sent from the Calendar Server - Users mailing list archive at Nabble.com.
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
Emil Lundberg wrote:
Methinks you might have forgotten to add your server's IP number to the BindAddress array in caldavd-dev.plist. By default, the server only responds to requests from localhost (127.0.0.1), i.e. the server itself.
Thanks for the tip. Unfortunately I have insured that the "Network Hostname" is correct, I've even tried using the actual IP address for good measure. I have the "Bind Addresses" array set to nothing, so it should accept everything I believe. I am having the same problem regardless of being on the local network or from outside the network. I remember now that on ubuntu I had to set up something special in the fstab configuration. Is this also true for the mac? -- View this message in context: http://www.nabble.com/Connection-made-but-no-data-transfers-through-Leopard-... Sent from the Calendar Server - Users mailing list archive at Nabble.com.
Emil Lundberg wrote:
Methinks you might have forgotten to add your server's IP number to the BindAddress array in caldavd-dev.plist. By default, the server only responds to requests from localhost (127.0.0.1), i.e. the server itself.
Thanks for the tip. Unfortunately I have insured that the "Network Hostname" is correct, I've even tried using the actual IP address for good measure. I have the "Bind Addresses" array set to nothing, so it should accept everything I believe. I am having the same problem regardless of being on the local network or from outside the network.
So can you access the calendar from the server itself then? Try http://localhost:8008 in the browser to see if you get a login prompt. If this works, it's not listening on the real IP address. Although from your experience it looks like the server is silently ignoring your access attempts (firewall?). The file indeed says BindAddress can be left blank; nevertheless, try setting the BindAddress to the IP-address of the server. If you are not running a local DNS, the IP address is indeed your best bet for a ServerAdress. Also check the usual suspects: firewall configuration, editing the correct caldavd plist, using the correct port numbers, etc. The logs are not showing any signs of the service failing. Also try the following command in the Terminal (output will be different if you're not using the standard ports or are using a single core machine): $ netstat -an | grep 80 tcp4 0 0 127.0.0.1.8444 *.* LISTEN tcp4 0 0 127.0.0.1.8445 *.* LISTEN tcp4 0 0 127.0.0.1.8009 *.* LISTEN tcp4 0 0 127.0.0.1.8010 *.* LISTEN tcp4 0 0 <ip-address>.8443 *.* LISTEN tcp4 0 0 <ip-address>.8008 *.* LISTEN A *.8008 / *.8443 is also OK. Bottom line is; the server should be listening on the IP address of your server on ports 8008 (http) and 8443 (https), which then redirect to load-balancing threads on the localhost interface, one per CPU core. If the last two lines are also localhost, the server is not listening on the real IP address.
I remember now that on ubuntu I had to set up something special in the fstab configuration. Is this also true for the mac?
No disk/drive/volume configuration should be necessary (in fact, fstab.* is long since obsolete on OS X :-) best, E
Thanks for our help. I fell back on the ol' stand-by of removing everything and starting over. This time with success. Test service works. Now to setup actual accounts... -- View this message in context: http://www.nabble.com/Connection-made-but-no-data-transfers-through-Leopard-... Sent from the Calendar Server - Users mailing list archive at Nabble.com.
participants (2)
-
Emil Lundberg
-
tdog