[Solved] Move and Upgrade: Fedora 7 -> CentOS 5.2

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

wittewim

[Solved] Move and Upgrade: Fedora 7 -> CentOS 5.2

Postby wittewim » 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.

    - 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
After first login

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
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]
Last edited by wittewim on Sun Aug 10, 2008 10:50 am, edited 1 time in total.

kanderson

Postby kanderson » Fri Aug 08, 2008 12:52 am

"ompatchom" will fix the version inconsistency.

I'd rerun the installer, and delete the database, then make sure /var/opt/scalix/dd/postgres is deleted, and then I'd run the installer again, and reinstall the database, which will also reconfigure it. I'd bet that the version of Postgres has changed, and there's no data in there that matters, so nuking it and recreating is easier than troubleshooting it through an upgrade.

Note that once postgres is reinstalled, it will take a (very) long time to regenerate the data, and this will likely be noticeable performance wise. Not the end of the world, but be aware of it.

BTW, VERY good decision to move to Cent. VERY good. Scalix does not belong on Fedora.

Kev.

wittewim

Postby wittewim » Fri Aug 08, 2008 10:43 am

1. Version
ompatchom returns

Code: Select all

# ompatchom
ompatchom: Scalix instance not installed


A start or a stop of the scalix daemon (/etc/init.d/scalix) returns no result and does nothing.

2. Database
Noticed something unusual before trying to remove and reinstall the database. I was looking for the postgres folder in i found it under

Code: Select all

/var/opt/scalix/dd/s/dd/


Why de double 'dd' folder ?
Last edited by wittewim on Fri Aug 08, 2008 10:52 am, edited 1 time in total.

wittewim

Postby wittewim » Fri Aug 08, 2008 10:51 am

I uninstalled the database (option 4 in the (un)installer). Also confirmed the deletion of the cached data.

Code: Select all

-> Are you sure you want to uninstall the selected components? (yes/no) [no] yes

-> After uninstalling Scalix DB do you want to remove the cache data? (yes/no) [no] yes

-> Are you sure you want to remove the cache data? (yes/no) [no] yes

-> Press Enter to begin uninstallation:
Please wait while Scalix components are uninstalled...
Discovering instances...
Stopping PostgreSQL...
Uninstalling Scalix DB...
All selected Scalix components have now been uninstalled.
Uninstallation finished.
Scalix Installer - cleaning up...
Scalix Installer - done.


The postgres folder still exists in /var/opt/scalix/dd/s/dd/

The installer detects that the DB is removed because i was able to reinstall the database

Code: Select all

Please choose one or more components to install:
[1] Scalix DB
-> Please enter comma-separated list of numbers [1]: 1

Performing system check...

* Environment check... OK
* Filesystem check... OK
* Network check... OK
* Dependency check... OK
* Running services check... OK
* Community license check... OK

-> Press Enter to begin installation:

Please wait while Scalix components are installed...
Installing packages...
Installing Scalix DB...
Done.

=== PostgreSQL Configuration ===


-> Enter database password:

-> Confirm password:

-> Please specify comma-separated list of IP addresses where Scalix Messaging Services is or will be installed [<ip-address>]:
Configuring PostgreSQL...


Configuring Web applications...
Cleaning up Tomcat......
Configuring Tomcat...
Fatal error occured: Msg: An error occurred configuring Web applications -- check the log for errors.
Scalix Installer - cleaning up...
Scalix Installer - done.


Code: Select all

# /etc/init.d/scalix-postgres start

Returns no result

P.S.: I rebooted the machine before trying to fix the version number and database problem

kanderson

Postby kanderson » Fri Aug 08, 2008 11:38 am

This is the mess I was referring to in another thread. :)

Ok, stop Scalix.
omshut -t3
/etc/init.d/scalix-tomcat stop
/etc/init.d/scalix-postgres stop

mv everything from /var/opt/scalix/dd/s/dd up 2 levels so that it's at /var/opt/scalix/dd, and then remove the (now unused) directory.
mv /var/opt/scalix/dd /var/opt/scalix/dd_old
mv /var/opt/scalix/dd_old/s/dd /var/opt/scalix

This should leave you with /var/opt/scalix/dd/postgres (for example). And there should no longer be a /var/opt/scalix/dd/s/dd directory.

THEN...

Check /etc/opt/scalix/instance.cfg. Verify that omdatadir is /var/opt/scalix/dd/s. If it isn't, then change it to be that.

This is exactly the same as the file /opt/scalix/global/config. Make sure the datadir is correct there too.

Then rerun ompatchom. Now it should work. Then uninstall/reinstall postgres, and you're golden. I suspect, if you used rsync to move this, that it was wrong on the original server, and we're actually cleaning that up on the new server. So be aware that if you rerun the rsync, it'll overwrite this all unless you change the config a bit.

Kev.

wittewim

Postby wittewim » Sun Aug 10, 2008 10:50 am

It worked. Both version and postgres problems are fixed. I had to reinstall tomcat also, otherwise webmail and sac are not available.

Weird thing is that there was no double 'dd' folder on the old Fedora 7. Probably it was created by the installer when i ran it the first time

Thanks for the help !

kanderson

Postby kanderson » Sun Aug 10, 2008 1:39 pm

If it wasn't there on the old version, then I'd bet that either the rsync had some misspecified parameters, or the installer tried to reupgrade the messagestore to a new location. In either case, it something that has been seen lots of times before, and it's an easy fix.

Either way, You're WAY better off on Cent. Enjoy.

Kev.

EagleHH

Postby EagleHH » Tue Sep 09, 2008 1:13 pm

Finally after testing on fc7 I moved my scalix installation to cent os 5.2

Facing the same problems like wittewim this thread helped me a lot to get the move done more or less.

sac and webmail are still not avaiable, but I am not able to uninstall/reinstall tomcat as wittewim did. When I choose tomcat and or the tomcat apache connector for uninstallation in the install dialog the entry will not accepted.

Did I missed something to reinstall tomcat ?

axslingr
Posts: 65
Joined: Mon Mar 19, 2007 11:39 am
Location: Arkansas, United States

Postby axslingr » Thu Sep 11, 2008 2:55 pm

This may help to get sac and webmail working again.

First look for the following symlink in /etc/httpd/conf.d

Code: Select all

lrwxrwxrwx  1 root root    47 Jul 31 05:50 scalix-web-client.conf -> /opt/scalix/global/httpd/scalix-web-client.conf


If you don't have it, type the following command:

Code: Select all

omwebconf -l AMERICAN


Then edit /etc/httpd/conf.d/scalix-tomcat-connector.conf and change the Include line that has 'apps' in it to 'instance', like this:

Code: Select all

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


Restart apache and scalix-tomcat and test.

HTH,
Lance


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests