Install issues Debian Etch -anyone? or Manual install help

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Install issues Debian Etch -anyone? or Manual install help

Postby sparky » Wed Aug 27, 2008 3:28 pm

Hi, I don't know if anyone still is around who has successfully got Scalix to work on Debian Etch?

I am attempting the manual install and had got Scalix to the point where it wasn't logging in but the issue was with the connection to the administration server.

The user sxqueryadmin seemed to be locked even though: # omshowu -n sxqueryadmin

showed it as open!

However after reading:

http://www.scalix.com/wiki/index.php?ti ... min_Server

http://www.scalix.com/wiki/index.php?ti ... Query_User

viewtopic.php?t=6312&postdays=0&postorder=asc&start=0

and using the script from here: http://www.scalix.com/wiki/index.php?ti ... ebian_Etch

I almost am in to the admin console.

The specific error I'm getting is: Could Not Login, Could not fetch configuration information, Possible problem with administration server

From the script discussed above, the errors start here:

[...]
############################################################
#
# Setting up Scalix Mailnode
#
###########################################################
[...]

since it is installed already and starts up automatically on boot the wierd part is that none of the om commands work??

ie. omaddmn, ommakeom, omon -s all, omshowu -n sxadmin

After a reboot of the system I had to re-run:

export PATH=/opt/scalix/bin:$PATH
ommakeom

and now when I try to issue any of the om commands I get the error: Which Scalix Server system?



Is there anyone who has managed a manual install that can help me? I know Debian isn't supported and I don't know why it isn't since many people use it but I think my errors are similar to the guys in this post: viewtopic.php?t=6312&postdays=0&postorder=asc&start=0

using Fedora I think?

Anyway I would really apprieciate any advice!

Thanks

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Thu Aug 28, 2008 9:18 am

Hi,

as already said in a private mail, I would suggest starting from scratch and running the installation script line by line to see where the error happens.

I have run the installation script on Debian Etch systems several times without any problems so I would really be interested in where the script fails on your system.

Cheers,
Christoph

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 9:20 am

Hi Christoph,

I am just in the process of doing that!

It's really strange though the first error I got was: ldomain=$(hostname -d) here

It said unknown hostname then through me out of my ssh session??

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 9:27 am

Ok that problems sorted, just I hope the terminal will remember all the values from:

Code: Select all

echo -n "What should the name of your primary mailnode be? "; read mnode
echo -n "Please enter the admin password for the Scalix admin user (sxadmin)? "; read admpwd
echo -n "Please enter a password for the ldap query user? "; read ldappwd
echo -n "Please enter a password for the db user? "; read dbpwd
echo -n "Please enter the external ip address of your Scalix box? "; read ip


as it's not part of the script any more since am going line by line.

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 9:50 am

Ok this is getting really wierd!

I can't install line by line it seems my ssh session keeps exiting on me then when I come back to the script I have to start from the begining again??

I've resulted to modifying the script so that I go up to the point I left off line by line.

Apart from the downloads and package configurations which I excluded since they're in already everything else is in.

Now I am back to the previous Error area:

Code: Select all

export PATH=/opt/scalix/bin:$PATH
ommakeom


ommakeom doesn't work?

my modified script is as follows:

Code: Select all

#!/bin/bash

#
# (C) 2006-2008 Christoph Lukas <christoph.lukas@gmx.net>
#  05-23-2007 modified to setup the mobile client by Peter Ulrich
#  06-11-2007 adapted for 11.1.0 Till Wimmer <scalix@tonarchiv.ch>
#  01-09-2008 adapted for 11.3.0 Christoph Lukas <christoph.lukas@gmx.net>
#
# private message via scalix forums: http://www.scalix.com/forums/privmsg.php?mode=post&u=4501

set -e
cat << EOF

############################################################
# SCALIX INSTALLTION SCRIPT FOR DEBIAN ETCH
#
# (C) 2006-2008 Christoph Lukas, Till Wimmer, Peter Ulrich
############################################################

EOF
echo -n "What should the name of your primary mailnode be? "; read mnode
echo -n "Please enter the admin password for the Scalix admin user (sxadmin)? "; read admpwd
echo -n "Please enter a password for the ldap query user? "; read ldappwd
echo -n "Please enter a password for the db user? "; read dbpwd
echo -n "Please enter the external ip address of your Scalix box? "; read ip

tomcatport=80
ldapport=389
scalix11downloadurl="http://downloads.scalix.com/.community/11.3/scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11bin="scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11dir="scalix-debian-11.3.0-GA/software/scalix_server"
ldomain=$(hostname -d)
host=$(hostname)
fqdn=$(hostname -f)
short=${host:0:1}${host: -1:1}

cat << EOF

EOF
sleep 2
# Download Scalix 11
cd /tmp/
#wget -N $scalix11downloadurl
#chmod 755 $scalix11bin

cat << EOF

EOF
sleep 2
# Extract and install packages
#./$scalix11bin

cat << EOF

EOF
sleep 2
cd $scalix11dir
#dpkg -i scalix-libical_*.deb scalix-chardet_*.deb
#dpkg -i scalix-server_*.deb
#dpkg -i scalix-postgres_*.deb scalix-tomcat-connector_*.deb scalix-tomcat_*.deb \
#        scalix-mobile_*.deb scalix-platform_*.deb scalix-res_*.deb scalix-sac_*.deb \
#        scalix-sis_*.deb scalix-swa_*.deb
#cd

cat << EOF

EOF
sleep 2
# Setup mailnode
export PATH=/opt/scalix/bin:$PATH


