On Mar 8, 2013, at 1:01 PM, Robert Bruce <rbr...@celsiusinc.com> wrote:

> 
> Hi...
> 
> I just set up a postgres database and imported the tables and now the 
> calendar server is working!

Sweet! If possible we'd like to get a little more clarity on what did and did 
not work, using which server version (and in which configuration).

So, your previous attempts at 4.2 failed, but you gave it another go and now 
it's working? Did you need to customize the server configuration at all to make 
4.2 work? Was it simply a matter of pointing Calendar Server at your postgres 
database?

Were you trying to get anything newer than 2.x to work without a database?

While both 3.x and 4.x still support a flat-file (non-postgres) backend, it is 
not recommended for production, and exists only for testing purposes. 3.x and 
4.x should both default to using a database backend.

Just to confirm, you imported 
CalendarServer/txdav/common/datastore/sql_schema/current.sql, right?

Thx,
-dre

> 
> Thank you for your help.
> 
> 
> On 2013-03-08, at 2:52 PM, Andre LaBranche wrote:
> 
>> 
>> On Mar 8, 2013, at 11:09 AM, Robert Bruce <rbr...@celsiusinc.com> wrote:
>> 
>>> I want to thank you for helping me and pointing me in the right 
>>> direction... 
>>> 
>>> I'll get back to you soon with the requested logs… 
>> 
>> Great :) Hopefully we can get it sorted out quickly. If you have the 
>> ability, it might be good to try using a newer calendar client, e.g. from 
>> 10.7.x or 10.8.x - although we do expect that Snow client can work against 
>> our latest code.
>> 
>> -dre
>> 
>>> 
>>> On 2013-03-08, at 12:59 PM, Andre LaBranche wrote:
>>> 
>>>> 
>>>> On Mar 8, 2013, at 8:06 AM, Robert Bruce <rbr...@celsiusinc.com> wrote:
>>>> 
>>>>> So is there any way to disable the caching?  I really need a working 
>>>>> Calendar server...
>>>>> 
>>>>> Everything is working fine except having to do every operation twice to 
>>>>> get it to stick...
>>>> 
>>>> Something is pretty broken here; it's completely abnormal to have to do 
>>>> things twice to get them to stick.
>>>> 
>>>>> How can I debug this?  
>>>> 
>>>> We'll need a snapshot of client and server logs covering an example 
>>>> reproduction of the problem.
>>>> 
>>>> One easy way to collect iCal logs (without making any persistent changes 
>>>> to logging configuration) is to launch iCal using Terminal with some 
>>>> additional arguments.
>>>> 
>>>> 1) In a Terminal window, run the following, which launches iCal and sends 
>>>> all debug output to the terminal window (this is for Snow client. For 
>>>> Mountain Lion, see this document):
>>>> /Applications/iCal.app/Contents/MacOS/iCal -LogHTTPActivity YES 
>>>> -iTIPLogDetailedActivity YES -CalDAVNotificationLog YES
>>>> 
>>>> 2) Note the wall-clock time, then reproduce the problem (i.e. that you 
>>>> have to do things twice for them to stick).
>>>> 
>>>> 3) Note the time again, then control-c the terminal window to kill iCal, 
>>>> and save the entire transcript as a text file.
>>>> 
>>>> 4) Extract the relevant portions of the server's access.log and error.log, 
>>>> covering only the time during the problem reproduction please.
>>>> 
>>>> Finally, please reply (privately, as the logs contain some possibly 
>>>> sensitive info like email addresses, etc) with the above logs and we'll 
>>>> have a look!
>>>> 
>>>> Thx,
>>>> -dre
>>>> 
>>>>> 
>>>>> Thank you, 
>>>>> 
>>>>> 
>>>>> On 2013-03-07, at 12:09 PM, Cyrus Daboo wrote:
>>>>> 
>>>>>> Hi Robert,
>>>>>> 
>>>>>> --On March 7, 2013 at 12:04:56 PM -0500 Robert Bruce 
>>>>>> <rbr...@celsiusinc.com> wrote:
>>>>>> 
>>>>>>> ::ffff:192.168.1.38 - - [07/Mar/2013:12:03:02 -0400] "DELETE
>>>>>>> /calendars/__uids__/admin/calendar/AE195B52-8AD1-4F43-BB6B-2298EC72E889.i
>>>>>>> cs HTTP/1.1" 412 157 "-" "DAVKit/4.0.3 (732.2); CalendarStore/4.0.4
>>>>>>> (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)" i=1 or=1 t=12.7
>>>>>>> ::ffff:192.168.1.38 - admin [07/Mar/2013:12:03:02 -0400] "GET
>>>>>>> /calendars/__uids__/admin/calendar/AE195B52-8AD1-4F43-BB6B-2298EC72E889.i
>>>>>>> cs HTTP/1.1" 200 705 "-" "DAVKit/4.0.3 (732.2); CalendarStore/4.0.4
>>>>>>> (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)" i=1 or=1 t=22.4
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Second try delete works...
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> ::ffff:192.168.1.38 - admin [07/Mar/2013:12:03:51 -0400] "DELETE
>>>>>>> /calendars/__uids__/admin/calendar/AE195B52-8AD1-4F43-BB6B-2298EC72E889.i
>>>>>>> cs HTTP/1.1" 204 0 "-" "DAVKit/4.0.3 (732.2); CalendarStore/4.0.4
>>>>>>> (997.7); iCal/4.0.4 (1395.7); Mac OS X/10.6.8 (10K549)" i=1 or=1 t=511.1
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> The deletes that work are not followed by a GET...
>>>>>>> 
>>>>>> 
>>>>>> OK, so the client is doing a conditional DELETE request - i.e. it is 
>>>>>> asking the server to only do the DELETE if the resource on the server is 
>>>>>> unchanged from the one that the client originally cached. For some 
>>>>>> reason it is not, so a 412 error comes back, and the client reloads the 
>>>>>> resource using GET. The second DELETE then works fine.
>>>>>> 
>>>>>> Is the account in your client one that has been present all the time 
>>>>>> since you did the upgrade? If so, try removing the account from the 
>>>>>> client, then re-add it and let it resync all the data. Once it has done 
>>>>>> that, hopefully it will have the change state correctly cached and you 
>>>>>> won't see the double DELETEs (except for when a real change has taken 
>>>>>> place on the server that the client has not sync'd).
>>>>>> 
>>>>>> -- 
>>>>>> Cyrus Daboo

_______________________________________________
calendarserver-users mailing list
calendarserver-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/calendarserver-users

Reply via email to