Koozali.org: home of the SME Server

SOGo 2.3.0 sql-update HELP!

Offline julianweber

  • 11
  • +0/-0
SOGo 2.3.0 sql-update HELP!
« on: October 06, 2015, 10:03:33 PM »
I have inadvertently upgraded my SOGo to version 2.3.2.  The upgrade requires a script be run to change the MYSQL database.  The script is prompting for a password to MYSQL but the MYSQL root password is set to a random password and the SME Server documentation says not to change it. 

Due to the change, the calendar is not working in SOGo.  Can someone help me sort this out?

Julian

guest22

Re: SOGo 2.3.0 sql-update HELP!
« Reply #1 on: October 06, 2015, 10:25:37 PM »
stephdl is your man.

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #2 on: October 06, 2015, 10:36:01 PM »
normally it is incorporated in the rpm, from which version you upgraded ???
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #3 on: October 06, 2015, 10:48:40 PM »
I don't know what version I upgraded from.  Unfortunately Yum reported an update via email with instructions to run the upgrade from command prompt.  I followed the Yum instructions and all seemed well.  I just noticed today that my calendar was not syncing from Thunderbird and started looking into it. 

Is there a way to look through the logs and find out?

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #4 on: October 06, 2015, 11:26:01 PM »
from what I recall it was a mysql issue, some fields needed to be created....I don't know if it was related.

look to /var/log/sogo/sogo.log

for the sogo version, you can look to /var/log/messages and /var/log/yum/yum.log

You use sogo as a caldav server ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #5 on: October 06, 2015, 11:46:18 PM »
I do use sogo for caldav.
The error in sogo.log looks like to be consistent with the mySQL database needing to have the script run.

Oct 06 17:39:40 sogod [2248]: <0x0x7fc70d8e26c8[GCSFolder]> ERROR(-[GCSFolder writeContent:fromComponent:container:toName:baseVersion:]): cannot insert content : <MySQL4Exception: 0x7fc70dbd6868> NAME:ExecutionFailed REASON:Unknown column 'c_description' in 'field list'
Oct 06 17:39:40 sogod [2248]: [ERROR] <0x0DB2A608[SOGoAppointmentObject]:9f1a7696-64e3-c140-8f9f-ceabf83bcf35.ics> write failed: <MySQL4Exception: 0x7fc70dbd6868> NAME:ExecutionFailed REASON:Unknown column 'c_description' in 'field list'
Oct 06 17:39:40 sogod [2248]: 10.10.10.2 "PUT /SOGo/dav/jwork/Calendar/D0D-525E0D80-F-626BB300/9f1a7696-64e3-c140-8f9f-ceabf83bcf35.ics HTTP/1.1" 500 214/853 0.043 - - 276K

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #6 on: October 06, 2015, 11:52:40 PM »
This is the yum.log  grepped for sogo.  It looks like I was on 2.2.16 and then on sep 08 upgraded to 2.3.1. 
I don't know what the Mar 08 00:29:09 semserver-sogo-1.3-12 is.