am gona try to add ommakeom to it and see if it works.

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 9:55 am

Ok this is the result of adding ommakeom into the script:

Code: Select all

ERROR:   ompatchom script failed
         /var/opt/scalix/lt/s/sys/install/log contains error messages


the error log shows this:

Code: Select all

ompatchom: Running patch-uninstall scripts ...
ompatchom: Running patch-preinstall scripts ...

###########################################################################
#
# ompatchom: Initializing Scalix components.
#
###########################################################################

ompatchom: Copying Scalix components, please wait

###########################################################################
#
# OM-CORE
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...

Service Local Delivery set up
Service Service Router set up
Service Sendmail Interface set up
Service Test Server set up
Service Administration set up
Service Converters set up
Service Browser set up
Service Request Server set up
Service Print Server set up
Service Directory Relay Server set up
Service CDA Server set up
Service Dump Server set up
Service Omscan Server set up
Service Notification Server set up
Service Shared memory daemon set up
Service Queue Manager set up
Service Item Delete Daemon set up
Service Background Search Service set up
Service Notification Monitor set up
Service Indexer set up
Service Container Access Monitor set up
Service Item Structure Server set up
Service Database Monitor set up
Service Licence Monitor Daemon set up
Service Session Monitor set up
Service Stats Daemon set up
Service Mime Browser Controller set up
Service SMTP Relay set up
Service Archiver set up
Service Event Server set up
executing /opt/scalix/bin/queue.manager -iu

Done
NOTE: The following line has been added to /etc/services. If you run
      Network Information Services (ypbind/ypserv) you should update
      your server accordingly.
      LINE ADDED:-
       x500ms   5757/udp    # Scalix X500 Directory Server.

NOTE: The following line has been added to /etc/services. If you run
      Network Information Services (ypbind/ypserv) you should update
      your server accordingly.
      LINE ADDED:-
       scalixns   5766/udp    # Scalix NewMail Server.

 Adding system startup for /etc/init.d/scalix ...
   /etc/rc0.d/K18scalix -> ../init.d/scalix
   /etc/rc1.d/K18scalix -> ../init.d/scalix
   /etc/rc6.d/K18scalix -> ../init.d/scalix
   /etc/rc2.d/S22scalix -> ../init.d/scalix
   /etc/rc3.d/S22scalix -> ../init.d/scalix
   /etc/rc4.d/S22scalix -> ../init.d/scalix
   /etc/rc5.d/S22scalix -> ../init.d/scalix
 Adding system startup for /etc/init.d/ldapmapper ...
   /etc/rc0.d/K19ldapmapper -> ../init.d/ldapmapper
   /etc/rc1.d/K19ldapmapper -> ../init.d/ldapmapper
   /etc/rc6.d/K19ldapmapper -> ../init.d/ldapmapper
   /etc/rc2.d/S21ldapmapper -> ../init.d/ldapmapper
   /etc/rc3.d/S21ldapmapper -> ../init.d/ldapmapper
   /etc/rc4.d/S21ldapmapper -> ../init.d/ldapmapper
   /etc/rc5.d/S21ldapmapper -> ../init.d/ldapmapper
NOTE: Creating a new Scalix default name lookup Directory called system

Added new Directory
Modified Directory
Adding any configured local users into the new default name lookup Directory
This may take some time, Please Wait ...

NOTE: Creating a new Scalix default item structure db called 0

executing /opt/scalix/bin/omsendin

*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
NOTE: A copy of your sendmail configuration with changes for Scalix is
      now in /opt/scalix/newconfig/om_sendmail.cf
      Use /opt/scalix/newconfig/sm.update to install it.


executing /opt/scalix/newconfig/sm.update

NOTE:   [OMINST 608] /etc/mail/sendmail.cf backed up to
NOTE:                /etc/mail/sendmail.cf.1 prior to changes for Scalix.

Stopping Mail Transport Agent: sendmail.
Stopping Scalix LDAP mapper (ldapmapper): .
Starting Scalix LDAP mapper (ldapmapper): .
Starting Mail Transport Agent: sendmail.
Sendmail restarted.

Done

###########################################################################
#
# Check and clear out all old directory change logs if one or more
# directory requires conversion. To initiate a resync request, use:
#    omresyncds -d <directory_name>
#
###########################################################################

No directories require conversion

###########################################################################
#
# Convert all hidden directories without password
#
###########################################################################

No directories require conversion

###########################################################################
#
# Convert all shared directories without password
#
###########################################################################

No directories require conversion

###########################################################################
#
# Check any other directory with password not converted.
# Manual conversion instruction using omcnvdirs utility:
#     omcnvdirs -d <name> -t <type> -p <password> -a ''
#
###########################################################################

No directories require conversion

###########################################################################
#
# OM-ADM
#
###########################################################################


###########################################################################
#
# OM-AMECAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-AMEPAW
#
###########################################################################


###########################################################################
#
# OM-AMEPDA
#
###########################################################################


###########################################################################
#
# OM-AMERW
#
###########################################################################


###########################################################################
#
# OM-AMEWAP
#
###########################################################################


###########################################################################
#
# OM-BB
#
###########################################################################

Service Bulletin Board Server set up

###########################################################################
#
# OM-CHSCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-CHSPAW
#
###########################################################################


###########################################################################
#
# OM-CHSPDA
#
###########################################################################


###########################################################################
#
# OM-CHSRW
#
###########################################################################


###########################################################################
#
# OM-DSYNC
#
###########################################################################

Service Directory Synchronization set up

Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-ENGCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-ENGPAW
#
###########################################################################


