Hi,
I finally solved the problem after hours of try and error, read throug the config and read through the output of "lsof". After started my first post here I tried it for about two full weekends.
These are my steps to upgrade from 8.6 to 8.7 under centos 6 x86_64:
Code: Select all
# change the hostname to the same as the public certificate, not documented here
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
# activate the proxy otherwise the zimbra installer wont start
sudo -u zimbra /opt/zimbra/bin/zmprov ms `/opt/zimbra/bin/zmhostname` zimbraReverseProxyMailEnabled TRUE zimbraReverseProxyHttpEnabled TRUE
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
/opt/zimbra/libexec/zmfixperms --verbose --extended
visudo add
#includedir /etc/sudoers.d
sudo -u zimbra /opt/zimbra/bin/mysql.server stop
ps aux | grep -i zimbra
# kill all zimbra processes
find /opt/zimbra -iname "*.pid"
# delete all pid files
sudo -u zimbra ln -s /opt/zimbra/data/tmp/mysql/mysql.sock /opt/zimbra/db/mysql.sock # needed to recognize that the database is up, this line took the most of the time to figure out the main problem
sudo -u zimbra /opt/zimbra/bin/ldap start # otherwise the zimbra installer wont start
./install.sh
# ignore conflict
sudo -u zimbra ln -s /opt/zimbra/data/tmp/mysql/mysql.sock /opt/zimbra/db/mysql.sock # needed to recognize that the database is up
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
/opt/zimbra/libexec/zmfixperms --verbose --extended
./install.sh
sudo -u zimbra /opt/zimbra/bin/zmcontrol status
# Now the server is up
Later I saw permission problems from the postfix process, here is the solution documented:
viewtopic.php?t=6737
And thats how I solve it:
Code: Select all
sudo -u zimbra /opt/zimbra/bin/zmcontrol stop
ps aux | grep -i zimbra
# kill all zimbra processes
usermod -a -G postdrop zimbra
/opt/zimbra/libexec/zmfixperms --verbose --extended
sudo -u zimbra /opt/zimbra/bin/zmcontrol start
And here we have the next problem for example the files for postfix are ignored by zmfixperms. Truly since then I can't trust this tool. Maybe it fix the permission for some files but not all under the zimbra installation folder which is in my case useless or like posted below it also set the wrong permissions.
...
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/valsort-2.4.so.2.10.7
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/translucent.so
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/memberof-2.4.so.2.10.7
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/dds.so
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/ppolicy.la
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/constraint.so
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/syncprov.so
/postfix-script: warning: not owned by root: /opt/zimbra/common/libexec/./openldap/seqmod.so
...
Code: Select all
chown -R root /opt/zimbra/common/libexec
chgrp postdrop /opt/zimbra/common/sbin/postqueue
chgrp postdrop /opt/zimbra/common/sbin/postdrop
chmod g+s /opt/zimbra/common/sbin/postqueue
chmod g+s /opt/zimbra/common/sbin/postdrop
When "zmfixperms --extended" is triggered all the permissions for /opt/zimbra/common/libexec are broken again !!!
I know this reads a little bit confusing but this is how I have to fix all the zimbra problems. In fact to upgrade from 8.6 to 8.7 there have to be manually fixed a punch of problems.
Hopefully this will change anytime with zimbra. I have to play this game since release 5 and it doesn't get better since then
On the other hand I love the zimbra server compared to all other products I have found.
The next stunt will be to move from CentOS 6 to 7