Hello list. I'm trying to get CalendarServer working on freebsd as the sf.net page says that it builds and runs here. The sf.net page points towards the bug tracker and I don't see any bugs listed there, but it needs coaxing to build pykerberos and pysqlite. After getting it built, it fails to start up. I'm mostly wondering if anyone has it running on FreeBSD and could give some tips before I sink a lot of time into trying to get it up and running. No need to reinvent the wheel, I figure, but if the wheel isn't invented yet...Anyhow, thanks for any help you can provide, Eric Kjeldergaard
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Eric D. Kjeldergaard wrote:
Hello list.
I'm trying to get CalendarServer working on freebsd as the sf.net page says that it builds and runs here. The sf.net page points towards the bug tracker and I don't see any bugs listed there, but it needs coaxing to build pykerberos and pysqlite. After getting it built, it fails to start up. I'm mostly wondering if anyone has it running on FreeBSD and could give some tips before I sink a lot of time into trying to get it up and running. No need to reinvent the wheel, I figure, but if the wheel isn't invented yet...Anyhow, thanks for any help you can provide,
Eric Kjeldergaard _______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
I got it running on FBSD 5.4, and it has been working fine... I had to make some tweaks to the run script to bypass things like PyKerberos and PySqlite though, IIRC, which was fine for me since I'm not using these components right now. - -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH8pfCgdfeCwsL5ERAnJuAJ9LxptbhvWA3d619XvsATD/6UAb9QCcDnYj IAlY0xC++Ekb9CDY+GUSz9g= =rptA -----END PGP SIGNATURE-----
Hi, On 13 Apr 2007, at 20:18, Eric D. Kjeldergaard wrote:
Hello list.
I'm trying to get CalendarServer working on freebsd as the sf.net page says that it builds and runs here. The sf.net page points towards the bug tracker and I don't see any bugs listed there, but it needs coaxing to build pykerberos and pysqlite. After getting it built, it fails to start up. I'm mostly wondering if anyone has it running on FreeBSD and could give some tips before I sink a lot of time into trying to get it up and running. No need to reinvent the wheel, I figure, but if the wheel isn't invented yet...Anyhow, thanks for any help you can provide,
I've got it working on two FreeBSD 6.2-R boxes not so long ago. Install the following ports: /usr/ports/textproc/py-xml /usr/ports/security/py-openssl /usr/ports/devel/py-dateutil /usr/ports/security/krb5 /usr/ports/databases/py-sqlite3/ /usr/ports/lang/python24/ /usr/ports/databases/py-pysqlite20/ The build will look for gssapi.h in /usr/include/gssapi. Kerberos installs this to /usr/local/include/gssapi, so I just did a symlink. # cd /usr/include # ln -s /usr/local/include/gssapi . Check out the trunk with SVN: # cd /usr/ports/devel/subversion/ # make -DWITH_MOD_DAV_SVN install (or ensure that svn --version tells you that you got the ra_dav module enabled). # svn checkout http://svn.macosforge.org/repository/calendarserver/ CalendarServer/trunk CalendarServer # cd CalendarServer # ./run Aha. This will probably fail. Change the path (first line) for bash from /bin/bash to /usr/local/bin/bash Now try it again: # ./run This will download and build the other dependencies like pyOpenSSL, PyKerberos, vobject, xattr, etc. # ./run Will complain about a missing configuration file: # cp conf/caldavd-test.plist conf/caldavd-dev.plist # ./run Fails again, this time with something like: "bin/caldavd: 47: Syntax error: Bad substitution" # vim ./bin/caldavd Modify the try_python () function to look like: == try_python () { local python="$1"; shift if [ -z "${python}" ]; then return 1; fi; if ! type "${python}" > /dev/null 2>&1; then return 1; fi; local py_version="24"; #local py_version="$(py_version "${python}")"; if [ "24" -lt "24" ]; then return 1; fi; #if [ "${py_version/./}" -lt "24" ]; then return 1; fi; return 0; } == Not neat at all, but it did the trick. I hope you use Python 2.4 (but as I mentioned it earlier, install it). # ./run It should start up now. (Oh, by default it will start the server to listen on 127.0.0.1, to change it edit conf/caldavd-dev.plist and look for the BindAddress section and change it). If you run into any problems, let me know and I'll try take a look. Cheers, Jaco -- bje@serendipity.org.za the faculty of making fortunate discoveries
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Would it make sense to work towards a FreeBSD port of CalendarServer using milestones, or best to wait on this? jaco engelbrecht wrote:
Hi,
On 13 Apr 2007, at 20:18, Eric D. Kjeldergaard wrote:
Hello list.
I'm trying to get CalendarServer working on freebsd as the sf.net page says that it builds and runs here. The sf.net page points towards the bug tracker and I don't see any bugs listed there, but it needs coaxing to build pykerberos and pysqlite. After getting it built, it fails to start up. I'm mostly wondering if anyone has it running on FreeBSD and could give some tips before I sink a lot of time into trying to get it up and running. No need to reinvent the wheel, I figure, but if the wheel isn't invented yet...Anyhow, thanks for any help you can provide,
I've got it working on two FreeBSD 6.2-R boxes not so long ago.
Install the following ports:
/usr/ports/textproc/py-xml /usr/ports/security/py-openssl /usr/ports/devel/py-dateutil /usr/ports/security/krb5 /usr/ports/databases/py-sqlite3/ /usr/ports/lang/python24/ /usr/ports/databases/py-pysqlite20/
The build will look for gssapi.h in /usr/include/gssapi. Kerberos installs this to /usr/local/include/gssapi, so I just did a symlink.
# cd /usr/include # ln -s /usr/local/include/gssapi .
Check out the trunk with SVN:
# cd /usr/ports/devel/subversion/ # make -DWITH_MOD_DAV_SVN install
(or ensure that svn --version tells you that you got the ra_dav module enabled).
# svn checkout http://svn.macosforge.org/repository/calendarserver/CalendarServer/trunk CalendarServer # cd CalendarServer # ./run
Aha. This will probably fail. Change the path (first line) for bash from /bin/bash to /usr/local/bin/bash
Now try it again:
# ./run
This will download and build the other dependencies like pyOpenSSL, PyKerberos, vobject, xattr, etc.
# ./run
Will complain about a missing configuration file:
# cp conf/caldavd-test.plist conf/caldavd-dev.plist
# ./run
Fails again, this time with something like: "bin/caldavd: 47: Syntax error: Bad substitution"
# vim ./bin/caldavd
Modify the try_python () function to look like:
==
try_python () { local python="$1"; shift
if [ -z "${python}" ]; then return 1; fi;
if ! type "${python}" > /dev/null 2>&1; then return 1; fi; local py_version="24"; #local py_version="$(py_version "${python}")"; if [ "24" -lt "24" ]; then return 1; fi; #if [ "${py_version/./}" -lt "24" ]; then return 1; fi;
return 0; }
==
Not neat at all, but it did the trick. I hope you use Python 2.4 (but as I mentioned it earlier, install it).
# ./run
It should start up now.
(Oh, by default it will start the server to listen on 127.0.0.1, to change it edit conf/caldavd-dev.plist and look for the BindAddress section and change it).
If you run into any problems, let me know and I'll try take a look.
Cheers, Jaco
-- bje@serendipity.org.za the faculty of making fortunate discoveries _______________________________________________ calendarserver-users mailing list calendarserver-users@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/calendarserver-users
- -- Joe Auty NetMusician: web publishing software for musicians http://www.netmusician.org joe@netmusician.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGH+Y6CgdfeCwsL5ERAmfAAJ9rPW8uA2m1+6nzajSWK45Nk3z7iQCgkTmT 52MUztW///ls6uHnloSKJb4= =GFOI -----END PGP SIGNATURE-----
If you'd like to start filing bugs for FreeBSD platform issues in Trac, that would be cool. Patches are also welcome, of course. -wsv On Apr 13, 2007, at 1:21 PM, Joe Auty wrote:
Would it make sense to work towards a FreeBSD port of CalendarServer using milestones, or best to wait on this?
— Wilfredo Sánchez - wsanchez@wsanchez.net
If you run into any problems, let me know and I'll try take a look.
Cheers, Jaco
-- bje@serendipity.org.za the faculty of making fortunate discoveries
Followed your instructions to a 't' and it made great progress. Thank you very much. It starts and runs listening and all. The problem I'm having is that when I try to access the server in my browser like so: http://localhost:8008/, I get an error: 2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Exception rendering: 2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Unhandled Error 2007-04-17 15:56:32-0500 [-] [caldav-8008] Traceback (most recent call last): 2007-04-17 15:56:32-0500 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-17 15:56:32-0500 [-] [caldav-8008] This traceback doesn't seem that useful to me, but maybe you can make some sense out of it. I'm using the default config file exactly as provided, actually, just moved it to the right location. Thanks again, Eric
Hi Eric, On 17 Apr 2007, at 22:58, Eric D. Kjeldergaard wrote:
Followed your instructions to a 't' and it made great progress. Thank you very much. It starts and runs listening and all. The problem I'm having is that when I try to access the server in my browser like so: http://localhost:8008/, I get an error:
2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Exception rendering: 2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Unhandled Error 2007-04-17 15:56:32-0500 [-] [caldav-8008] Traceback (most recent call last): 2007-04-17 15:56:32-0500 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-17 15:56:32-0500 [-] [caldav-8008]
Can you e-mail us everything that gets printed to your screen, after you start the server with "./run"? Like what I pasted below. I want to see if "Setting up document root at:" gives us a clue of what might be wrong. Can you also please attach conf/caldavd-dev.plist ? Jaco [root@tsogang /u2/src/CalendarServer]# ./run 2007-04-17 22:03:19+0100 [-] Log opened. 2007-04-17 22:03:19+0100 [-] twistd 2.5.0+rUnknown (/usr/local/bin/ python 2.4.4) starting up 2007-04-17 22:03:19+0100 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-17 22:03:19+0100 [-] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2007-04-17 22:03:19+0100 [-] Configuring SudoDirectoryService with file: conf/sudoers.plist 2007-04-17 22:03:19+0100 [-] Setting up document root at: twistedcaldav/test/data/ 2007-04-17 22:03:19+0100 [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResourc e'> 2007-04-17 22:03:19+0100 [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2007-04-17 22:03:19+0100 [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2007-04-17 22:03:19+0100 [-] Setting up default ACEs on root resource 2007-04-17 22:03:19+0100 [-] Setting up AdminPrincipals 2007-04-17 22:03:19+0100 [-] Added /principals/users/admin/ as admin principal 2007-04-17 22:03:19+0100 [-] Setting root ACL 2007-04-17 22:03:19+0100 [-] Configuring authentication for realm: Test Realm 2007-04-17 22:03:19+0100 [-] Setting up scheme: basic 2007-04-17 22:03:19+0100 [-] Configuring authentication wrapper 2007-04-17 22:03:19+0100 [-] Setting up service 2007-04-17 22:03:19+0100 [-] Configuring rotating log observer for file: logs/access.log 2007-04-17 22:03:19+0100 [-] Adding server at 127.0.0.1:8008 2007-04-17 22:03:19+0100 [-] Adding SSL server at 213.253.1.15:8443 2007-04-17 22:03:19+0100 [-] twisted.web2.channel.http.HTTPFactory starting on 8008 2007-04-17 22:03:19+0100 [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x8a63bac> 2007-04-17 22:03:19+0100 [-] twisted.web2.channel.http.HTTPFactory starting on 8443 2007-04-17 22:03:34+0100 [HTTPChannel,0,127.0.0.1] GET / HTTP/1.1
On Tuesday 17 April 2007 16:09, jaco engelbrecht wrote:
Hi Eric,
On 17 Apr 2007, at 22:58, Eric D. Kjeldergaard wrote:
Followed your instructions to a 't' and it made great progress. Thank you very much. It starts and runs listening and all. The problem I'm having is that when I try to access the server in my browser like so: http://localhost:8008/, I get an error:
2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Exception rendering: 2007-04-17 15:56:32-0500 [-] [caldav-8008] [-] Unhandled Error 2007-04-17 15:56:32-0500 [-] [caldav-8008] Traceback (most recent call last): 2007-04-17 15:56:32-0500 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-17 15:56:32-0500 [-] [caldav-8008]
Can you e-mail us everything that gets printed to your screen, after you start the server with "./run"?
Like what I pasted below. I want to see if "Setting up document root at:" gives us a clue of what might be wrong.
Can you also please attach conf/caldavd-dev.plist ?
Jaco
[root@tsogang /u2/src/CalendarServer]# ./run 2007-04-17 22:03:19+0100 [-] Log opened. 2007-04-17 22:03:19+0100 [-] twistd 2.5.0+rUnknown (/usr/local/bin/ python 2.4.4) starting up 2007-04-17 22:03:19+0100 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-17 22:03:19+0100 [-] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2007-04-17 22:03:19+0100 [-] Configuring SudoDirectoryService with file: conf/sudoers.plist 2007-04-17 22:03:19+0100 [-] Setting up document root at: twistedcaldav/test/data/ 2007-04-17 22:03:19+0100 [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResourc e'> 2007-04-17 22:03:19+0100 [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2007-04-17 22:03:19+0100 [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2007-04-17 22:03:19+0100 [-] Setting up default ACEs on root resource 2007-04-17 22:03:19+0100 [-] Setting up AdminPrincipals 2007-04-17 22:03:19+0100 [-] Added /principals/users/admin/ as admin principal 2007-04-17 22:03:19+0100 [-] Setting root ACL 2007-04-17 22:03:19+0100 [-] Configuring authentication for realm: Test Realm 2007-04-17 22:03:19+0100 [-] Setting up scheme: basic 2007-04-17 22:03:19+0100 [-] Configuring authentication wrapper 2007-04-17 22:03:19+0100 [-] Setting up service 2007-04-17 22:03:19+0100 [-] Configuring rotating log observer for file: logs/access.log 2007-04-17 22:03:19+0100 [-] Adding server at 127.0.0.1:8008 2007-04-17 22:03:19+0100 [-] Adding SSL server at 213.253.1.15:8443 2007-04-17 22:03:19+0100 [-] twisted.web2.channel.http.HTTPFactory starting on 8008 2007-04-17 22:03:19+0100 [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x8a63bac> 2007-04-17 22:03:19+0100 [-] twisted.web2.channel.http.HTTPFactory starting on 8443 2007-04-17 22:03:34+0100 [HTTPChannel,0,127.0.0.1] GET / HTTP/1.1
Sure, here's what I've got (follows message). The config file is attached. The only thing I know of that's "weird" about this (vs. the instructions posted) is that when py-sqlite3 got installed, it required python 2.5. That does seem like it would e a problem and if that's related to this, then I'm sure I can work out some other way to get py-sqlite3. Thanks, Eric 2007-04-17 11:10:48-0500 [-] Log opened. 2007-04-17 11:10:48-0500 [-] twistd 2.5.0+rUnknown (/usr/local/bin/python 2.4.3) starting up 2007-04-17 11:10:48-0500 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-17 11:10:48-0500 [-] Could not autodetect number of CPUs: 2007-04-17 11:10:48-0500 [-] getNCPU not supported on freebsd6 2007-04-17 11:10:48-0500 [-] twistedcaldav.logging.AMPLoggingFactory starting on "'logs/caldavd.sock'" 2007-04-17 11:10:49-0500 [-] [caldav-8008] [-] Log opened. 2007-04-17 11:10:49-0500 [-] [caldav-8008] [-] twistd 2.5.0+rUnknown (/usr/local/bin/python 2.4.3) starting up 2007-04-17 11:10:49-0500 [-] [caldav-8008] [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'> 2007-04-17 11:10:49-0500 [-] [caldav-8008] [-] Configuring directory service of type: twistedcaldav.directory.xmlfile.XMLDirectoryService 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Configuring SudoDirectoryService with file: conf/sudoers.plist 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up document root at: twistedcaldav/test/data/ 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up principal collection: <class 'twistedcaldav.directory.principal.DirectoryPrincipalProvisioningResource'> 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up calendar collection: <class 'twistedcaldav.static.CalendarHomeProvisioningFile'> 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up root resource: <class 'twistedcaldav.root.RootResource'> 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up default ACEs on root resource 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up AdminPrincipals 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Added /principals/users/admin/ as admin principal 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting root ACL 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Configuring authentication for realm: Test Realm 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up scheme: basic 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Configuring authentication wrapper 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Setting up service 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Configuring log observer: <twistedcaldav.logging.AMPCommonAccessLoggingObserver object at 0x8a82b4c> 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Adding server at 127.0.0.1:8008 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Adding SSL server at 127.0.0.1:8443 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8008 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x8a82bcc> 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] twisted.web2.channel.http.HTTPFactory starting on 8443 2007-04-17 11:10:50-0500 [twistedcaldav.logging.AMPLoggingFactory] AMPLoggingProtocol connection established (HOST:UNIXSocket('logs/caldavd.sock') PEER:UNIXSocket('')) 2007-04-17 11:10:50-0500 [-] [caldav-8008] [-] AMP connection established (HOST:UNIXSocket(None) PEER:UNIXSocket('logs/caldavd.sock')) 2007-04-17 11:45:58-0500 [-] [caldav-8008] [-] Exception rendering: 2007-04-17 11:45:58-0500 [-] [caldav-8008] [-] Unhandled Error 2007-04-17 11:45:58-0500 [-] [caldav-8008] Traceback (most recent call last): 2007-04-17 11:45:58-0500 [-] [caldav-8008] Failure: twisted.internet.error.ConnectError: An error occurred while connecting: 2: No such file or directory. 2007-04-17 11:45:58-0500 [-] [caldav-8008]
participants (4)
-
Eric D. Kjeldergaard
-
jaco engelbrecht
-
Joe Auty
-
Wilfredo Sánchez Vega