Hi, Well at least I know it's possible to get this working. Here's the steps that I've taken to install;
I followed this site for instructions: http://www.firewing1.com/node/582 1) I used a Base CentOS 6.0 VirtualBox VM from here: http://sourceforge.net/projects/virtualboximage/files/CentOS/6.0/CentOS-6-i386.7z/download 2) After starting the VM, I installed the following dependancies through yum: patch memcached krb5-devel python-zope-interface PyXML pyOpenSSL python-kerberos python-setuptools gcc gcc-c++ python-devel readline-devel zlib-devel make nss-devel openssl-devel groff cyrus-sasl cyrus-sasl-devel 3) I then did some VM cleanup, set the timezone, disable ipv6, set a static IP. 4) I enabled user_xattr on the root filesystem and then restarted. 5) I created a calendar user and then used this account to download and setup DSC: $cd /home/calendar/CalendarServer/v3.1 $svn svn checkout http://svn.calendarserver.org/repository/calendarserver/CalendarServer/tags/release/CalendarServer-3.1 CalendarServer $cd CalendarServer $./run At this point everything installs right. 6) Separate the installation files. I wanted to separate out the config and data files as per the firewing1 guide: $su - # setup data & document roots $mkdir -p /srv/CalendarServer/{Data,Documents} $chown -R daemon:daemon /srv/CalendarServer/ # setup installation root $mkdir -p /opt/CalendarServer/etc/caldavd $mkdir -p /opt/CalendarServer/var/run/caldavd $mkdir -p /opt/CalendarServer/var/log/caldavd # install DCS to installation root $cd /home/regularuser/CalendarServer/CalendarServer-2.4 $./run -i /opt/CalendarServer $rm -rf /opt/CalendarServer/usr/caldavd/caldavd.plist # copy sample configuration files $cp conf/servertoserver-test.xml /opt/CalendarServer/etc/caldavd/servertoserver.xml $cp conf/auth/accounts.xml /opt/CalendarServer/etc/caldavd/accounts.xml $cp conf/caldavd-test.plist /opt/CalendarServer/etc/caldavd/caldavd.plist $cp conf/sudoers.plist /opt/CalendarServer/etc/caldavd/sudoers.plist # change permissions; passwords are stored plaintext! $chmod 600 /opt/CalendarServer/etc/caldavd/* $/opt/CalendarServer/usr/bin/caldavd -T /opt/CalendarServer/usr/bin/twistd -f /opt/CalendarServer/etc/caldavd/caldavd.plist -X 7) I also modify the caldavd.plist with the name of the server, IP address, and data and document paths. 8) At this point running the above command gives me a 'ImportError: No module named twisted.scripts.twisted' 9) Searching for twistd, I find three locations: /home/calendar/CalendarServer/v3.1/Twisted/bin/twistd /home/calendar/CalendarServer/v3.1/Twisted/build/scripts-2.6/twistd /opt/CalendarServer/usr/bin/twistd 10) OK, so I'll try running the from the user/home/calendar directory: $cd /home/calendar/CalendarServer/v3.1/CalendarServer/bin $./caldavd -T ../../Twisted/bin/twistd -f ../conf/caldavd-dev.plist I get a "../../Twisted/bin/twistd: Unknown command: caldav" Error 11) OK, I'll try the build/scripts version $ ./caldavd -T ../../Twisted/build/scripts-2.6/twistd -f ../conf/caldavd-dev.plist Traceback (most recent call last): File "../../Twisted/build/scripts-2.6/twistd", line 18, in <module> from twisted.scripts.twistd import run ImportError: No module named twisted.scripts.twistd 12) OK, I'll just run the server: $./run -n Server starts up with the following details: Starting server... Reading configuration from file: /home/calendar/CalendarServer/v3.1/CalendarServer/conf/caldavd-dev.plist 2011-10-24 20:25:12-0600 [-] Log opened. 2011-10-24 20:25:12-0600 [-] twistd 11.0.0 (/usr/bin/python2.6 2.6.5) starting up. 2011-10-24 20:25:12-0600 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2011-10-24 20:25:12-0600 [-] calendarserver.accesslog.AMPLoggingFactory starting on "'./data/Logs/state/caldavd.sock'" 2011-10-24 20:25:12-0600 [-] calendarserver.tap.caldav.CalDAVStatisticsServer starting on "'./data/Logs/state/caldavd-stats.sock'" 2011-10-24 20:25:13-0600 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout 'waiting for server to start...' 2011-10-24 20:25:13-0600 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout '.' 2011-10-24 20:25:14-0600 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout '.' 2011-10-24 20:25:15-0600 [-] [txdav.base.datastore.subpostgres#info] received postgres stdout ' done\nserver started\n' 2011-10-24 20:25:15-0600 [-] [txdav.base.datastore.subpostgres#info] postgres process ended <twisted.python.failure.Failure <class 'twisted.internet.error.ProcessDone'>> 2011-10-24 20:25:15-0600 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Beginning database schema check. 2011-10-24 20:25:15-0600 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Required schema version: 3. 2011-10-24 20:25:15-0600 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Actual schema version: 3. 2011-10-24 20:25:15-0600 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Schema version check complete: no upgrade needed. 2011-10-24 20:25:15-0600 [-] [txdav.common.datastore.util.UpgradeDatabaseSchemaService#warn] Database schema check complete, launching database service. 2011-10-24 20:25:15-0600 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring augment service of type: <class 'twistedcaldav.directory.augment.AugmentXMLDB'> 2011-10-24 20:25:16-0600 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2011-10-24 20:25:16-0600 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring resource service of type: <class 'twistedcaldav.directory.xmlfile.XMLDirectoryService'> 2011-10-24 20:25:16-0600 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Configuring SudoDirectoryService with file: ./conf/sudoers.plist 2011-10-24 20:25:16-0600 [PooledMemCacheProtocol,client] [calendarserver.tap.util#info] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'> 2011-10-24 20:25:16-0600 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8008 2011-10-24 20:25:16-0600 [-] <class 'twext.web2.metafd.LimitingInheritingProtocolFactory'> starting on 8800 2011-10-24 20:25:16-0600 [-] [calendarserver.tap.caldav.CalDAVServiceMaker#info] Adding group caching service 2011-10-24 20:25:24-0600 [-] [groupcacher] 2011-10-24 20:25:24-0600 [-] Log opened. 2011-10-24 20:25:24-0600 [-] [groupcacher] 2011-10-24 20:25:24-0600 [-] twistd 11.0.0 (/usr/bin/python2.6 2.6.5) starting up. 2011-10-24 20:25:24-0600 [-] [groupcacher] 2011-10-24 20:25:24-0600 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2011-10-24 20:25:24-0600 [-] [groupcacher] 2011-10-24 20:25:24-0600 [-] [twistedcaldav.directory.directory.GroupMembershipCacherService#warn] Starting group membership cacher service 2011-10-24 20:25:25-0600 [-] [caldav-1] Reading configuration from file: /home/calendar/CalendarServer/v3.1/CalendarServer/conf/caldavd-dev.plist 2011-10-24 20:25:25-0600 [-] [caldav-1] [-] Log opened. 2011-10-24 20:25:25-0600 [-] [caldav-1] [-] twistd 11.0.0 (/usr/bin/python2.6 2.6.5) starting up. 2011-10-24 20:25:25-0600 [-] [caldav-1] [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2011-10-24 20:25:25-0600 [-] [caldav-0] Reading configuration from file: /home/calendar/CalendarServer/v3.1/CalendarServer/conf/caldavd-dev.plist 2011-10-24 20:25:25-0600 [-] [caldav-0] [-] Log opened. 2011-10-24 20:25:25-0600 [-] [caldav-0] [-] twistd 11.0.0 (/usr/bin/python2.6 2.6.5) starting up. 2011-10-24 20:25:25-0600 [-] [caldav-0] [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2011-10-24 20:25:25-0600 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('./data/Logs/state/caldavd.sock') PEER:UNIXAddress('')) 2011-10-24 20:25:25-0600 [calendarserver.accesslog.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXAddress('./data/Logs/state/caldavd.sock') PEER:UNIXAddress('')) 2011-10-24 20:25:25-0600 [-] [caldav-0] [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('./data/Logs/state/caldavd.sock')) 2011-10-24 20:25:25-0600 [-] [caldav-1] [-] AMP connection established (HOST:UNIXAddress(None) PEER:UNIXAddress('./data/Logs/state/caldavd.sock')) OK, great. Now, I should be able to open a calendar: $wget http://admin:admin@calendar1:8008/calendars/users/admin/calendar --2011-10-24 20:35:18-- http://admin:*password*@calendar1:8008/calendars/users/admin/calendar Resolving calendar1... 192.168.0.61 Connecting to calendar1|192.168.0.61|:8008... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://calendar1:8008/calendars/users/admin/calendar/ [following] --2011-10-24 20:35:19-- http://calendar1:8008/calendars/users/admin/calendar/ Reusing existing connection to calendar1:8008. HTTP request sent, awaiting response... 401 Unauthorized Authorization failed. $wget http://wsanchez:test@calendar1:8008/calendars/users/wsanchez/calendar --2011-10-24 20:36:07-- http://wsanchez:*password*@calendar1:8008/calendars/users/wsanchez/calendar Resolving calendar1... 192.168.0.61 Connecting to calendar1|192.168.0.61|:8008... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location: http://calendar1:8008/calendars/users/wsanchez/calendar/ [following] --2011-10-24 20:36:07-- http://calendar1:8008/calendars/users/wsanchez/calendar/ Reusing existing connection to calendar1:8008. HTTP request sent, awaiting response... 401 Unauthorized Authorization failed. However this is progress, looks like I don't have some of my credentials correct. I think the server issue might be PYTHONPATH or other environment issues. On 2011-10-24, at 4:27 PM, Glyph wrote: > I have had no trouble running it on linux :). > > It sounds like any one of a couple of dozen Python configuration issues could > be affecting you though. > > How are you installing the server? How are you running it? Why do "a few > versions of twisted" seem to be installed? > > My hunch is that you are invoking a Twisted installation that doesn't know > about Calendar Server (i.e. doesn't have the caldav twistd plugin available); > you've installed Calendar Server and Twisted in two different places. But > without knowing more about how exactly you've installed everything I don't > think I can offer any useful suggestions on what to do next. > > -glyhph > > On Oct 24, 2011, at 1:37 PM, H Plato wrote: > >> Has anyone been able to get v3.1 release working on linux? I installed a >> brand new fresh Centos 6.0 virtual machine, and managed to get past the >> postgres issue, the server appears to start up, however I get a connection >> refused when I try and access the ical >> http://username:pass@server/users/username/calendar (or whatever the URL >> is). >> >> interestingly enough, I can launch the server using ./run, but when I try >> and run the server through caldavd -T /path/to/twistd -f >> /path/to/config/file I get problems. There seems to be a few versions of >> twistd installed, using one gives a 'caldav not found' error, and the other >> gives a dependancy issue. >> >> It would be awesome to have a working VM to share. >> >> On Sat, Oct 22, 2011 at 8:00 AM, >> <calendarserver-users-requ...@lists.macosforge.org> wrote: >> >> Message: 1 >> Date: Fri, 21 Oct 2011 08:48:03 -0600 >> From: H Plato <hpl...@gmail.com> >> To: "calendarserver-users@lists.macosforge.org" >> <calendarserver-users@lists.macosforge.org> >> Subject: [CalendarServer-users] 3.1 release and postgresql >> Message-ID: <136fb766-7325-4fb6-8ce9-ef1b497fe...@gmail.com> >> Content-Type: text/plain; charset=us-ascii >> >> As my old server died, I'm in the process of installing a new dcs server. >> I've been able to get the dcs server installed, and started, however it dies >> trying to make a postmaster connection (I don't have the specifics as I'm >> away from my pc). Does dcs need postgresql? I have a local postgresql server >> that I've started in the same box, but no change. >> >> Lastly has anyone restored a calendar account to a new server? My Mac iCal >> client has all my appointments, I don't know how I can push these all to the >> new server. >> >> Sent from my mobile device. >> >> ------------------------------ >> >> _______________________________________________ >> calendarserver-users mailing list >> calendarserver-users@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users >> >> >> End of calendarserver-users Digest, Vol 63, Issue 4 >> *************************************************** >> >> _______________________________________________ >> calendarserver-users mailing list >> calendarserver-users@lists.macosforge.org >> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users >
_______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users