###########################################################################
#
# OM-ENGPDA
#
###########################################################################


###########################################################################
#
# OM-ENGRW
#
###########################################################################


###########################################################################
#
# OM-ENGWAP
#
###########################################################################


###########################################################################
#
# OM-FINCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-FINPAW
#
###########################################################################


###########################################################################
#
# OM-FINPDA
#
###########################################################################


###########################################################################
#
# OM-FINRW
#
###########################################################################


###########################################################################
#
# OM-FINWAP
#
###########################################################################


###########################################################################
#
# OM-FRECAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-FREPAW
#
###########################################################################


###########################################################################
#
# OM-FREPDA
#
###########################################################################


###########################################################################
#
# OM-FRERW
#
###########################################################################


###########################################################################
#
# OM-FREWAP
#
###########################################################################


###########################################################################
#
# OM-GERCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-GERPAW
#
###########################################################################


###########################################################################
#
# OM-GERPDA
#
###########################################################################


###########################################################################
#
# OM-GERRW
#
###########################################################################


###########################################################################
#
# OM-GERWAP
#
###########################################################################


###########################################################################
#
# OM-IMAP4
#
###########################################################################

Service IMAP Server Daemon set up

###########################################################################
#
# OM-ITACAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-ITAPAW
#
###########################################################################


###########################################################################
#
# OM-ITAPDA
#
###########################################################################


###########################################################################
#
# OM-ITARW
#
###########################################################################


###########################################################################
#
# OM-ITAWAP
#
###########################################################################


###########################################################################
#
# OM-KORCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-KORPAW
#
###########################################################################


###########################################################################
#
# OM-KORPDA
#
###########################################################################


###########################################################################
#
# OM-KORRW
#
###########################################################################


###########################################################################
#
# OM-LC
#
###########################################################################

Service Local Client Interface set up

###########################################################################
#
# OM-LDAP
#
###########################################################################

Service LDAP Daemon set up

###########################################################################
#
# OM-MAN
#
###########################################################################


###########################################################################
#
# OM-NIPCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-NIPPAW
#
###########################################################################


###########################################################################
#
# OM-NIPPDA
#
###########################################################################


###########################################################################
#
# OM-NIPRW
#
###########################################################################


###########################################################################
#
# OM-PMOVER
#
###########################################################################


###########################################################################
#
# OM-POP3
#
###########################################################################

Service POP3 interface set up
NOTE: A new POP3 service has been installed, if you had a POP3 server
      configured prior to this installation you may need to make some
      manual configuration changes. See the Scalix installation guide
      for details.


###########################################################################
#
# OM-PTBCAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-PTBPAW
#
###########################################################################


###########################################################################
#
# OM-PTBPDA
#
###########################################################################


###########################################################################
#
# OM-PTBRW
#
###########################################################################


###########################################################################
#
# OM-PTBWAP
#
###########################################################################


###########################################################################
#
# OM-RC
#
###########################################################################

Service Remote Client Interface set up
Service PC Monitor set up
NOTE: The following line has been added to /etc/services. If you run
      Network Information Services (ypbind/ypserv) you should update
      your server accordingly.
      LINE ADDED:-
       scalixual  5729/tcp    #Scalix UAL port.


###########################################################################
#
# OM-SPACAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-SPAPAW
#
###########################################################################


###########################################################################
#
# OM-SPAPDA
#
###########################################################################


###########################################################################
#
# OM-SPARW
#
###########################################################################


###########################################################################
#
# OM-SPAWAP
#
###########################################################################


###########################################################################
#
# OM-SWECAT
#
###########################################################################


Updating conversion and language specific configuration files.
This may take some time, Please Wait ...


###########################################################################
#
# OM-SWEPAW
#
###########################################################################


###########################################################################
#
# OM-SWEPDA
#
###########################################################################


###########################################################################
#
# OM-SWERW
#
###########################################################################


###########################################################################
#
# OM-SWEWAP
#
###########################################################################


###########################################################################
#
# OM-UNIX
#
###########################################################################

Service Internet Mail Gateway set up

Updating conversion and language specific configuration files.
This may take some time, Please Wait ...

omrc : Scalix appears to be running.
If you wish to restart Scalix cleanly, run "omshut" or
kill the following processes, then run "omrc".

[OM 28655] Configuration record added

Fetching all entries from Directory  ... Please wait
Sorting Directory entries            ... Please wait
Building Directory Access Tables     ... Please wait
FREEBUSY directory created
Extracting local user information...
[OM 16954] Entry not in the Directory

FREEBUSY directory created and local user entries added

omconfux : Scalix config file was updated successfully.
omconfux : Scalix config file was updated successfully.

###########################################################################
#
# ompatchom: Scalix Initialization Complete
#
###########################################################################

ompatchom: Running patch-postinstall scripts ...
NOTE: The above output is also contained in the
      file /var/opt/scalix/lt/s/sys/install/log

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 10:03 am

hmm now I disabled ommakeom from the script and added these lines:

Code: Select all

sxconfig --set -t general.usrl_authid_rule='l@'
sxconfig --set -t orniasys.name_part_1='"C" <S>' -t orniasys.domain_part_1="$ldomain"
omaddmn -m $mnode
omrc -n
omadmidp -a -s 66000 -n 100
omaddu -n sxadmin/$mnode --class limited -c admin -p "$admpwd" sxadmin
omconfenu -n "sxadmin/$mnode"
omlimit -u "sxadmin/$mnode" -o -i 0 -m 0
omaddu -n sxqueryadmin/$mnode --class limited -c admin -p $ldappwd sxqueryadmin@$fqdn
omaddpdl -l ScalixUserAdmins/$mnode
omaddpdl -l ScalixUserAttributesAdmins/$mnode
omaddpdl -l ScalixGroupAdmins/$mnode
omaddpdl -l ScalixAdmins/$mnode
omon -s all

