View Issue Details

IDProjectCategoryView StatusLast Update
0003305SOGoBackend Calendarpublic2015-08-13 13:24
Reporternspeelman Assigned Toludovic  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Platform[Server] LinuxOSUbuntuOS Version14.04 LTS
Product Version2.3.1 
Summary0003305: Cannot add calendar items with MySQL configuration
Description

When I add a new event in my calendar (webinterface or in evolution through the webDAV interface) the event doesn't show up in the calendar. The error that is found is shown below. My assessment is that the "Aug 12 15:38:17 sogod [6397]: [ERROR] <0x0x7fa4a44f55b8[GCSFolder]> -[GCSFolder _generateInsertStatementForRow:adaptor:tableName:]: no type found for column name c_description" part is the main problem. I'm running my server from an external Samba4 LDAP server with an external MySQL server as my calendar and contacts store. I've also run the sql-update-2.2.17_to_2.3.0.sh update script and the c_description column is present in my SQL tables, but as said no calendar items are stored.

Aug 12 15:38:17 sogod [6397]: <0x0x7fa4a44f55b8[GCSFolder]> should store content: '18FD-55CB4C00-19-79F91080.ics'
BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 2.3.1//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Amsterdam
X-LIC-LOCATION:Europe/Amsterdam
BEGIN:DAYLIGHT
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
TZNAME:CEST
DTSTART:19700329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
END:DAYLIGHT
BEGIN:STANDARD
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
TZNAME:CET
DTSTART:19701025T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:18FD-55CB4C00-19-79F91080
SUMMARY:Test
CLASS:PUBLIC
CREATED:20150812T133817Z
DTSTAMP:20150812T133817Z
LAST-MODIFIED:20150812T133817Z
DTSTART;TZID=Europe/Amsterdam:20150812T160000
DTEND;TZID=Europe/Amsterdam:20150812T170000
TRANSP:OPAQUE
END:VEVENT
END:VCALENDAR
Aug 12 15:38:17 sogod [6397]: <0x0x7fa4a44f55b8[GCSFolder]> store quick: {"c_category" = "<null>"; "c_classification" = 0; "c_component" = vevent; "c_description" = ""; "c_enddate" = 1439391600; "c_isallday" = 0; "c_iscycle" = 0; "c_isopaque" = 1; "c_location" = ""; "c_name" = "18FD-55CB4C00-19-79F91080.ics"; "c_nextalarm" = 0; "c_orgmail" = ""; "c_partstates" = ""; "c_priority" = 0; "c_sequence" = 0; "c_startdate" = 1439388000; "c_status" = 1; "c_title" = Test; "c_uid" = "18FD-55CB4C00-19-79F91080"; }
Aug 12 15:38:17 sogod [6397]: [ERROR] <0x0x7fa4a44f55b8[GCSFolder]> -[GCSFolder _generateInsertStatementForRow:adaptor:tableName:]: no type found for column name c_description
Aug 12 15:38:17 sogod [6397]: <0x0x7fa4a44f55b8[GCSFolder]> ERROR(-[GCSFolder writeContent:fromComponent:container:toName:baseVersion:]): cannot insert content : <MySQL4Exception: 0x7fa4a47226b8> NAME:ExecutionFailed REASON:Column count doesn't match value count at row 1
Aug 12 15:38:17 sogod [6397]: [ERROR] <0xA41C5508[SOGoAppointmentObject]:18FD-55CB4C00-19-79F91080.ics> write failed: <MySQL4Exception: 0x7fa4a47226b8> NAME:ExecutionFailed REASON:Column count doesn't match value count at row 1
(null) env=REMOTE_HOST "POST /SOGo/so/nico/Calendar/personal/18FD-55CB4C00-19-79F91080.ics/saveAsAppointment HTTP/1.1" 200 21/813 0.035 - - 0
(null) env=REMOTE_HOST "POST /SOGo/so/nico/Calendar/weekview?day=20150812 HTTP/1.1" 200 2235/0 0.018 54851 95% 0
Aug 12 15:38:18 sogod [6397]: [ERROR] <0x0x7fa4a44e6e08[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1439416799)) AND ((c_enddate IS NULL) OR (c_enddate >= 1439330400)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x7fa4a45b37d8> NAME:ExecutionFailed REASON:Unknown column 'b.c_description' in 'field list'
Aug 12 15:38:18 sogod [6397]: [ERROR] <0x0x7fa4a44e6e08[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1439416799)) AND ((c_cycleenddate IS NULL) OR (c_cycleenddate >= 1439330400)) AND (c_iscycle = 1)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x7fa4a45b98e8> NAME:ExecutionFailed REASON:Unknown column 'b.c_description' in 'field list'
Aug 12 15:38:18 sogod [6397]: [ERROR] <0xA465B928[SOGoAppointmentFolder]:personal> (-[SOGoAppointmentFolder fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:]): fetch failed!
(null) env=REMOTE_HOST "POST /SOGo/so/nico/Calendar/eventslist?asc=true&sort=start&day=20150812&filterpopup=view_today HTTP/1.1" 200 2/0 0.360 - - 0
(null) env=REMOTE_HOST "POST /SOGo/so/nico/Calendar/alarmslist?browserTime=1439386697 HTTP/1.1" 200 2/0 0.008 - - 0
Aug 12 15:38:19 sogod [6397]: [ERROR] <0x0x7fa4a423b128[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1439675999)) AND ((c_enddate IS NULL) OR (c_enddate >= 1439071200)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x7fa4a4553a78> NAME:ExecutionFailed REASON:Unknown column 'b.c_description' in 'field list'
Aug 12 15:38:19 sogod [6397]: [ERROR] <0x0x7fa4a423b128[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1439675999)) AND ((c_cycleenddate IS NULL) OR (c_cycleenddate >= 1439071200)) AND (c_iscycle = 1)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x7fa4a3c05e28> NAME:ExecutionFailed REASON:Unknown column 'b.c_description' in 'field list'
Aug 12 15:38:19 sogod [6397]: [ERROR] <0xA465B928[SOGoAppointmentFolder]:personal> (-[SOGoAppointmentFolder fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:]): fetch failed!

