apple / ccs-calendarserver

The Calendar and Contacts Server.
https://www.calendarserver.org
Apache License 2.0
486 stars 136 forks source link

./run on mac OS 10.5.7 #274

Closed macosforgebot closed 14 years ago

macosforgebot commented 15 years ago

al@… originally submitted this as ticket:343


Wonder if anyone can help. I've been following the instructions on building and running CalendarServer. Everything ran fine until the final ./run when it halted at the following line.

2009-07-14 16:15:56+0100 [-] os.chown(dbPath, uid, gid)

2009-07-14 16:15:56+0100 [-] OSError: [Errno 1] Operation not permitted: '/Library/CalendarServer/Data/mailgatewaytokens.sqlite' launchctl bsexec failed: No such file or directory

Is this something I can fix? Thanks for any help!

macosforgebot commented 14 years ago

john@… originally submitted this as comment:1:⁠ticket:343


It's a long time since your report, I know; but I'm a new user here. I've just had what I presume is the same problem. (I can't be sure without seeing further context.)

For me, the fix was to ensure that the user and group names in /etc/caldavd-dev.plist:

<!--

Process management

-->

<key>UserName</key> <string>caldav</string>

<key>GroupName</key> <string>caldav</string>

were set to the same as those of the user running the caldavd daemon.

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:2:⁠ticket:343


Right, 10.5 doesn't have the calendar user and group set up by default. Try daemon instead, or create the calendar records. Or configure these settings as blank, which will not try to change the user. (Don't do that if you launch as root, though.)

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:3:⁠ticket:343


Error message cleaned up in r5309

macosforgebot commented 14 years ago

@wsanchez originally submitted this as comment:4:⁠ticket:343