Hi,

afte upgrading the debian squeeze box after several month (sogo 1.3.2 ->
1.3.8b) I got some Errors, i.e. the lack of OCSSessionsFolderURL =
"mysql://sogo:sogopasswd@localhost:5432/sogo/sogo_session_folder"; in 
/home/sogo/GNUstep/Defaults/.GNUstepDefaults

Therefor I couldn't log in. After adding that line I was able to login again,
but I couldn't load my addressbooks.

I saw in the logs lots of these lines
Oct 26 13:06:55 sogod [4656]: [ERROR] <0x0xa3b7ee8[GCSFolder]> -[GCSFolder
fetchFields:fetchSpecification:ignoreDeleted:]: cannot execute quick-fetch SQL
'SELECT c_name, c_cn, c_givenname, c_sn, c_screenname, c_o, c_mail,
c_telephonenumber, c_categories, c_component FROM sogogausslin0026b7d24c4_quick
WHERE ((UPPER(c_sn) LIKE UPPER('%elzer%')) OR (UPPER(c_givenname) LIKE
UPPER('%elzer%')) OR (UPPER(c_cn) LIKE UPPER('%elzer%')) OR (UPPER(c_mail) LIKE
UPPER('%elzer%')))': <MySQL4Exception: 0xa3b9370> NAME:ExecutionFailed
REASON:Unknown column 'c_categories' in 'field list'

All are containing Unknown column 'c_categories' in 'field list'

With some googling I found this thread
http://www.mail-archive.com/[email protected]/msg02722.html

and therefor tried to use the sogo upgrade script:
 /usr/share/doc/sogo/sql-update-1.2.2_to_1.3.0-mysql.sh

But it failed:
~# /usr/share/doc/sogo/sql-update-1.2.2_to_1.3.0-mysql.sh
Username (root):
Hostname (localhost):
Database (root): sogo
Enter password:
Enter password:
ERROR 1060 (42S21) at line 1: Duplicate column name 'c_category'

I don't know how to handle with this. I need some advice.

Thank you in advance