cat << EOF



and got this result:

Code: Select all

The specified tag and value has been added or modified if present.

The specified tag and value has been added or modified if present.

The specified tag and value has been added or modified if present.

The specified tag and value has been added or modified if present.

omaddmn : Mailnode added as primary mailnode on machine
Scalix 11.3.0.11339

Copyright (c) 2002-2007 Scalix, Inc.  All rights reserved.
Copyright (c) 2002 Hewlett-Packard Development Company, L.P. All rights reserved.
(c) Copyright Hewlett-Packard Company 1989-2001.  All rights reserved.
Portions (c) Copyright Raima(TM) Corporation 1984,1990.  All rights reserved.
Portions (c) Copyright 1991-1995 Regents of the University of Michigan.
             All rights reserved.
Portions (c) Copyright 1989-1994 Regents of the University of California.
             All rights reserved.
Portions (c) Copyright 1999 The MITRE Corporation, Keith Visco.
             All rights reserved.
Portions (c) Copyright 1998-1999 James Clark. All rights reserved.
Portions (c) Copyright 1998-1999 Zveno Pty Ltd, Steve Ball. All rights reserved.Portions (c) Copyright 1994-1999 Australian National University, CSIRO.
             All rights reserved.
Portions (c) Copyright 1996-1999 Andrew G. Morgan. All rights reserved.
Portions (c) Copyright 1996,1998 Cristian Gafton, CRYPTOCard Inc.
Portions (c) Copyright 1994-1999 Sun Microsystems Inc, Scriptics Corporation.

The Logictran R2Net Converter is copyright (c) 2000, Logictran, Inc.  Portions
of the R2Net Converter are based in part on the work of the University of
Toronto.

                         RESTRICTED RIGHTS LEGEND
Use, duplication, or disclosure by the U.S. Government is subject to
restrictions as set forth in sub-paragraph (c)(1)(ii) of the Rights in
Technical Data and Computer Software clause in DFARS 252.227-7013.

                        Scalix, Inc.
                        149 Madison Avenue
                        Suite 302
                        New York, NY 10016
                        USA

Rights for non-DOD U.S. Government Departments and Agencies are as set
forth in FAR 52.227-19(c)(1,2).


Enabling 8 subsystem(s).
Directory Relay Server      Started
Notification Server         Started
Database Monitor            Started
LDAP Daemon                 Started
IMAP Server Daemon          Started
SMTP Relay                  Started
Mime Browser Controller     Started
Event Server                Started
[OM 10440] omrc : Service startup has been disabled.
Scalix services NOT started.

omadmidp: Unix IDs pool 66000..66099 successfully added
omaddu : The user was added successfully
omconfenu : Error Notification user correctly configured
The user's limits were modified successfully
omaddu : The user was added successfully
The public distribution list was added successfully
The public distribution list was added successfully
The public distribution list was added successfully
The public distribution list was added successfully
Enabling 13 subsystem(s).

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 10:17 am

Ok this is the last error I get:

Code: Select all

./sxinst.sh: line 111: /var/opt/scalix/F0/webmail/swa.properties.neu: No such file or directory


with modified script:

Code: Select all

#!/bin/bash

#
# (C) 2006-2008 Christoph Lukas <christoph.lukas@gmx.net>
#  05-23-2007 modified to setup the mobile client by Peter Ulrich
#  06-11-2007 adapted for 11.1.0 Till Wimmer <scalix@tonarchiv.ch>
#  01-09-2008 adapted for 11.3.0 Christoph Lukas <christoph.lukas@gmx.net>
#
# private message via scalix forums: http://www.scalix.com/forums/privmsg.php?mode=post&u=4501

set -e
cat << EOF

############################################################
# SCALIX INSTALLTION SCRIPT FOR DEBIAN ETCH
#
# (C) 2006-2008 Christoph Lukas, Till Wimmer, Peter Ulrich
############################################################

EOF
echo -n "What should the name of your primary mailnode be? "; read mnode
echo -n "Please enter the admin password for the Scalix admin user (sxadmin)? "; read admpwd
echo -n "Please enter a password for the ldap query user? "; read ldappwd
echo -n "Please enter a password for the db user? "; read dbpwd
echo -n "Please enter the external ip address of your Scalix box? "; read ip

tomcatport=80
ldapport=389
scalix11downloadurl="http://downloads.scalix.com/.community/11.3/scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11bin="scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11dir="scalix-debian-11.3.0-GA/software/scalix_server"
ldomain=$(hostname -d)
host=$(hostname)
fqdn=$(hostname -f)
short=${host:0:1}${host: -1:1}

cat << EOF

EOF
sleep 2
# Download Scalix 11
cd /tmp/
#wget -N $scalix11downloadurl
#chmod 755 $scalix11bin

cat << EOF

EOF
sleep 2
# Extract and install packages
#./$scalix11bin

cat << EOF

EOF
sleep 2
cd $scalix11dir
#dpkg -i scalix-libical_*.deb scalix-chardet_*.deb
#dpkg -i scalix-server_*.deb
#dpkg -i scalix-postgres_*.deb scalix-tomcat-connector_*.deb scalix-tomcat_*.deb \
#        scalix-mobile_*.deb scalix-platform_*.deb scalix-res_*.deb scalix-sac_*.deb \
#        scalix-sis_*.deb scalix-swa_*.deb
cd