Steps To Reproduce
  1. Go to web interface
  2. Go to calendar
  3. Add new event
  4. Check the log for the error
TagsNo tags attached.

Activities

Christian Mack

Christian Mack

2015-08-13 07:25

developer   ~0008807

Seems like either your update of SOGo didn't succeed, or your MySQL Database is corrupt.

Could you check, if you have the newest versions of the SOPE packages too?
Els you should check your sogo database.

nspeelman

nspeelman

2015-08-13 07:43

reporter   ~0008808

To confirm if my database was indeed corrupt, I dropped it and created an empty one, which was then populated again by sogo, but I didn't have any luck in creating a calendar item so far. It just keeps giving me the same error message. And online I could only find one question which is related, but it doesn't have an answer yet. See https://lists.inverse.ca/sogo/arc/users/2015-06/msg00148.html

I've added the versions of both sogo and sope to the bottom of this post. I've furthermore added the database layout of my MySQL server for sogo.

dpkg -s sogo:

Package: sogo
Status: install ok installed
Priority: optional
Section: web
Installed-Size: 14266
Maintainer: Inverse Support <support@inverse.ca>
Architecture: amd64
Multi-Arch: same
Version: 2.3.1-1

dpkg -s sope4.9-gdl1-mysql:

Package: sope4.9-gdl1-mysql
Status: install ok installed
Priority: extra
Section: web
Installed-Size: 173
Maintainer: Inverse Support <support@inverse.ca>
Architecture: amd64
Source: sope
Version: 4.9.r1664.20150723

mysql> use sogo;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> show tables;
+-------------------------------+
| Tables_in_sogo |
+-------------------------------+
| sogoAdminist00175302890 |
| sogoAdminist00175302890_acl |
| sogoAdminist00175302890_quick |
| sogoAdminist0023c71345b |
| sogoAdminist0023c71345b_acl |
| sogoAdminist0023c71345b_quick |
| sogo_cache_folder_jill |
| sogo_cache_folder_nico |
| sogo_folder_info |
| sogo_sessions_folder |
| sogo_user_profile |
| sogojill0010573755d |
| sogojill0010573755d_acl |
| sogojill0010573755d_quick |
| sogojill0022cb36c94 |
| sogojill0022cb36c94_acl |
| sogojill0022cb36c94_quick |
| sogonico00130c60c38 |
| sogonico00130c60c38_acl |
| sogonico00130c60c38_quick |
| sogonico0016880dc00 |
| sogonico0016880dc00_acl |
| sogonico0016880dc00_quick |
| sogonico00251821f30 |
| sogonico00251821f30_acl |
| sogonico00251821f30_quick |
+-------------------------------+
26 rows in set (0.00 sec)