Here are some more informations:

 /home/sogo/GNUstep/Defaults/.GNUstepDefaults
{
    NSGlobalDomain = {
    };
    sogod = {
        SxVMemLimit = 1024;
        NGImap4DisableIMAP4Pooling = YES;
        SOGoDoNotFetchMailHeader = YES;
        SOGoMailDisableETag = YES;
        SOGoVacationEnabled = YES;
        SOGoForwardEnabled = YES;
        NGUseUTF8AsURLEncoding = YES;
        OCSFolderInfoURL =
"mysql://sogo:sogopasswd@localhost:5432/sogo/sogo_folder_info";
        OCSSessionsFolderURL =
"mysql://sogo:sogopasswd@localhost:5432/sogo/sogo_session_folder";
        SOGoLoginModule = Calendar;
        SOGoACLsSendEMailNotifications = NO;
        SOGoAppointmentSendEMailNotifications = YES;
        SOGoAuthenticationMethod = LDAP;
        SOGoDraftsFolderName = Drafts;
        SOGoFoldersSendEMailNotifications = NO;
        SOGoForceIMAPLoginWithEmail = no;
        SOGoIMAPServer = 192.168.170.30:143;
        SOGoCalendarCategories = ("Besprechung","Termin im Haus","Termin ausser
Haus","Jahrestag","Urlaub");
        SOGoFirstDayOfWeek = 1;
        SOGoMailComposeMessageType = html;
        SOGoLanguage = German;
        SOGoLDAPContactInfoAttribute = YES;
        SOGoMailingMechanism = sendmail;
        SOGoMailingMechanism = smtp;
        SOGoSMTPServer = 192.168.170.40;
        SOGoOtherUsersFolderName = "Other Users";
        SOGoProfileURL =
"mysql://sogo:sogopasswd@localhost:5432/sogo/sogo_user_profile";
        SOGoSentFolderName = Sent;
        SOGoSharedFolderName = "Shared Folders";
        SOGoMailDomain = MYENTERPRISE-media.de;
        SOGoSuperUsernames = (
            admin,
            operator,
            MYENTERPRISE
        );
        SOGoMailUseOutlookStyleReplies = YES;
        SOGoTimeZone = Europe/Berlin;
        SOGoTrashFolderName = Trash;
        SOGoMailMessageCheck = every_5_minutes;
        SOGoMailMessageForwarding = inline;
        SOGoUserSources = (
            {
                CNFieldName = cn;
                IDFieldName = cn;
                UIDFieldName = sAMAccountName;
                                baseDN =
"ou=MYENTERPRISE-MEDIA,DC=MYENTERPRISEdom,DC=local";
                bindDN =
"cn=Administrator,cn=users,dc=MYENTERPRISEdom,dc=local";
                bindFields = (
                    sAMAccountName
                );
                bindPassword = 123456;
                canAuthenticate = YES;
                displayName = "MYENTERPRISE alle Mitarbeiter";
                hostname = 192.168.170.5;
                id = directory;
                isAddressBook = no;
                port = 389;
                type = ldap;
            }
        );
        WOMessageUseUTF8 = YES;
        WOParsersUseUTF8 = YES;
        WOPort = 20000;
    };
}

Upgrade process:
Vorbereitung zum Ersetzen von sogo 1.3.2 (durch
.../archives/sogo_1.3.8b_i386.deb) 
[...]
libsbjson2.3 (4.9.r1664.20110726) wird eingerichtet ...
libsope-xml4.9 (4.9.r1664.20110726) wird eingerichtet ...
libsope-core4.9 (4.9.r1664.20110726) wird eingerichtet ...
libsope-mime4.9 (4.9.r1664.20110726) wird eingerichtet ...
libsope-appserver4.9 (4.9.r1664.20110726) wird eingerichtet ...
libsope-gdl1-4.9 (4.9.r1664.20110726) wird eingerichtet ...
libsope-ldap4.9 (4.9.r1664.20110726) wird eingerichtet ...
sope4.9-libxmlsaxdriver (4.9.r1664.20110726) wird eingerichtet ...
sope4.9-gdl1-mysql (4.9.r1664.20110726) wird eingerichtet ...
sogo (1.3.8b) wird eingerichtet ...

Konfigurationsdatei »/etc/apache2/conf.d/SOGo.conf«
 ==> Modifiziert (von Ihnen oder von einem Skript) seit der Installation.
 ==> Paketverteiler hat eine aktualisierte Version herausgegeben.
   Wie möchten Sie vorgehen? Ihre Wahlmöglichkeiten sind:
    Y oder I : Die Version des Paket-Betreuers installieren
    N oder O : Die momentan installierte Version beibehalten
       D     : Die Unterschiede zwischen den Versionen anzeigen
       Z     : Eine Shell starten, um die Situation zu begutachten
 Der Standardweg ist das Beibehalten der momentanen Version.
*** SOGo.conf (Y/I/N/O/D/Z) [Vorgabe=N] ? d
ESC7ESC[?47h^M--- /etc/apache2/conf.d/SOGo.conf       2010-07-26
10:01:08.000000000 +0200
+++ /etc/apache2/conf.d/SOGo.conf.dpkg-new      2011-07-26 19:02:54.000000000
+0200
@@ -1,8 +1,3 @@
[...]
 Der Standardweg ist das Beibehalten der momentanen Version.
*** SOGo.conf (Y/I/N/O/D/Z) [Vorgabe=N] ?
Starting SOGo: sogo already running.
ssl-cert (1.0.28) wird eingerichtet ...
[...]

MySQL upgrade
~# grep mysql /var/log/apt/term.log
Vorbereitung zum Ersetzen von mysql-common 5.1.49-1 (durch
.../mysql-common_5.1.49-3_all.deb) ...
Ersatz für mysql-common wird entpackt ...
Vorbereitung zum Ersetzen von mysql-server 5.1.49-1 (durch
.../mysql-server_5.1.49-3_all.deb) ...
Ersatz für mysql-server wird entpackt ...
Vorbereitung zum Ersetzen von libmysqlclient16 5.1.49-1 (durch
.../libmysqlclient16_5.1.49-3_i386.deb) ...
Ersatz für libmysqlclient16 wird entpackt ...
Vorbereitung zum Ersetzen von mysql-client-5.1 5.1.49-1 (durch
.../mysql-client-5.1_5.1.49-3_i386.deb) ...
Ersatz für mysql-client-5.1 wird entpackt ...
Ersetzen der Dateien im alten Paket mysql-server-5.1 ...
mysql-common (5.1.49-3) wird eingerichtet ...
Vorbereitung zum Ersetzen von mysql-server-5.1 5.1.49-1 (durch
.../mysql-server-5.1_5.1.49-3_i386.deb) ...
Stopping MySQL database server: mysqld.
Stopping MySQL database server: mysqld.
Ersatz für mysql-server-5.1 wird entpackt ...
Vorbereitung zum Ersetzen von mysql-server-core-5.1 5.1.49-1 (durch
.../mysql-server-core-5.1_5.1.49-3_i386.deb) ...
Ersatz für mysql-server-core-5.1 wird entpackt ...
Vorbereitung zum Ersetzen von sope4.9-gdl1-mysql 4.9.r1664.20100921 (durch
.../sope4.9-gdl1-mysql_4.9.r1664.20110726_i386.deb) ...
Ersatz für sope4.9-gdl1-mysql wird entpackt ...
libmysqlclient16 (5.1.49-3) wird eingerichtet ...
mysql-server-core-5.1 (5.1.49-3) wird eingerichtet ...
sope4.9-gdl1-mysql (4.9.r1664.20110726) wird eingerichtet ...
mysql-client-5.1 (5.1.49-3) wird eingerichtet ...
mysql-server-5.1 (5.1.49-3) wird eingerichtet ...
Neue Version der Konfigurationsdatei /etc/init.d/mysql wird installiert ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld.
mysql-server (5.1.49-3) wird eingerichtet ..-- 
[email protected]
https://inverse.ca/sogo/lists

Reply via email to