cat << EOF

EOF
sleep 2
# Setup mailnode
#export PATH=/opt/scalix/bin:$PATH
#ommakeom
#sxconfig --set -t general.usrl_cn_rule='G S'
#sxconfig --set -t general.usrl_authid_rule='l@'
#sxconfig --set -t orniasys.name_part_1='"C" <S>' -t orniasys.domain_part_1="$ldomain"
#omaddmn -m $mnode
#omrc -n
#omadmidp -a -s 66000 -n 100
#omaddu -n sxadmin/$mnode --class limited -c admin -p "$admpwd" sxadmin
#omconfenu -n "sxadmin/$mnode"
#omlimit -u "sxadmin/$mnode" -o -i 0 -m 0
#omaddu -n sxqueryadmin/$mnode --class limited -c admin -p $ldappwd sxqueryadmin@$fqdn
#omaddpdl -l ScalixUserAdmins/$mnode
#omaddpdl -l ScalixUserAttributesAdmins/$mnode
#omaddpdl -l ScalixGroupAdmins/$mnode
#omaddpdl -l ScalixAdmins/$mnode
#omon -s all

cat << EOF

EOF
sleep 2
# Setup DB
#cd /opt/scalix-postgres/bin
#./sxpsql-setpwd $dbpwd
#./sxpsql-whitelist 127.0.0.1 $ip

cat << EOF

EOF
sleep 2
# Configure Scalix
base=/var/opt/scalix/${short}
files="$base/webmail/swa.properties \
       $base/caa/scalix.res/config/ubermanager.properties \
       $base/res/config/res.properties \
       $base/platform/platform.properties \
       $base/mobile/mobile.properties \
       $base/sis/sis.properties"

for file in $files; do
sed -e "s;%LOCALDOMAIN%;$ldomain;g" \
    -e "s;%LOCALHOST%;$fqdn;g" \
    -e "s;swa.platform.url=http://%PLATFORMURL%:8080/api;swa.platform.url=http://$fqdn/api;g" \
    -e "s;%PLATFORMURL%;http://$fqdn/api;g" \
    -e "s;__SECURED_MODE__;false;g" \
    -e "s;ubermanager/__FQHN_HOST__@__KERBEROS_REALM__;;g" \
    -e "s;__KERBEROS_REALM__;;g" \
    -e "s;__FQHN_FOR_KDC_HOST__;;g" \
    -e "s;__FQHN_QUERY_SERVER_NAME__;$fqdn;g" \
    -e "s;__UBERMGR_USE_EXTERNAL_AUTH__;false;g" \
    -e "s;__UBERMGR_ALLOW_EXTERNAL_AUTH__;false;g" \
    -e "s;__UBERMGR_MAXLIST_SIZE__;100;g" \
    -e "s;__UBERMGR_MAIL_DOMAINS_LIST__;$ldomain;g" \
    -e "s;__UBERMGR_EXTERNAL_DOMAIN_AUTH_LIST__;;g" \
    -e "s;__CONFIGURED__;true;g" \
    -e "s;__FQHN_FOR_UBERMANAGER__;$fqdn;g" \
    -e "s;__TOMCAT_PORT__;$tomcatport;g" \
    -e "s;localhost;$fqdn;g" \
    -e "s;%SIS-LANGUAGE%;German;g" \
    -e "s;%INDEX-WHITELIST%;$fqdn;g" \
    -e "s;%SEARCH-WHITELIST%;$fqdn;g" \
    -e "s;%IMAPHOST%;$fqdn;g" \
    -e "s;%SMTPHOST%;$fqdn;g" \
    -e "s;%LDAPPORT%;389;g" \
    -e "s;%DBHOST%;$fqdn:5733;g" \
    -e "s;%DBPASSWD%;$dbpwd;g" \
    $file > $file.neu
mv $file.neu $file
done

cat << EOF


At this point I don't know what to do so I will give it a rest for a while and wait for a response.

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 11:04 am

Ok this error: /var/opt/scalix/F0/webmail/

is coming up because my instance is lt and not F0!

I changed this: base=/var/opt/scalix/${short}

to: base=/var/opt/scalix/lt/

and then it worked!

gone through the script now and hopefully eliminated all the errors in there?