Mar 08 00:28:59 Installed: sogo-ealarms-notify-2.2.16-1.centos6.x86_64
Mar 08 00:29:03 Installed: sogo-2.2.16-1.centos6.x86_64
Mar 08 00:29:03 Installed: sogo-tool-2.2.16-1.centos6.x86_64
Mar 08 00:29:03 Installed: sogo-activesync-2.2.16-1.centos6.x86_64
Mar 08 00:29:09 Installed: 9:smeserver-sogo-1.3-12.el6.sme.noarch
Sep 08 09:22:58 Updated: sogo-2.3.1-1.centos6.x86_64
Sep 08 09:22:58 Updated: sogo-tool-2.3.1-1.centos6.x86_64
Sep 08 09:22:59 Updated: sogo-activesync-2.3.1-1.centos6.x86_64
Sep 08 09:23:00 Updated: sogo-ealarms-notify-2.3.1-1.centos6.x86_64
Sep 19 22:39:05 Updated: sogo-2.3.2-1.centos6.x86_64
Sep 19 22:39:05 Updated: sogo-tool-2.3.2-1.centos6.x86_64
Sep 19 22:39:05 Updated: sogo-activesync-2.3.2-1.centos6.x86_64
Sep 19 22:39:07 Updated: sogo-ealarms-notify-2.3.2-1.centos6.x86_64
Oct 06 12:58:40 Updated: 9:smeserver-sogo-1.3-15.el6.sme.noarch
Oct 06 13:36:20 Erased: smeserver-sogo
Oct 06 13:36:21 Erased: sogo-activesync
Oct 06 13:36:22 Erased: sogo-tool
Oct 06 13:36:23 Erased: sogo
Oct 06 13:36:28 Erased: sogo-ealarms-notify
Oct 06 13:40:13 Installed: sogo-2.3.2-1.centos6.x86_64
Oct 06 13:40:13 Installed: sogo-tool-2.3.2-1.centos6.x86_64
Oct 06 13:40:14 Installed: sogo-activesync-2.3.2-1.centos6.x86_64
Oct 06 13:40:14 Installed: sogo-ealarms-notify-2.3.2-1.centos6.x86_64
Oct 06 13:40:21 Installed: 9:smeserver-sogo-1.3-15.el6.sme.noarch

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #7 on: October 07, 2015, 12:05:28 AM »
As you can see below, I am logged in a root and trying to run the sql-update-2.2.17_to_2.3.0-mysql.sh script.

I don't know what username or database I should be using and I also don't have an SQL password.
Do you know?


[root@harry ~]# cd /usr/share/doc/sogo-2.3.2/
[root@harry sogo-2.3.2]# ./sql-update-2.2.17_to_2.3.0-mysql.sh
Username (root): mysql
Hostname (127.0.0.1):
Database (root): mysql
This script will ask for the sql password twice
Converting c_partstates from VARCHAR(255) to mediumtext in calendar quick tables
Adding c_description column as mediumtext in calendar quick tables
Enter password:
ERROR 2003 (HY000): Can't connect to MySQL server on '127.0.0.1' (111)

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #8 on: October 07, 2015, 12:11:12 AM »
did you reconfigure the server since the update ?
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #9 on: October 07, 2015, 12:13:39 AM »
I ran the following after the upgrade...

signal-event post-upgrade;  signal-event reboot

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #10 on: October 07, 2015, 12:16:43 AM »
As you can see below, I am logged in a root and trying to run the sql-update-2.2.17_to_2.3.0-mysql.sh script.

I don't know what username or database I should be using and I also don't have an SQL password.
Do you know?

take a look to /etc/e-smith/events/actions/sogo_upgrade_2.3....it is integrated :(

the mysql password can be found at

cat /etc/openldap/ldap.pw or cat /root/.my.cnf

See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #11 on: October 07, 2015, 12:24:13 AM »
I just manually ran

/etc/e-smith/events/actions/sogo_upgrade_2.3

and now it is working. 

THANKS!

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #12 on: October 07, 2015, 12:27:49 AM »
please what is the output of

# locate sogo_upgrade_2.3
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline julianweber

  • 11
  • +0/-0
Re: SOGo 2.3.0 sql-update HELP!
« Reply #13 on: October 07, 2015, 12:30:17 AM »
[root@harry ~]# locate sogo_upgrade_2.3
/etc/e-smith/events/actions/sogo_upgrade_2.3
/etc/e-smith/events/post-install/templates2expand/etc/e-smith/sql/init/32sogo_upgrade_2.3
/etc/e-smith/events/post-upgrade/templates2expand/etc/e-smith/sql/init/32sogo_upgrade_2.3
/etc/e-smith/events/sogo-modify/templates2expand/etc/e-smith/sql/init/32sogo_upgrade_2.3
/etc/e-smith/templates/etc/e-smith/sql/init/32sogo_upgrade_2.3
[root@harry ~]#

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: SOGo 2.3.0 sql-update HELP!
« Reply #14 on: October 07, 2015, 12:40:08 AM »
can you catch something in logs messages when you do 'signal-event sogo-modify'
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!