Page 1 of 2

10 - 11.0.1 upgrade problems

Posted: Fri Feb 09, 2007 4:34 am
by skygriffin
Hi,

we have a Fedora 4 Scalix 10 producion server running for some time and we would now like to migrate to a Fedora 5 / Scalix 11 environment. To effect the migration we used rsync to copy /var/opt/scalix from the FD4 server to the (new) FD5 Server. We then ran the Scalix 11 GIU installer.

The installer fails during the installation process with the log exception as below. I have read about several examples of this behaviour in the forums, however the proposed solutions don't seem to facilitate a successful install - I am probably missing something - any assistance would be appreciated.


Marcus



2007-02-09 18:58:04,915 INFO Starting installation of RPM files [('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-server-11.0.1.11-1.fc5.i386.rpm', 'scalix-server'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-postgres-11.0.1.22-1.noarch.rpm', 'scalix-postgres'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-tomcat-connector-11.0.0.144-1.fc5.i386.rpm', 'scalix-tomcat-connector'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-tomcat-5.5.16-152.noarch.rpm', 'scalix-tomcat'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-platform-11.0.1.22-1.noarch.rpm', 'scalix-platform'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-res-11.0.1.22-1.noarch.rpm', 'scalix-res'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-swa-11.0.1.22-1.noarch.rpm', 'scalix-swa'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-sac-11.0.1.22-1.noarch.rpm', 'scalix-sac'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-sis-11.0.1.22-1.noarch.rpm', 'scalix-sis'), ('/root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-mobile-11.0.1.22-1.noarch.rpm', 'scalix-mobile')]
2007-02-09 18:58:23,083 ERROR Operation failed: Install /bin/rpm -U -v --percent /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-server-11.0.1.11-1.fc5.i386.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-postgres-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-tomcat-connector-11.0.0.144-1.fc5.i386.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-tomcat-5.5.16-152.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-platform-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-res-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-swa-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-sac-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-sis-11.0.1.22-1.noarch.rpm /root/Desktop/Scalix/scalix-11.0.1-GA/software/scalix_server/scalix-mobile-11.0.1.22-1.noarch.rpm: (10) ['Preparing packages for installation...', 'scalix-tomcat-connector-11.0.0.144-1.fc5', 'scalix-tomcat-5.5.16-152', 'scalix-server-11.0.1.11-1.fc5', 'Stopping Scalix LDAP mapper (ldapmapper): [FAILED]\r', 'Starting Scalix LDAP mapper (ldapmapper): [ OK ]\r', 'error: %post(scalix-server-11.0.1.11-1.fc5.i386) scriptlet failed, exit status 3', 'scalix-postgres-11.0.1.22-1', 'scalix-platform-11.0.1.22-1', 'scalix-res-11.0.1.22-1', 'Remote Execution Service (RES) successfully installed.', 'Please configure Remote Execution Service (RES) using the', 'Scalix Installer for configuration.', 'Have fun!', 'scalix-swa-11.0.1.22-1', 'Please configure Scalix Web Access (SWA) using the Scalix Installer for configuration.', 'SWA minimally requires Tomcat 4.1.29 and JDK 1.4.2+.', 'After configuring SWA you may launch SWA within Tomcat with <Tomcat_installed_dir>/bin/startup.sh.', 'To check any startup errors look at <Tomcat_installed_dir>/logs/scalix-swa_log.<date>.txt', 'scalix-sac-11.0.1.22-1', 'Scalix Administration Console (SAC) successfully installed.', 'Please configure Scalix Administration Console (SAC) using', 'the Scalix Installer for configuration.', 'Have fun!', 'scalix-sis-11.0.1.22-1', 'scalix-mobile-11.0.1.22-1']
2007-02-09 18:58:23,084 CRITICAL Operation failed: Installation of packages failed
2007-02-09 18:58:23,084 ERROR Operation failed: Aborting installation thread.
2007-02-09 18:58:23,085 INFO Install end

Posted: Fri Feb 09, 2007 8:56 am
by ScalixSupport
Hi!

When you used rsync to copy files from folder /var/opt/scalix did you choose the options to
preserve ownership and permissions. Also, before you start installation on new server add
a user and group scalix with same user id and group id as it existed in the previous server.

The error suggests that you selected the option "Upgrade" instead you should have
selected "Install" and when prompted use existing message store say yes.

Please reply if you have further concerns.

Thanks,
Subir

Posted: Fri Feb 09, 2007 10:06 am
by skygriffin
Hi Subir,

Thanks for your comments.

I just tried again - this time using tar:

