[Solved] Move and Upgrade: Fedora 7 -> CentOS 5.2
Posted: Thu Aug 07, 2008 3:35 pm
I have a working Scalix (v. 11.4.0.11669) installation on Fedora 7 that i want to move and upgrade to CentOS 5.2 and Scalix 11.4.1
As described in several tutorials and threads the only thing you need to do is copy the /var/opt/scalix folder to the new machine. The Scalix installer will detect the old data and reuse settings and data.
1. CentOS installation
2. Disable original server
Determine scalix group and userid (both are set to 499)
3. Prepare new server
Create scalix user
Synchronize /var/opt/scalix
4. Install Scalix
Installation steps
Add /opt/scalix/bin to PATH
5. Health check + fixes
The script fixes some permission issues. When i run omcheck again the output confirms that the problems are solved by running the output script.
6. Installation log
7. Problems & troubleshooting
I've tried a clean installation without importing old data on the same server setup. That works just fine.
Tried http://www.scalix.com/forums/viewtopic.php?t=6219
pgstartup.log
Line 104 in postgresql.conf
outputs
Tried http://www.scalix.com/forums/viewtopic.php?t=6920&postdays=0&postorder=asc&start=0
8. Conclusion
I think i'm facing two problems
1. The version inconsistency
2. The failure to set the password for the database user 'scalix'[/code]
As described in several tutorials and threads the only thing you need to do is copy the /var/opt/scalix folder to the new machine. The Scalix installer will detect the old data and reuse settings and data.
- - Both servers have the same hostname and domain (scalix abbreviation = dd)
- Both servers have the same IP. Changed the IP of the old server after stopping all relevant services. Just too make it possible to copy data between both servers.
1. CentOS installation
- - Textual installation. The only selected packages are "Administration Tools" and "Base"
- Firewall enabled ports: ssh:22:tcp, http:80:tcp, https:443:tcp, smtp:25:tcp, openmail:5729:tcp imap:143:tcp
- SELINUX = disabled
Code: Select all
# chkconfig ntpd on
# chkconfig ip6tables off
# chkconfig cups off
# chkconfig bluetooth off
# chkconfig lvm2-monitor off
# chkconfig xfs off
# yum install yum-fastestmirror
# yum upgrade
# yum install gcc kernel-devel
2. Disable original server
Code: Select all
# /etc/init.d/crond stop
# /etc/init.d/scalix stop
# /etc/init.d/sendmail stop
# /etc/init.d/scalix-tomcat stop
# /etc/init.d/scalix-postgres stop
Determine scalix group and userid (both are set to 499)
Code: Select all
# cat /etc/passwd
# cat /etc/group
3. Prepare new server
Code: Select all
# yum install httpd cyrus-sasl-md5 compat-libstdc++-296 elinks libcrammd5 libdigestmd5 sendmail-cf postgresql postgresql-libs postgresql-server
Create scalix user
Code: Select all
# groupadd -g 499 scalix
# adduser -u 499 -g 499 scalix -s /bin/true -d /var/opt/scalix
# passwd scalix
Synchronize /var/opt/scalix
Code: Select all
# rsync -vp -a root@<old-server-ip>:/var/opt/scalix /var/opt
4. Install Scalix
Code: Select all
# cd /usr/src
# wget http://downloads.scalix.com/.community/11.4.1/scalix-11.4.1-GA-community-rhel5-intel.bin
# chmod +x scalix-11.4.1-GA-community-rhel5-intel.bin
# ./scalix-11.4.1-GA-community-rhel5-intel.bin
Installation steps
- - Accept license agreement
- Run unpacked package automatically
- Install all scalix components
- System check gives OK on all items
- Installation ends with a fatal error
Code: Select all
Configuring PostgreSQL...
Fatal error occured: Msg: An error occurred configuring Web applications -- check the log for errors.
Scalix Installer - cleaning up...
Scalix Installer - done.
Add /opt/scalix/bin to PATH
Code: Select all
PATH=$PATH:/opt/scalix/bin
export PATH
5. Health check + fixes
Code: Select all
# cd /tmp
# omcheck -s -d > omcheck.log
# chmod +x omcheck.log
# ./omcheck.log
The script fixes some permission issues. When i run omcheck again the output confirms that the problems are solved by running the output script.
6. Installation log
Code: Select all
2008-08-07 22:04:44,905 INFO Initializing Scalix Installer version 11.4.1.2498
2008-08-07 22:04:45,235 INFO Platform is: CentOS release 5.2 (Final) on i386 : supported.
2008-08-07 22:04:45,237 INFO Starting Scalix Installer in CLI mode
2008-08-07 22:04:46,082 INFO Fixed PATH to contain /sbin and /usr/sbin
2008-08-07 22:04:46,084 INFO Current locale is and default is en_US
2008-08-07 22:04:49,586 INFO Packages installed: {}
2008-08-07 22:04:53,034 INFO Obsolete packages installed: {}
2008-08-07 22:05:00,796 INFO Operation passed: OS release check CentOS release 5.2 (Final)
2008-08-07 22:05:00,797 INFO Operation passed: Memory check 1035288
2008-08-07 22:05:00,798 INFO Operation passed: Disk space check 3840320
2008-08-07 22:05:01,015 INFO Tomcat was running when we started: False
2008-08-07 22:05:02,631 INFO Searching /usr/src/scalix-11.4.1-GA/software/scalix_server for relevant Scalix packages
2008-08-07 22:05:02,635 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-mobile-11.4.1.876-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,635 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-swa-11.4.1.11567-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,635 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-5.5.25-415.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,636 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-connector-11.4.1.896-1.rhel5.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,637 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-res-11.4.1.4516-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,637 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sis-11.4.1.1040-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,637 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-chardet-1.0.20071031-1.rhel5.i386.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,638 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-iconv-extras-1.2-1.rhel5.i686.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,638 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-libical-0.27.20071008-1.i386.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,638 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-platform-11.4.1.2072-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,639 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-server-11.4.1.11855-1.rhel5.i386.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,639 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sac-11.4.1.4516-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:02,639 INFO File /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-postgres-11.4.1.2072-1.noarch.rpm is a Scalix file, for this platform and valid version
2008-08-07 22:05:12,255 INFO Components selected to install: {'scalix-res': ['11.4.1.4516-1', '1144971', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-res-11.4.1.4516-1.noarch.rpm'], 'scalix-libical': ['0.27.20071008-1', '552070', 'i386', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-libical-0.27.20071008-1.i386.rpm'], 'scalix-chardet': ['1.0.20071031-1.rhel5', '181036', 'i386', 'linux', '1.rhel5', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-chardet-1.0.20071031-1.rhel5.i386.rpm'], 'scalix-swa': ['11.4.1.11567-1', '16486610', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-swa-11.4.1.11567-1.noarch.rpm'], 'scalix-tomcat': ['5.5.25-415', '4831313', 'noarch', 'linux', '415', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-5.5.25-415.noarch.rpm'], 'scalix-sis': ['11.4.1.1040-1', '2189884', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sis-11.4.1.1040-1.noarch.rpm'], 'scalix-platform': ['11.4.1.2072-1', '13959651', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-platform-11.4.1.2072-1.noarch.rpm'], 'scalix-server': ['11.4.1.11855-1.rhel5', '54176000', 'i386', 'linux', '1.rhel5', 'RHEL5', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-server-11.4.1.11855-1.rhel5.i386.rpm'], 'scalix-tomcat-connector': ['11.4.1.896-1.rhel5', '1229', 'noarch', 'linux', '1.rhel5', 'rhel5', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-connector-11.4.1.896-1.rhel5.noarch.rpm'], 'scalix-mobile': ['11.4.1.876-1', '3115565', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-mobile-11.4.1.876-1.noarch.rpm'], 'scalix-iconv-extras': ['1.2-1.rhel5', '126324', 'i686', 'linux', '1.rhel5', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-iconv-extras-1.2-1.rhel5.i686.rpm'], 'scalix-sac': ['11.4.1.4516-1', '9361947', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sac-11.4.1.4516-1.noarch.rpm'], 'scalix-postgres': ['11.4.1.2072-1', '16125', 'noarch', 'linux', '1', '(none)', '(none)', '/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-postgres-11.4.1.2072-1.noarch.rpm']}
2008-08-07 22:05:12,258 INFO Components to upgrade: {}
2008-08-07 22:05:12,258 INFO System check start
2008-08-07 22:05:12,349 INFO Operation passed: Environment check passed.
2008-08-07 22:05:12,358 INFO Operation passed: Filesystem check passed.
2008-08-07 22:05:12,590 INFO Network interface is eth0
2008-08-07 22:05:12,597 INFO Operation passed: Network check passed.
2008-08-07 22:05:15,136 INFO Apache 2.x appears to be installed.
2008-08-07 22:05:15,137 INFO Operation passed: Dependency check passed.
2008-08-07 22:05:15,783 INFO Operation passed: Running services check passed.
2008-08-07 22:05:15,802 INFO Operation passed: Community license check passed.
2008-08-07 22:05:15,804 INFO System check end
2008-08-07 22:05:15,804 INFO System check result: 0
2008-08-07 22:05:24,179 INFO Install start
2008-08-07 22:05:25,282 WARNING Couldn't remove server system admin user: sxadmin ['userdel: user sxadmin does not exist']
2008-08-07 22:05:25,312 WARNING Couldn't remove server system admin group: sxadmin ['groupdel: group sxadmin does not exist'] , it's probably already been removed, OK.
2008-08-07 22:05:25,314 INFO Starting installation of RPM files [('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-libical-0.27.20071008-1.i386.rpm', 'scalix-libical'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-chardet-1.0.20071031-1.rhel5.i386.rpm', 'scalix-chardet'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-server-11.4.1.11855-1.rhel5.i386.rpm', 'scalix-server'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-postgres-11.4.1.2072-1.noarch.rpm', 'scalix-postgres'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-connector-11.4.1.896-1.rhel5.noarch.rpm', 'scalix-tomcat-connector'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-5.5.25-415.noarch.rpm', 'scalix-tomcat'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-platform-11.4.1.2072-1.noarch.rpm', 'scalix-platform'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-res-11.4.1.4516-1.noarch.rpm', 'scalix-res'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-swa-11.4.1.11567-1.noarch.rpm', 'scalix-swa'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sac-11.4.1.4516-1.noarch.rpm', 'scalix-sac'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-iconv-extras-1.2-1.rhel5.i686.rpm', 'scalix-iconv-extras'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sis-11.4.1.1040-1.noarch.rpm', 'scalix-sis'), ('/usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-mobile-11.4.1.876-1.noarch.rpm', 'scalix-mobile')]
2008-08-07 22:05:43,116 INFO Operation passed: Install /bin/rpm -U -v --percent /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-libical-0.27.20071008-1.i386.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-chardet-1.0.20071031-1.rhel5.i386.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-server-11.4.1.11855-1.rhel5.i386.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-postgres-11.4.1.2072-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-connector-11.4.1.896-1.rhel5.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-tomcat-5.5.25-415.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-platform-11.4.1.2072-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-res-11.4.1.4516-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-swa-11.4.1.11567-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sac-11.4.1.4516-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-iconv-extras-1.2-1.rhel5.i686.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-sis-11.4.1.1040-1.noarch.rpm /usr/src/scalix-11.4.1-GA/software/scalix_server/scalix-mobile-11.4.1.876-1.noarch.rpm: (0) ['Preparing packages for installation...', 'scalix-tomcat-connector-11.4.1.896-1.rhel5', 'scalix-tomcat-5.5.25-415', 'scalix-chardet-1.0.20071031-1.rhel5', 'scalix-libical-0.27.20071008-1', 'scalix-server-11.4.1.11855-1.rhel5', 'Stopping Scalix LDAP mapper (ldapmapper): [FAILED]\r', 'Starting Scalix LDAP mapper (ldapmapper): [ OK ]\r', 'scalix-postgres-11.4.1.2072-1', 'scalix-platform-11.4.1.2072-1', 'scalix-res-11.4.1.4516-1', 'Remote Execution Service (RES) successfully installed.', 'Please configure Remote Execution Service (RES) using the', 'Scalix Installer for configuration.', 'Have fun!', 'scalix-swa-11.4.1.11567-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.4.1.4516-1', 'Scalix Administration Console (SAC) successfully installed.', 'Please configure Scalix Administration Console (SAC) using', 'the Scalix Installer for configuration.', 'Have fun!', 'scalix-iconv-extras-1.2-1.rhel5', 'scalix-sis-11.4.1.1040-1', 'scalix-mobile-11.4.1.876-1']
2008-08-07 22:05:43,120 INFO Checking if any deprecated packages are installed.
2008-08-07 22:05:43,774 INFO Install end
2008-08-07 22:05:45,250 INFO Starting Scalix server
2008-08-07 22:05:46,297 ERROR Operation failed: Starting Scalix server failed: /opt/scalix/bin/omrc: (1) ['ERROR: Inconsistency found between version files in sys and lib', 'directories. This means that the patch levels of the Scalix shared', 'library and binary areas do not match. Scalix cannot be started until', 'this is resolved.', '']
2008-08-07 22:05:46,411 INFO Found package jre-1_5_0_13-linux-i586.rpm in directory /usr/src/scalix-11.4.1-GA/third_party/jre/i386
2008-08-07 22:05:46,412 INFO Found package jre-1_5_0_*-linux-i586.rpm in /usr/src/scalix-11.4.1-GA/third_party/jre/i386/jre-1_5_0_13-linux-i586.rpm
2008-08-07 22:05:46,531 INFO Package 'jre' is not installed
2008-08-07 22:05:46,769 INFO Java RPM provides jre-1.5.0_13-fcs
2008-08-07 22:05:46,770 INFO Installing Java JRE: extracting rpm /usr/src/scalix-11.4.1-GA/third_party/jre/i386/jre-1_5_0_13-linux-i586.rpm
2008-08-07 22:05:46,771 INFO Starting installation of RPM files [('/usr/src/scalix-11.4.1-GA/third_party/jre/i386/jre-1_5_0_13-linux-i586.rpm', 'jre')]
2008-08-07 22:05:56,670 INFO Operation passed: Install /bin/rpm -i -v --percent /usr/src/scalix-11.4.1-GA/third_party/jre/i386/jre-1_5_0_13-linux-i586.rpm: (0) ['Preparing packages for installation...', 'jre-1.5.0_13-fcs']
2008-08-07 22:05:56,671 INFO Installing Java JRE: succeeded
2008-08-07 22:05:57,143 INFO Setting JAVA_HOME environment variable to /usr/java/jre1.5.0_13
2008-08-07 22:06:05,621 INFO Configuring PostgreSQL...
2008-08-07 22:06:09,756 ERROR Operation failed: Failed to set password for the 'scalix' database user.
7. Problems & troubleshooting
I've tried a clean installation without importing old data on the same server setup. That works just fine.
Tried http://www.scalix.com/forums/viewtopic.php?t=6219
pgstartup.log
Code: Select all
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: logger shutting down
LOG: could not bind IPv4 socket: Cannot assign requested address
HINT: Is another postmaster already running on port 5733? If not, wait a few seconds and retry.
WARNING: could not create listen socket for "<coputername.domain>"
FATAL: could not create any TCP/IP sockets
FATAL: syntax error in file "/var/opt/scalix/dd/postgres/data/postgresql.conf" line 104, near token "MB"
Line 104 in postgresql.conf
Code: Select all
shared_buffers = 24MB
Code: Select all
/etc/init.d/scalix start
outputs
Code: Select all
Starting Scalix services (diamond): ERROR: Inconsistency found between version files in sys and lib
directories. This means that the patch levels of the Scalix shared
library and binary areas do not match. Scalix cannot be started until
this is resolved.
[FAILED]
Tried http://www.scalix.com/forums/viewtopic.php?t=6920&postdays=0&postorder=asc&start=0
Code: Select all
# rpm -qa | grep scalix
scalix-libical-0.27.20071008-1
scalix-res-11.4.1.4516-1
scalix-sis-11.4.1.1040-1
scalix-tomcat-connector-11.4.1.896-1.rhel5
scalix-chardet-1.0.20071031-1.rhel5
scalix-server-11.4.1.11855-1.rhel5
scalix-platform-11.4.1.2072-1
scalix-swa-11.4.1.11567-1
scalix-iconv-extras-1.2-1.rhel5
scalix-tomcat-5.5.25-415
scalix-postgres-11.4.1.2072-1
scalix-sac-11.4.1.4516-1
scalix-mobile-11.4.1.876-1
Code: Select all
# cat /var/opt/scalix/dd/s/sys/version
11.4.0.11669
Code: Select all
# omvers
showing 11.4.1.11855 for all components
8. Conclusion
I think i'm facing two problems
1. The version inconsistency
2. The failure to set the password for the database user 'scalix'[/code]