View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003305 | SOGo | Backend Calendar | public | 2015-08-12 13:47 | 2015-08-13 13:24 |
| Reporter | nspeelman | Assigned To | ludovic | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | [Server] Linux | OS | Ubuntu | OS Version | 14.04 LTS |
| Product Version | 2.3.1 | ||||
| Summary | 0003305: 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' | ||||
| Steps To Reproduce |
| ||||
| Tags | No tags attached. | ||||
|
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? |
|
|
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 dpkg -s sope4.9-gdl1-mysql: Package: sope4.9-gdl1-mysql mysql> use sogo; Database changed mysql> desc sogonico0016880dc00_quick; mysql> desc sogonico00251821f30_quick; mysql> desc sogonico00130c60c38_quick; |
|
|
Package versions are OK. Are there any entries in the table sogonico00130c60c38_quick? |
|
|
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, ""); mysql> select * from sogonico00130c60c38_quick; 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' |
|
|
Does the SELECT statement from the error message succeed when given on the mysql client? |
|
|
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); |
|
|
Search for the file appointment.ocs starting from root. |
|
|
I found multiple appointment.ocs files and fixed the issue. This seems to fix my issues. Thanks. This issue can be closed. |
|
|
Broken installation. |
|
| 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 |