Admin console not starting though :(

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 12:18 pm

Well after every thing was as documented I tried to login via localhost/sac and kept getting the errors service temporarily unavailable!

Now with my previous attempt that would go away after a while and the admin console would come up but no such luck here :(

I have just gone through all these settings in order to maybe try to rectify the situation:

http://www.scalix.com/wiki/index.php?ti ... min_Server

But now I cannot access from anywhere? Even after setting up DNS for the system from my router (it's a Cisco so has integrated DNS server) going to hostname.domainname.com/sac gives me URL not found.

I don't understand this!

after setting up this file: /var/opt/scalix/<instance>/webmail/swa.properties

everything should just work properly but it doesn't.

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Thu Aug 28, 2008 12:37 pm

# ps aux|grep java gives me:

Code: Select all

root      3008  4.2 20.6 518632 106356 ?       Sl   19:08   0:30 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java -server -Xms256m -Xmx256m -Dscalix.instance=/var/opt/scalix/lt -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/lt/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/lib/jvm/java-1.5.0-sun/jre/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/lt/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/lt/tomcat/temp org.apache.catalina.startup.Bootstrap start
root      4237  0.0  0.1   2848   696 pts/0    R+   19:20   0:00 grep java


omshowu -n sxadmin

doesn't work untill I manually run:

export PATH=/opt/scalix/bin:$PATH

then I get:

Code: Select all

Authentication ID: sxadmin
Globally Unique ID: 1500000024da6b84-1.0.0.721
User Name : sxadmin /CN=sxadmin
MailNode : ferrari3200
Internet Address : "sxadmin" <sxadmin@localhost>
System Login : 60534
Password : set
Admin Capabilities : YES
Mailbox Admin Capabilities : NO
Language : C
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
Recovery Folder visible : NO
User Class : Limited
SIS URL : sxidx://localhost/0500000024da6b84-1.0.0.721



# omshowu -n sxqueryadmin gives me:

Code: Select all

Authentication ID: sxqueryadmin@localhost
Globally Unique ID: 1900000024da6b84-1.0.0.721
User Name : sxqueryadmin /CN=sxqueryadmin
MailNode : ferrari3200
Internet Address : "sxqueryadmin" <sxqueryadmin@localhost>
System Login : 60535
Password : set
Admin Capabilities : YES
Mailbox Admin Capabilities : NO
Language : C
Mail Account: Unlocked
Last Signon : Never.
Receipt of mail : ENABLED
Service level : 0
Excluded from Tidying : NO
Recovery Folder visible : NO
User Class : Limited
SIS URL : sxidx://localhost/0900000024da6b84-1.0.0.721


omstat -a shows:

Code: Select all

PC Monitor                    Started        NON-STOP       0
Directory Relay Server        Started        19:08:29
Notification Server           Started        19:08:29       0
Shared memory daemon          Started        NON-STOP
Notification Monitor          Started        NON-STOP
Session Monitor               Started        NON-STOP
Indexer                       Started        NON-STOP
Stats Daemon                  Started        NON-STOP
Container Access Monitor      Started        NON-STOP
Item Structure Server         Stopped
Database Monitor              Started        19:08:29
Licence Monitor Daemon        Started        NON-STOP
LDAP Daemon                   Started        19:08:32
Queue Manager                 Started        NON-STOP
Item Delete Daemon            Started        NON-STOP
IMAP Server Daemon            Started        19:08:32
SMTP Relay                    Started        19:08:32
Mime Browser Controller       Started        19:08:32
Event Server                  Started        19:08:33


omstat -s shows

Code: Select all

Service Router                Started        19:08:35       0
Local Delivery                Started        19:08:35       0
Internet Mail Gateway         Started        19:08:35       0
Local Client Interface        Enabled        19:08:35       0
Remote Client Interface       Enabled        19:08:35       0
Test Server                   Started        19:08:35       0
Request Server                Started        19:08:35       0
Print Server                  Started        19:08:35       0
Bulletin Board Server         Started        19:08:35       0
Background Search Service     Started        19:08:35       0
CDA Server                    Aborted        19:08:35       0
POP3 interface                Started        19:08:35       0
Omscan Server                 Started        19:08:35       0


omshowu -a shows:

Code: Select all

sxadmin /ferrari3200/CN=sxadmin
sxqueryadmin /ferrari3200/CN=sxqueryadmin


ps ax | grep tomcat shows:

Code: Select all

 3008 ?        Sl     0:31 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java -server -Xms256m -Xmx256m -Dscalix.instance=/var/opt/scalix/lt -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/lt/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/lib/jvm/java-1.5.0-sun/jre/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/lt/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/lt/tomcat/temp org.apache.catalina.startup.Bootstrap start
 4702 pts/0    R+     0:00 grep tomcat


ps -ax | grep httpd shows:

Code: Select all

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 4745 pts/0    R+     0:00 grep httpd


ps -ax | grep apache2 shows:

Code: Select all

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 3613 ?        Ss     0:00 /usr/sbin/apache2 -k start
 3614 ?        S      0:00 /usr/sbin/apache2 -k start
 3615 ?        Sl     0:00 /usr/sbin/apache2 -k start
 3617 ?        Sl     0:00 /usr/sbin/apache2 -k start
 4751 pts/0    R+     0:00 grep apache2


ps -ax | grep post shows:

Code: Select all

Warning: bad ps syntax, perhaps a bogus '-'? See http://procps.sf.net/faq.html
 2662 ?        S      0:00 /usr/lib/postgresql/7.4/bin/postmaster -D /var/lib/postgresql/7.4/main
 2665 ?        S      0:00 postgres: stats buffer process
 2666 ?        S      0:00 postgres: stats collector process
 2942 ?        S      0:00 /usr/lib/postgresql/7.4/bin/postmaster -i -h localhost -p 5733 -D /var/opt/scalix/lt/postgres/data -k /var/opt/scalix/lt/postgres/data
 2944 ?        S      0:00 postgres: stats buffer process 
 2945 ?        S      0:00 postgres: stats collector process 
 4827 pts/0    R+     0:00 grep post


and fianlly netstat- tap shows:

Code: Select all

Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State PID/Program name
tcp        0      0 localhost:2208          *:*                     LISTEN     2617/hpiod
tcp        0      0 *:scalixual             *:*                     LISTEN     3217/advmail.sckd
tcp        0      0 *:1698                  *:*                     LISTEN     3094/rpc.statd
tcp        0      0 *:ldap                  *:*                     LISTEN     3269/omslapd
tcp        0      0 localhost:5733          *:*                     LISTEN     2942/postmaster
tcp        0      0 *:5768                  *:*                     LISTEN     3278/sxeventserver
tcp        0      0 *:pop3                  *:*                     LISTEN     3340/pop3.server
tcp        0      0 *:imap2                 *:*                     LISTEN     3259/in.imap41d
tcp        0      0 *:sunrpc                *:*                     LISTEN     2334/portmap
tcp        0      0 *:auth                  *:*                     LISTEN     2871/inetd
tcp        0      0 localhost:ipp           *:*                     LISTEN     2765/cupsd
tcp        0      0 localhost:1528          *:*                     LISTEN     2620/python
tcp        0      0 ferrari3200.optipl:smtp *:*                     LISTEN     3260/omsmtpd SMTP
tcp        0      0 localhost:6010          *:*                     LISTEN     4226/0
tcp        0      0 localhost:5757          *:*                     LISTEN     3090/ldapmapper
tcp6       0      0 localhost:8005          *:*                     LISTEN     3008/java
tcp6       0      0 *:8009                  *:*                     LISTEN     3008/java
tcp6       0      0 *:www                   *:*                     LISTEN     3613/apache2
tcp6       0      0 *:ssh                   *:*                     LISTEN     3028/sshd
tcp6       0      0 ip6-localhost:6010      *:*                     LISTEN     4226/0
tcp6       0      0 ferrari3200.optiple:ssh ::ffff:192.168.1.:51331 ESTABLISHED4226/0

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Fri Aug 29, 2008 2:56 am

sparky wrote:Ok this is the result of adding ommakeom into the script:

Code: Select all

ERROR:   ompatchom script failed
         /var/opt/scalix/lt/s/sys/install/log contains error messages


the error log shows this:

Code: Select all


[..]

executing /opt/scalix/bin/omsendin

*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
NOTE: A copy of your sendmail configuration with changes for Scalix is
      now in /opt/scalix/newconfig/om_sendmail.cf
      Use /opt/scalix/newconfig/sm.update to install it.




This is the only error I could find in your log. This is due to a slightly bogus sendmail.mc file. Simply put all the FEATURE lines before the first MAILER line. That should fix it.

christoph.lukas
Posts: 48
Joined: Mon Dec 18, 2006 3:24 pm
Location: Germany

Postby christoph.lukas » Fri Aug 29, 2008 2:59 am

sparky wrote:Ok this error: /var/opt/scalix/F0/webmail/

is coming up because my instance is lt and not F0!

I changed this: base=/var/opt/scalix/${short}

to: base=/var/opt/scalix/lt/

and then it worked!

gone through the script now and hopefully eliminated all the errors in there?

Admin console not starting though :(


Ok, This might be a problem in the installation script. From my experiences I guessed that the instance dir is determined from the first and last charachter of the hostname (being ferrari3200 in your case). But this might be wrong.

Could you please paste the output of:

hostname

hostname -f

and the contents of /etc/hosts?

If your instance directory differs from the one the scipt guesses than none of the config files gets written correctly which might explain why SAC and SWA are not accessible for you.

Cheers,
Christoph

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Fri Aug 29, 2008 8:48 am

Ok Christoph:

hostname: Ferrari3200

hostname -f: ferrari3200.optiplex-networks.com

/etc/hosts:

# cat /etc/hosts
127.0.0.1 localhost
192.168.1.5 ferrari3200.optiplex-networks.com Ferrari3200
192.168.1.1 ns1.optiplex-networks.com

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts


Since the error you think is from here in you script:

[...]
base=/var/opt/scalix/${short}
[...]

I could just edit it and modify to: base=/var/opt/scalix/lt

of which I think I did anyway as posted above, but I will try re-running from there onwards again to hopefully get the correct files!

For future is the instance always the same or how is it determined??

As both times I've tried installing scalix instance has always been lt?

My previous attempt however did manage to get me as far as locahost/sac and webmail??

But it never connected to the db server I think as sxqluser was locked it said but wasn't

sparky
Posts: 53
Joined: Thu Jun 26, 2008 3:17 pm

Postby sparky » Fri Aug 29, 2008 9:15 am

Ok if ever I try to login to mylaptop/sac or /webmail it gives me the URL not found warning.

Before at least I could login with localhost/sac

but with this install I can't.

Even after running the script again, I modified it to:

Code: Select all

#!/bin/bash

#
# (C) 2006-2008 Christoph Lukas <christoph.lukas@gmx.net>
#  05-23-2007 modified to setup the mobile client by Peter Ulrich
#  06-11-2007 adapted for 11.1.0 Till Wimmer <scalix@tonarchiv.ch>
#  01-09-2008 adapted for 11.3.0 Christoph Lukas <christoph.lukas@gmx.net>
#
# private message via scalix forums: http://www.scalix.com/forums/privmsg.php?mode=post&u=4501

set -e
cat << EOF

############################################################
# SCALIX INSTALLTION SCRIPT FOR DEBIAN ETCH
#
# (C) 2006-2008 Christoph Lukas, Till Wimmer, Peter Ulrich
############################################################

EOF
echo -n "What should the name of your primary mailnode be? "; read mnode
echo -n "Please enter the admin password for the Scalix admin user (sxadmin)? "; read admpwd
echo -n "Please enter a password for the ldap query user? "; read ldappwd
echo -n "Please enter a password for the db user? "; read dbpwd
echo -n "Please enter the external ip address of your Scalix box? "; read ip

tomcatport=80
ldapport=389
scalix11downloadurl="http://downloads.scalix.com/.community/11.3/scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11bin="scalix-11.3.0-GA-unsupported-debian-intel.bin"
scalix11dir="scalix-debian-11.3.0-GA/software/scalix_server"
ldomain=$(hostname -d)
host=$(hostname)
fqdn=$(hostname -f)
short=${host:0:1}${host: -1:1}

cat << EOF

EOF
sleep 2
# Download Scalix 11
cd /tmp/
#wget -N $scalix11downloadurl
#chmod 755 $scalix11bin

cat << EOF

EOF
sleep 2
# Extract and install packages
#./$scalix11bin

cat << EOF

EOF
sleep 2
#cd $scalix11dir
#dpkg -i scalix-libical_*.deb scalix-chardet_*.deb
#dpkg -i scalix-server_*.deb
#dpkg -i scalix-postgres_*.deb scalix-tomcat-connector_*.deb scalix-tomcat_*.deb \
#        scalix-mobile_*.deb scalix-platform_*.deb scalix-res_*.deb scalix-sac_*.deb \
#        scalix-sis_*.deb scalix-swa_*.deb
cd

cat << EOF

EOF
sleep 2
# Setup mailnode
#export PATH=/opt/scalix/bin:$PATH
#ommakeom
#sxconfig --set -t general.usrl_cn_rule='G S'
#sxconfig --set -t general.usrl_authid_rule='l@'
#sxconfig --set -t orniasys.name_part_1='"C" <S>' -t orniasys.domain_part_1="$ldomain"
#omaddmn -m $mnode
#omrc -n
#omadmidp -a -s 66000 -n 100
#omaddu -n sxadmin/$mnode --class limited -c admin -p "$admpwd" sxadmin
#omconfenu -n "sxadmin/$mnode"
#omlimit -u "sxadmin/$mnode" -o -i 0 -m 0
#omaddu -n sxqueryadmin/$mnode --class limited -c admin -p $ldappwd sxqueryadmin@$fqdn
#omaddpdl -l ScalixUserAdmins/$mnode
#omaddpdl -l ScalixUserAttributesAdmins/$mnode
#omaddpdl -l ScalixGroupAdmins/$mnode
#omaddpdl -l ScalixAdmins/$mnode
#omon -s all

cat << EOF

EOF
sleep 2
# Setup DB
#cd /opt/scalix-postgres/bin
#./sxpsql-setpwd $dbpwd
#./sxpsql-whitelist 127.0.0.1 $ip

cat << EOF

EOF
sleep 2
# Configure Scalix
base=/var/opt/scalix/lt/
files="$base/webmail/swa.properties \
       $base/caa/scalix.res/config/ubermanager.properties \
       $base/res/config/res.properties \
       $base/platform/platform.properties \
       $base/mobile/mobile.properties \
       $base/sis/sis.properties"
for file in $files; do
sed -e "s;%LOCALDOMAIN%;$ldomain;g" \
    -e "s;%LOCALHOST%;$fqdn;g" \
    -e "s;swa.platform.url=http://%PLATFORMURL%:8080/api;swa.platform.url=http://$fqdn/api;g" \
    -e "s;%PLATFORMURL%;http://$fqdn/api;g" \
    -e "s;__SECURED_MODE__;false;g" \
    -e "s;ubermanager/__FQHN_HOST__@__KERBEROS_REALM__;;g" \
    -e "s;__KERBEROS_REALM__;;g" \
    -e "s;__FQHN_FOR_KDC_HOST__;;g" \
    -e "s;__FQHN_QUERY_SERVER_NAME__;$fqdn;g" \
    -e "s;__UBERMGR_USE_EXTERNAL_AUTH__;false;g" \
    -e "s;__UBERMGR_ALLOW_EXTERNAL_AUTH__;false;g" \
    -e "s;__UBERMGR_MAXLIST_SIZE__;100;g" \
    -e "s;__UBERMGR_MAIL_DOMAINS_LIST__;$ldomain;g" \
    -e "s;__UBERMGR_EXTERNAL_DOMAIN_AUTH_LIST__;;g" \
    -e "s;__CONFIGURED__;true;g" \
    -e "s;__FQHN_FOR_UBERMANAGER__;$fqdn;g" \
    -e "s;__TOMCAT_PORT__;$tomcatport;g" \
    -e "s;localhost;$fqdn;g" \
    -e "s;%SIS-LANGUAGE%;German;g" \
    -e "s;%INDEX-WHITELIST%;$fqdn;g" \
    -e "s;%SEARCH-WHITELIST%;$fqdn;g" \
    -e "s;%IMAPHOST%;$fqdn;g" \
    -e "s;%SMTPHOST%;$fqdn;g" \
    -e "s;%LDAPPORT%;389;g" \
    -e "s;%DBHOST%;$fqdn:5733;g" \
    -e "s;%DBPASSWD%;$dbpwd;g" \
    $file > $file.neu
mv $file.neu $file
done

cat << EOF

EOF
sleep 2
# Write Ldappassword to psdata
cd ${base}/caa/scalix.res/config
echo "$ldappwd" > psdata
chown root:root psdata
chmod 400 psdata
cd

cat << EOF

EOF
sleep 2
# Setup Apache
#ln -s /opt/scalix/global/httpd/scalix-web-client.conf /etc/#apache2/conf.d
#cat << EOF > /etc/apache2/conf.d/scalix-access.conf
#<Location />
#        Allow from all
#</Location>
#EOF

cat << EOF

EOF
sleep 2
# Restart Tomcat
/etc/init.d/scalix-tomcat restart
/etc/init.d/apache2 restart

cat << EOF


So I'm thinking that since the instance is correct the re-written files should be too - right?

Well I don't know at this point; back to playing around with my CentOS install of Scalix as it actually runs (same HD 3 OS's however dummy is for future main server install which is Debian hence reason for all this trouble :) )


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 0 guests