Description | I can't get SOGo to use the SQL tables for saving contacts or calendar entries. I have this in ~/GNUstep/Defaults/.GNUstepDefaults for the user sogo (anonymized the password the domain):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//GNUstep//DTD plist 0.9//EN" "http://www.gnustep.org/plist-0_9.xml">
<plist version="0.9">
<dict>
<key>NSGlobalDomain</key>
<dict>
</dict>
<key>gdnc</key>
<dict>
</dict>
<key>sogod</key>
<dict>
<key>GCSFolderDebugEnabled</key>
<string>YES</string>
<key>GCSFolderStoreDebugEnabled</key>
<string>YES</string>
<key>NGUseUTF8AsURLEncoding</key>
<string>YES</string>
<key>OCSFolderInfoURL</key>
<string>mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogo_folder_info</string>
<key>OCSFolderManagerSQLDebugEnabled</key>
<string>YES</string>
<key>SOGoACLsSendEMailNotifications</key>
<string>YES</string>
<key>SOGoAppointmentSendEMailNotifications</key>
<string>YES</string>
<key>SOGoAuthenticationMethod</key>
<string>LDAP</string>
<key>SOGoDefaultLanguage</key>
<string>German</string>
<key>SOGoDefaultMailDomain</key>
<string>domain.tld</string>
<key>SOGoDraftsFolderName</key>
<string>Drafts</string>
<key>SOGoFallbackIMAP4Server</key>
<string>localhost</string>
<key>SOGoFoldersSendEMailNotifications</key>
<string>YES</string>
<key>SOGoForceIMAPLoginWithEmail</key>
<string>YES</string>
<key>SOGoMailingMechanism</key>
<string>smtp</string>
<key>SOGoProfileURL</key>
<string>mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogo_user_profile</string>
<key>SOGoSMTPServer</key>
<string>localhost</string>
<key>SOGoSentFolderName</key>
<string>Sent</string>
<key>SOGoServerTimeZone</key>
<string>Europe/Zurich</string>
<key>SOGoTrashFolderName</key>
<string>Trash</string>
<key>SOGoUIxDefaultModule</key>
<string>Mail</string>
<key>SOGoUserSources</key>
<array>
<dict>
<key>canAuthenticate</key>
<string>YES</string>
<key>id</key>
<string>maillogin</string>
<key>isAddressBook</key>
<string>NO</string>
<key>type</key>
<string>sql</string>
<key>userPasswordAlgorithm</key>
<string>none</string>
<key>viewURL</key>
<string>mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogo_view</string>
</dict>
</array>
<key>WOApplicationRedirectURL</key>
<string>http://mail02.messaging.domain.tld/</string>
<key>WOMessageUseUTF8</key>
<string>YES</string>
<key>WOParsersUseUTF8</key>
<string>YES</string>
<key>WOPort</key>
<string>20000</string>
<key>WOUseRelativeURLs</key>
<string>YES</string>
</dict>
</dict>
</plist>
SOGo can write to the table. I see two entries in sogo_folder_info table and one in sogo_user_profile table.
The strange thing is that in the field c_location, c_quick_location and c_acl_location I have some values that I think are not okay. For example:
c_location:
mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogousername0015d29930a
c_quick_location:
mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogousername0015d29930a_quick
c_acl_location:
mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogousername0015d29930a_acl
The tables used by this link are always following this schema:
[my connector = mysql]://[my db username = sysusr_sogo]:[my db password = changed]@[my db host = localhost]:[my db port = 3306]/[my db name = sysdb_sogo]/<fixed string "sogo"><my current login name shortened to 8 characters followed by some unique number = username0015d29930a><fixed string "_acl" or fixed string "_quick">
I don't know why it is attempting to use such strange tables. I only have:
+----------------------+
| Tables_in_sysdb_sogo |
+----------------------+
| sogo_folder_info |
| sogo_user_profile |
| sogo_view |
+----------------------+
I have however given the sysusr_sogo user the possibility to create new tables but SOGo is not creating them. I don't know if it should create them or not?
When trying to add a new calendar entry I get this here:
2009-11-25 19:50:57.412 sogod[12306] ERROR: MySQL4 field is marked unsigned (unsupported): {columnName = c_folder_id; name = c_folder_id; }
Nov 25 19:50:57 sogod [12306]: [ERROR] <0x0x86bdfd8[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_version,b.c_creationdate,b.c_lastmodified,a.c_component,b.c_content FROM sogousername002621077b2_quick a, sogousername002621077b2 b WHERE (a.c_name = '3012-4B0D7C80-5-B6FB1C00.ics') AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x868d308> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2_quick' doesn't exist
Nov 25 19:50:57 sogod [12306]: [WARN] [RM:CommonUI] missing bundle for framework: 'scriptaculous'
127.0.0.1 - - [25/Nov/2009:19:50:57 GMT] "GET /SOGo/so/user@domain.tld/Calendar/personal//3012-4B0D7C80-5-B6FB1C00.ics/editAsAppointment?day=20091125&hm=allday HTTP/1.0" 200 8365/0 0.101 29543 71% 268K
2009-11-25 19:51:01.238 sogod[12306] ERROR: MySQL4 field is marked unsigned (unsupported): {columnName = c_folder_id; name = c_folder_id; }
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0x87db2c8[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT b.c_name,b.c_version,b.c_creationdate,b.c_lastmodified,a.c_component,b.c_content FROM sogousername002621077b2_quick a, sogousername002621077b2 b WHERE (a.c_name = '3012-4B0D7C80-5-B6FB1C00.ics') AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x8727f78> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2_quick' doesn't exist
Nov 25 19:51:01 sogod [12306]: <0x0x87db2c8[GCSFolder]> should store content: '3012-4B0D7C80-5-B6FB1C00.ics'
BEGIN:VCALENDAR
VERSION:2.0
PRODID:-//Inverse inc./SOGo 1.0//EN
BEGIN:VEVENT
UID:3012-4B0D7C80-5-B6FB1C00
SUMMARY:New Event
CREATED:20091125T185101Z
DTSTAMP:20091125T185101Z
LAST-MODIFIED:20091125T185101Z
DTSTART;TZID=/inverse.ca/20091015_1/Europe/Zurich:20091125
DTEND;TZID=/inverse.ca/20091015_1/Europe/Zurich:20091126
TRANSP:OPAQUE
END:VEVENT
BEGIN:VTIMEZONE
TZID:/inverse.ca/20091015_1/Europe/Zurich
X-LIC-LOCATION:Europe/Zurich
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
END:VCALENDAR
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0x87db2c8[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT c_version, c_deleted FROM sogousername002621077b2 WHERE (c_name = '3012-4B0D7C80-5-B6FB1C00.ics')': <MySQL4Exception: 0x87d8fa8> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2' doesn't exist
Nov 25 19:51:01 sogod [12306]: <0x0x871fbd0[GCSFolderType]> ERROR: did not find field extractor class!
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x086822B0[SOGoAppointmentObject]:3012-4B0D7C80-5-B6FB1C00.ics> write failed: <NSException: 0x879a980> NAME:GCSExtractFailed REASON:Quickfield extractor did not return a result! INFO:{GCSFolder = "<0x0x87db2c8[GCSFolder]: id=3 path=/Users/user@domain.tld/Calendar/personal type=Appointment loc=mysql://sysusr_sogo:changed@localhost:3306/sysdb_sogo/sogousername002621077b2>"; }
127.0.0.1 - - [25/Nov/2009:19:51:01 GMT] "POST /SOGo/so/user@domain.tld/Calendar/personal/3012-4B0D7C80-5-B6FB1C00.ics/saveAsAppointment HTTP/1.0" 200 334/637 0.027 - - 72K
2009-11-25 19:51:01.409 sogod[12306] ERROR: MySQL4 field is marked unsigned (unsupported): {columnName = c_folder_id; name = c_folder_id; }
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0x86b1be0[GCSFolder]> -[GCSFolder fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL 'SELECT c_name, c_nextalarm, c_iscycle FROM sogousername002621077b2_quick WHERE (((c_nextalarm <= 1259347862) AND (c_nextalarm >= 1259175062)) OR ((c_nextalarm > 0) AND (c_enddate > 1259175062)))': <MySQL4Exception: 0x8744490> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2_quick' doesn't exist
127.0.0.1 - - [25/Nov/2009:19:51:01 GMT] "POST /SOGo/so/user@domain.tld/Calendar/alarmslist?browserTime=1259175062 HTTP/1.0" 200 2/0 0.007 - - 0
2009-11-25 19:51:01.418 sogod[12306] ERROR: MySQL4 field is marked unsigned (unsupported): {columnName = c_folder_id; name = c_folder_id; }
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0x86968d8[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_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_uid,a.c_startdate,a.c_enddate FROM sogousername002621077b2_quick a, sogousername002621077b2 b WHERE ((c_component = 'vevent') AND ((c_startdate IS NULL) OR (c_startdate <= 1259189999)) AND ((c_enddate IS NULL) OR (c_enddate >= 1259103600)) AND (c_iscycle = 0)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x8656290> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2_quick' doesn't exist
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0x86968d8[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_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_uid,a.c_startdate,a.c_enddate FROM sogousername002621077b2_quick a, sogousername002621077b2 b WHERE ((c_component = 'vevent') AND (c_iscycle = 1)) AND a.c_name = b.c_name AND (c_deleted != 1 OR c_deleted IS NULL)': <MySQL4Exception: 0x8683160> NAME:ExecutionFailed REASON:Table 'sysdb_sogo.sogousername002621077b2_quick' doesn't exist
Nov 25 19:51:01 sogod [12306]: [ERROR] <0x0852C6B0[SOGoAppointmentFolder]:personal> (-[SOGoAppointmentFolder fetchFields:from:to:title:component:additionalFilters:includeProtectedInformation:]): fetch failed!
|
---|