View Issue Details

IDProjectCategoryView StatusLast Update
0003347SOGoWeb Calendarpublic2015-10-21 14:25
Reporterctardif Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
PlatformLinuxOSSMP DebianOS Version3.2.68-1+deb7u1
Product Version2.2.3 
Summary0003347: Some users' calendars show no events: c_startdate and/or c_enddate missing in record ?
Description

Hi,

I'm having an issue with some users' calendars, which do not show any events whenever we try to access it. This happens to the user when accessing Sogo as well to other users when they are importing the user's calendar.

Here's a little more details on the issue:

1) The user (mcyr2) synchronized her Sogo calendar with her Microsoft Outlook's calendar.

2) My user has a "clean" calendar, one in which I can add/edit/delete/etc. events and have the events show in the calendar.

3) As soon as I enable mcyr2's calendar, it stops showing any event/task. Here's what the logs show in that case:

2015-09-16 10:27:32.955 sogod[5635] Note: Using UTF-8 as URL encoding in NGExtensions.
199.21.216.30 - - [16/Sep/2015:10:27:33 GMT] "GET /SOGo/so/libeo/Calendar/view HTTP/1.1" 200 13921/0 0.910 50516 72% 240K
199.21.216.30 - - [16/Sep/2015:10:27:34 GMT] "POST /SOGo/so/libeo/Calendar/personal/canAccessContent HTTP/1.1" 204 0/0 0.016 - - 4K
199.21.216.30 - - [16/Sep/2015:10:27:34 GMT] "POST /SOGo/so/libeo/Calendar/mcyr2_personal/canAccessContent HTTP/1.1" 204 0/0 0.027 - - 0
199.21.216.30 - - [16/Sep/2015:10:27:34 GMT] "POST /SOGo/so/libeo/Calendar/alarmslist?browserTime=1442413654 HTTP/1.1" 200 59/0 0.106 - - 0
199.21.216.30 - - [16/Sep/2015:10:27:34 GMT] "POST /SOGo/so/libeo/Calendar/weekview HTTP/1.1" 200 2174/0 0.094 45141 95% 0
199.21.216.30 - - [16/Sep/2015:10:27:34 GMT] "POST /SOGo/so/libeo/Calendar/taskslist?show-completed=0&asc=true&sort=end HTTP/1.1" 200 2/0 0.115 - - 0
<0xB8658040[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_startdate' in record?
<0xB8658040[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_enddate' in record?
2015-09-16 10:27:34.334 sogod[4906] NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil!
EXCEPTION: <NSException: 0x7fa4b93bcad0> NAME:NSInternalInconsistencyException REASON:NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil! INFO:(null)
EXCEPTION: <NSException: 0x7fa4b8081fb0> NAME:NSInvalidArgumentException REASON:nil argument for compare: INFO:(null)
<0x0x7fa4b7a20330[WOWatchDogChild]> child 4906 exited
<0x0x7fa4b7a20330[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7765
EXCEPTION: <NSException: 0x7fa4b89522a0> NAME:NSInvalidArgumentException REASON:nil argument for compare: INFO:(null)
<0x0x7fa4b78a18f0[WOWatchDogChild]> child 5635 exited
<0x0x7fa4b78a18f0[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7768
2015-09-16 10:27:34.487 sogod[7765] Note: Using UTF-8 as URL encoding in NGExtensions.
<0x0x7fa4b7c09a60[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x7fa4b7c09a60[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
<0xB936AE10[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_startdate' in record?
<0xB936AE10[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_enddate' in record?
2015-09-16 10:27:34.505 sogod[23143] NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil!
EXCEPTION: <NSException: 0x7fa4ba4c4e90> NAME:NSInternalInconsistencyException REASON:NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil! INFO:(null)
<0x0x7fa4b78c2bd0[WOWatchDogChild]> child 22986 exited
<0x0x7fa4b78c2bd0[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7770
2015-09-16 10:27:34.543 sogod[7765] Note(SoObject): SoDebugKeyLookup is enabled!
2015-09-16 10:27:34.543 sogod[7765] Note(SoObject): SoDebugBaseURL is enabled!
2015-09-16 10:27:34.543 sogod[7765] Note(SoObject): relative base URLs are enabled.
<0x0x7fa4b7da6710[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table
<0x0x7fa4b7da6710[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table
<0x0x7fa4b7da6710[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table
<0x0x7fa4b78cf900[WOWatchDogChild]> child 23143 exited
<0x0x7fa4b78cf900[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7771
<0xB9775D00[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_startdate' in record?
<0xB9775D00[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_enddate' in record?
2015-09-16 10:27:34.662 sogod[869] NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil!
EXCEPTION: <NSException: 0x7fa4b9ad9fb0> NAME:NSInternalInconsistencyException REASON:NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil! INFO:(null)
2015-09-16 10:27:34.680 sogod[7770] Note: Using UTF-8 as URL encoding in NGExtensions.
<0x0x7fa4b7c09c60[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x7fa4b7c09c60[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
<0x0x7fa4b7a3fd00[WOWatchDogChild]> child 869 exited
<0x0x7fa4b7a3fd00[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7775
EXCEPTION: <NSException: 0x7fa4b818cb10> NAME:NSInvalidArgumentException REASON:nil argument for compare: INFO:(null)
<0x0x7fa4b7a20330[WOWatchDogChild]> child 7765 exited
<0x0x7fa4b7a20330[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b7a20330[WOWatchDogChild]> avoiding to respawn child before 2015-09-16 10:27:39 -0400
2015-09-16 10:27:34.707 sogod[7771] Note: Using UTF-8 as URL encoding in NGExtensions.
<0x0x7fa4b7c09a00[SOGoCache]> Cache cleanup interval set every 300.000000 seconds
<0x0x7fa4b7c09a00[SOGoCache]> Using host(s) '127.0.0.1' as server(s)
2015-09-16 10:27:34.723 sogod[7770] Note(SoObject): SoDebugKeyLookup is enabled!
2015-09-16 10:27:34.733 sogod[7770] Note(SoObject): SoDebugBaseURL is enabled!
2015-09-16 10:27:34.733 sogod[7770] Note(SoObject): relative base URLs are enabled.
<0x0x7fa4b7da69b0[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table
<0x0x7fa4b7da69b0[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table
<0x0x7fa4b7da69b0[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table
2015-09-16 10:27:34.748 sogod[7771] Note(SoObject): SoDebugKeyLookup is enabled!
2015-09-16 10:27:34.749 sogod[7771] Note(SoObject): SoDebugBaseURL is enabled!
2015-09-16 10:27:34.749 sogod[7771] Note(SoObject): relative base URLs are enabled.
<0x0x7fa4b7da66c0[SOGoWebDAVAclManager]> entry '{DAV:}write' already exists in DAV permissions table
<0x0x7fa4b7da66c0[SOGoWebDAVAclManager]> entry '{DAV:}write-properties' already exists in DAV permissions table
<0x0x7fa4b7da66c0[SOGoWebDAVAclManager]> entry '{DAV:}write-content' already exists in DAV permissions table
EXCEPTION: <NSException: 0x7fa4b818ca50> NAME:NSInvalidArgumentException REASON:nil argument for compare: INFO:(null)
<0xB7DD0600[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_startdate' in record?
<0xB7DD0600[SOGoAppointmentFolder]:mcyr2_personal> missing 'c_enddate' in record?
2015-09-16 10:27:34.833 sogod[7770] NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil!
EXCEPTION: <NSException: 0x7fa4b81ada40> NAME:NSInternalInconsistencyException REASON:NGCalendarDateRange.m:37 Assertion failed in NGCalendarDateRange(instance), method initWithStartDate:endDate:. startDate MUST NOT be nil! INFO:(null)
<0x0x7fa4b78cf900[WOWatchDogChild]> child 7771 exited
<0x0x7fa4b78cf900[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b78cf900[WOWatchDogChild]> avoiding to respawn child before 2015-09-16 10:27:39 -0400
<0x0x7fa4b78c2bd0[WOWatchDogChild]> child 7770 exited
<0x0x7fa4b78c2bd0[WOWatchDogChild]> (terminated due to signal 6)
<0x0x7fa4b78c2bd0[WOWatchDogChild]> avoiding to respawn child before 2015-09-16 10:27:39 -0400
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7779
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7780
<0x0x7fa4b7973a30[WOWatchDog]> child spawned with pid 7781

I have looked into the database tables for this user (sogomcyr200a39fb4ae2, sogomcyr200a39fb4ae2_acl and sogomcyr200a39fb4ae2_quick) and found no record with c_startdate or c_enddate being NULL or equal to 0. I even skimmed through the "c_content" field of the sogomcyr200a39fb4ae2 table to make sure they have the "DTSTART" and "DTEND" fields in there ... I'm not 100% sure they're all good, but it looks good for those entries I checked. I need a better way to troubleshoot this :)

Thanks in advance for any help and/or pointers,
Carl

Steps To Reproduce

I'm able to reproduce the issue at will by importing "corrupted calendars", but only using already existing users, but I never was able to find ways to corrupt the calendar myself.

For this reason, I have a limited understanding of the issue. I kinda hope it's a known issue, but was unable to a solution that would solve my problem in this bug tracker.

Additional Information

I have found some issues searching for "c_startdate in record?" and "c_enddate in record?" but nothing that worked for this issue.

TagsNo tags attached.

Activities

ludovic

ludovic

2015-09-16 17:03

reporter   ~0008924

How did the synchronization with Outlook's calendar happen in the first place?

ctardif

ctardif

2015-09-16 17:13

reporter   ~0008925

Hi Ludovic,

Sorry, forgot to include the information. We configured the OpenChange connector for SOGo for the Microsoft Outlook integration.

ludovic

ludovic

2015-09-16 17:17

reporter   ~0008926

Strange - on top of my head, I have no clue how this can happen.

Find the culprit entries in the quick table for the mcyr2 user by looking at the c_startdate/c_enddate columns. Remove the entries from the quick and content table based on the c_name equality.

Also, v2.3.2 is set to be released with many OpenChange fixes. You can either wait a few hours before it's released or switch to the nightly build for improved stability.

ctardif

ctardif

2015-09-16 18:05

reporter   ~0008927

The thing is, there is not a single entry that could be the culprit. They all have a c_startdate and c_enddate file in the quick table. If I do find one, I'll purge them from the database, making sure to delete correctly.

Meanwhile I've asked my user to try and find such events with no start or end date, if she can.

For now, I'll wait for the update and keep you informed if it helps at all. This said, it might be a while before we're authorized to do the update.

Thanks for your time, I'll keep you posted.

ctardif

ctardif

2015-09-25 18:29

reporter   ~0008962

I haven't had time to update the system yet and will be taken for a while still.

I would agree with you closing this issue. If, after an update, I still have the issue, I will create a new incident and take more time to debug and have more pertinent informations on the issue.

Thanks.

ludovic

ludovic

2015-09-25 18:30

reporter   ~0008963

The issue was not closed in the first place. Its status and severity changed, that's it.

ctardif

ctardif

2015-09-25 19:28

reporter   ~0008964

No worries, I had noticed it wasn't closed but was proposing you could close it if you feel like it's taking too long for me to do the update and give feedback.

Or I'll keep you informed here.

Have a good day !

ctardif

ctardif

2015-10-20 20:29

reporter   ~0009017

We were able to work around the issue by deleting the offending calendars, creating new ones and re-importing the calendar data.

For now, it seems to be resolved, so I would close this one since I will not be able to supply pertinent information that would allow for troubleshooting the issue (and also since I'm not convinced the issue was with SOGo itself).

Thanks for your time.

Issue History

Date Modified Username Field Change
2015-09-16 17:00 ctardif New Issue
2015-09-16 17:03 ludovic Note Added: 0008924
2015-09-16 17:13 ctardif Note Added: 0008925
2015-09-16 17:17 ludovic Note Added: 0008926
2015-09-16 18:05 ctardif Note Added: 0008927
2015-09-25 17:25 ludovic Severity block => minor
2015-09-25 17:25 ludovic Status new => feedback
2015-09-25 18:29 ctardif Note Added: 0008962
2015-09-25 18:29 ctardif Status feedback => new
2015-09-25 18:30 ludovic Note Added: 0008963
2015-09-25 19:28 ctardif Note Added: 0008964
2015-10-20 20:29 ctardif Note Added: 0009017
2015-10-21 14:25 ludovic Status new => closed
2015-10-21 14:25 ludovic Assigned To => ludovic
2015-10-21 14:25 ludovic Resolution open => no change required