tar -cpvf scalix.tar /var/opt/scalix/* - I also made sure the users and groups existed as you suggest. This time the install appeared to work (looks like I must have been using incorrect switches with rsync).

And now - all works - thank you very much from your assistance - much appreciated

Posted: Fri Feb 09, 2007 11:03 am
by mito
Just a note:
ScalixSupport wrote:when prompted use existing message store say yes.

Just a heads up to those that might see this while upgrading.... in order to "say yes" to keep the message store, you have to click the NO button!

(don't want people deleting their message store accidently!)

Posted: Sat Feb 10, 2007 4:07 am
by skygriffin
thanks - 'yes' is evil .....

I am also struggling with ssl - as it seems are others. Apache configured for SSL however, the url http://xxx.xxx.xxx/webmail results in a file not found error for /var/www/html/webmail (apache ssl logs). I am assuming that that it is necessary to set up a specific Apache directive? In our last config with Scalix 10, we had both http and https functioning correclty.

Posted: Sat Feb 10, 2007 4:24 am
by ScalixSupport
Hi!

Did you untar scalix.tar at /var/opt/scalix before trying to upgrade/install? Please refer to the
Installation guide at http://www.scalix.com/community/downloads/documentation.php
for more guidance.

In Scalix 11, webpages for http://www.yourserver.com/webmail should be picked up from
/var/opt/scalix/<aa>/webmail folder.

Thanks,
Subir

Posted: Sat Feb 10, 2007 4:44 am
by skygriffin
Subir,

yes - this was actually an SSL config issue - now worked out from a posting from masterclyde. .... this is what I required (Fedora 5)

Modify
/etc/opt/scalix-tomcat/connector/ajp/instance-*.conf
/etc/opt/scalix-tomcat/connector/jk/instance-*.conf

with the following Virtual host entry:

<VirtualHost domain.com.au:443>
SSLEngine on
SSLProtocol all -SSLv2
SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW
SSLCertificateFile /etc/httpd/ssl.crt/server.crt
SSLCertificateKeyFile /etc/httpd/ssl.key/server.key
Include /etc/opt/scalix-tomcat/connector/ajp/app-instance.*.conf
Include /etc/opt/scalix-tomcat/connector/ajp/app-instance.*.conf
</VirtualHost>

I can now access using both http and https.

All that's left is to remap domain.com/ to domain.com/webmail

Posted: Sat Feb 10, 2007 4:50 am
by mito
skygriffin wrote: All that's left is to remap domain.com/ to domain.com/webmail


The easiest way to do that is do make a file /var/www/html/index.html that contains nothing but this:

Code: Select all

<META HTTP-EQUIV="Refresh" CONTENT="0; URL=/webmail/">

Posted: Sat Feb 10, 2007 10:08 am
by skygriffin
thanks mito. webmail and sac are now working well.

Just tried domain.com/m - seemed to get the same error others have experienced - although scalix-mobile.log and scalix-api.log are empty. Also looked at Bug 13947 - I don't think this applies as there has been no change to the Postgresql password - maybe it has something to do with https? In /var/opt/scalix/i1/mobile/mobile.properties I have:

platform.url=https://host.domain.com/api[/quote]

Posted: Tue Feb 13, 2007 6:25 pm
by skygriffin
Still seeing a few issues. First, the search function is not returning any entries (after running the indexing queue script as part of the upgrade). error_log has many multiple entries along the line of: "File does not exist: /var/www/html/sis". I was wondering if this might be related to incorrect URL as per other formum entries or the fact that we are using https? /var/opt/scalix/[nn]/webmail/swa.properties - but they seem to be ok. We also have issues logging into the mobile client - perhaps both issues could be related to database access?

Posted: Wed Feb 14, 2007 7:55 am
by ScalixSupport
Hi!

Make sure, in the file /etc/httpd/conf/httpd.conf the line:

Code: Select all

Include conf.d/*.conf

should be uncommented. If not, uncomment it and restart httpd service.

Check if the httpd service is running.
Also check the permissions for scalix files using the command "omcheck -i -s"
To actually fix the problem if any of permissions, you should run omcheck to generate
a shell script - on standard output - that, when run, fixes the problem for permission
issues.

Code: Select all

omcheck -i -s >fix_perms.sh
bash ./fix_perms.sh

You might want to review what the script is planning to do before actually executing the second command.

Thanks,
Subir

Posted: Thu Feb 15, 2007 8:36 am
by skygriffin
Subir,

reviewed /etc/httpd/conf/httpd.conf - it was correct. Also ran omcheck, generated the script and corrected many permission problems. I have just run sxmkindex again - it has scheduled multiple messages for indexing. After the indexing is complete, I will check the search operation again. I have also tried the mobile client again with no luck?

Posted: Thu Feb 15, 2007 9:10 am
by ScalixSupport
Hi!

Did you get a chance to review the following document:
http://www.scalix.com/wiki/index.php?ti ... _use_https

Thanks,
Subir

Posted: Sat Feb 17, 2007 8:12 am
by skygriffin
yes - already had the RewriteRule in place - so no joy. I did consider that it may be related to the fact that we use a different hostname on the outside of the firewall from the inside. However accessing the mobile client from the inside results in the same error.

Posted: Sun Feb 18, 2007 1:04 pm
by florian
Please also check the Scalix 11 FAQ referenced at the top of each forum. We've changed the way how we interact with Apache virtual hosts as of Scalix 11, so I must assume that's what you're running into.

Florian.