mysql> desc sogonico0016880dc00_quick;
+-------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+-------+
| c_name | varchar(255) | NO | PRI | NULL | |
| c_givenname | varchar(255) | YES | | NULL | |
| c_cn | varchar(255) | YES | | NULL | |
| c_sn | varchar(255) | YES | | NULL | |
| c_screenname | varchar(255) | YES | | NULL | |
| c_l | varchar(255) | YES | | NULL | |
| c_mail | varchar(255) | YES | | NULL | |
| c_o | varchar(255) | YES | | NULL | |
| c_ou | varchar(255) | YES | | NULL | |
| c_telephonenumber | varchar(255) | YES | | NULL | |
| c_categories | varchar(255) | YES | | NULL | |
| c_component | varchar(10) | NO | | NULL | |
+-------------------+--------------+------+-----+---------+-------+
12 rows in set (0.01 sec)

mysql> desc sogonico00251821f30_quick;
+-------------------+--------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+-------+
| c_name | varchar(255) | NO | PRI | NULL | |
| c_givenname | varchar(255) | YES | | NULL | |
| c_cn | varchar(255) | YES | | NULL | |
| c_sn | varchar(255) | YES | | NULL | |
| c_screenname | varchar(255) | YES | | NULL | |
| c_l | varchar(255) | YES | | NULL | |
| c_mail | varchar(255) | YES | | NULL | |
| c_o | varchar(255) | YES | | NULL | |
| c_ou | varchar(255) | YES | | NULL | |
| c_telephonenumber | varchar(255) | YES | | NULL | |
| c_categories | varchar(255) | YES | | NULL | |
| c_component | varchar(10) | NO | | NULL | |
+-------------------+--------------+------+-----+---------+-------+
12 rows in set (0.00 sec)

mysql> desc sogonico00130c60c38_quick;
+------------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+------------------+---------------+------+-----+---------+-------+
| c_name | varchar(255) | NO | PRI | NULL | |
| c_uid | varchar(255) | NO | | NULL | |
| c_startdate | int(11) | YES | | NULL | |
| c_enddate | int(11) | YES | | NULL | |
| c_cycleenddate | int(11) | YES | | NULL | |
| c_title | varchar(1000) | NO | | NULL | |
| c_participants | text | YES | | NULL | |
| c_isallday | int(11) | YES | | NULL | |
| c_iscycle | int(11) | YES | | NULL | |
| c_cycleinfo | text | YES | | NULL | |
| c_classification | int(11) | NO | | NULL | |
| c_isopaque | int(11) | NO | | NULL | |
| c_status | int(11) | NO | | NULL | |
| c_priority | int(11) | YES | | NULL | |
| c_location | varchar(255) | YES | | NULL | |
| c_orgmail | varchar(255) | YES | | NULL | |
| c_partmails | text | YES | | NULL | |
| c_partstates | mediumtext | YES | | NULL | |
| c_category | varchar(255) | YES | | NULL | |
| c_sequence | int(11) | YES | | NULL | |
| c_component | varchar(10) | NO | | NULL | |
| c_nextalarm | int(11) | YES | | NULL | |
| c_description | mediumtext | YES | | NULL | |
+------------------+---------------+------+-----+---------+-------+
23 rows in set (0.00 sec)

Christian Mack

Christian Mack

2015-08-13 08:10

developer   ~0008809

Package versions are OK.
The quick tables are also OK (2 address books = personal + collected; and one calendar = personal).

Are there any entries in the table sogonico00130c60c38_quick?
If not, could you try to insert something with the mysql client?

nspeelman

nspeelman

2015-08-13 08:38

reporter   ~0008810

I can insert data into my MySQL database, as shown below, but the entry doesn't show up in my calendar in the web interface. And the sogo log contains the error that is displayed below.

mysql> insert into sogonico00130c60c38_quick (c_name, c_uid, c_startdate, c_enddate, c_title, c_isallday, c_iscycle, c_classification, c_isopaque, c_status, c_priority, c_location, c_orgmail, c_partstates, c_sequence, c_component, c_nextalarm, c_description) VALUES ("18FD-55CB4C00-19-79F91080.ics", "18FD-55CB4C00-19-79F91080", 1439388000, 1439391600, "Test", 0, 0, 0, 1, 1, 0, "", "", "", 0, "vevent", 0, "");
Query OK, 1 row affected (0.32 sec)

mysql> select * from sogonico00130c60c38_quick;
+-------------------------------+---------------------------+-------------+------------+----------------+---------+----------------+------------+-----------+-------------+------------------+------------+----------+------------+------------+-----------+-------------+--------------+------------+------------+-------------+-------------+---------------+
| c_name | c_uid | c_startdate | c_enddate | c_cycleenddate | c_title | c_participants | c_isallday | c_iscycle | c_cycleinfo | c_classification | c_isopaque | c_status | c_priority | c_location | c_orgmail | c_partmails | c_partstates | c_category | c_sequence | c_component | c_nextalarm | c_description |
+-------------------------------+---------------------------+-------------+------------+----------------+---------+----------------+------------+-----------+-------------+------------------+------------+----------+------------+------------+-----------+-------------+--------------+------------+------------+-------------+-------------+---------------+
| 18FD-55CB4C00-19-79F91080.ics | 18FD-55CB4C00-19-79F91080 | 1439388000 | 1439391600 | NULL | Test | NULL | 0 | 0 | NULL | 0 | 1 | 1 | 0 | | | NULL | | NULL | 0 | vevent | 0 | |
+-------------------------------+---------------------------+-------------+------------+----------------+---------+----------------+------------+-----------+-------------+------------------+------------+----------+------------+------------+-----------+-------------+--------------+------------+------------+-------------+-------------+---------------+
1 row in set (0.00 sec)

Aug 13 10:36:16 sogod [6402]: [ERROR] <0x0x7fa4a42faf48[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1441490399)) AND ((c_enddate IS NULL) OR (c_enddate >= 1437861600)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x7fa4a4308ec8> NAME:ExecutionFailed REASON:Unknown column 'b.c_description' in 'field list'

Christian Mack

Christian Mack

2015-08-13 08:41

developer   ~0008811

Does the SELECT statement from the error message succeed when given on the mysql client?

nspeelman

nspeelman

2015-08-13 08:53

reporter   ~0008812

When I execute the exact SQL query in the CLI it indeed gives me an error that it cannot find the field b.c_description. If I modify the query to use a.c_description it does work (see below), but doesn't return anything, because the entered record is outside the date range for the query.

mysql> select b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,b.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1441490399)) AND ((c_enddate IS NULL) OR (c_enddate >= 1437861600)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL);
ERROR 1054 (42S22): Unknown column 'b.c_description' in 'field list'
mysql> select b.c_name,b.c_content,b.c_creationdate,b.c_lastmodified,b.c_version,a.c_component,a.c_title,a.c_location,a.c_orgmail,a.c_status,a.c_category,a.c_classification,a.c_isallday,a.c_isopaque,a.c_participants,a.c_partmails,a.c_partstates,a.c_sequence,a.c_priority,a.c_cycleinfo,a.c_iscycle,a.c_nextalarm,a.c_description,a.c_uid,a.c_startdate,a.c_enddate FROM sogonico00130c60c38_quick a, sogonico00130c60c38 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1441490399)) AND ((c_enddate IS NULL) OR (c_enddate >= 1437861600)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL);
Empty set (0.00 sec)

tfu

tfu

2015-08-13 09:50

reporter   ~0008813

Search for the file appointment.ocs starting from root.
If you find it in more then one location there is something wrong with your installation.
c_description should be mentioned in this file.

nspeelman

nspeelman

2015-08-13 10:52

reporter   ~0008814

I found multiple appointment.ocs files and fixed the issue. This seems to fix my issues.

Thanks.

This issue can be closed.

ludovic

ludovic

2015-08-13 13:24

reporter   ~0008819

Broken installation.

Issue History

Date Modified Username Field Change
2015-08-12 13:47 nspeelman New Issue
2015-08-13 07:25 Christian Mack Note Added: 0008807
2015-08-13 07:43 nspeelman Note Added: 0008808
2015-08-13 08:10 Christian Mack Note Added: 0008809
2015-08-13 08:38 nspeelman Note Added: 0008810
2015-08-13 08:41 Christian Mack Note Added: 0008811
2015-08-13 08:53 nspeelman Note Added: 0008812
2015-08-13 09:50 tfu Note Added: 0008813
2015-08-13 10:52 nspeelman Note Added: 0008814
2015-08-13 13:24 ludovic Note Added: 0008819
2015-08-13 13:24 ludovic Status new => closed
2015-08-13 13:24 ludovic Assigned To => ludovic
2015-08-13 13:24 ludovic Resolution open => no change required