Won't Install?

Forum to discuss the Scalix ActiveSync product

Moderators: ScalixSupport, admin

dougp23
Posts: 229
Joined: Thu Feb 15, 2007 2:42 pm

Won't Install?

Postby dougp23 » Mon Feb 07, 2011 9:59 am

Scalix 11.4.6

When I go to install, and choose "Change or Upgrade Installation", ActiveSync is not an option. Yet if I look in the folders of the install directory, there is an activesync RPM. I am on CentOS 4.4.

Should I rpm -ivh the file? Or is there a reason Sclaix's install doesn't present this as an option to me?
Check out my "Life with Scalix" blog at
http://swifttide.com/blog

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Won't Install?

Postby les » Tue Feb 08, 2011 8:35 am

dougp23 wrote:Scalix 11.4.6

When I go to install, and choose "Change or Upgrade Installation", ActiveSync is not an option. Yet if I look in the folders of the install directory, there is an activesync RPM. I am on CentOS 4.4.

Should I rpm -ivh the file? Or is there a reason Sclaix's install doesn't present this as an option to me?


manually installing the rpm works fine and is needed on CentOS/RHEL4. I believe the rpm was built for CentOS5/RHEL5 which is why it wont auto install.
Regards,

Les Stott

dougp23
Posts: 229
Joined: Thu Feb 15, 2007 2:42 pm

Re: Won't Install?

Postby dougp23 » Tue Feb 08, 2011 10:04 am

I did an rpm -ivh of the file, it seems to have installed, just with a few "informational messages" (about proper JDK versions, etc, which I have). But I can't find any scalix-wireless or service to start??
Check out my "Life with Scalix" blog at

http://swifttide.com/blog

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Won't Install?

Postby les » Tue Feb 08, 2011 5:23 pm

dougp23 wrote:I did an rpm -ivh of the file, it seems to have installed, just with a few "informational messages" (about proper JDK versions, etc, which I have). But I can't find any scalix-wireless or service to start??


There is no seperate service.

Just install the scalix-wireless rpm and thats it. If your licensed up, go into sac and you should be able to enable users for activesync via the mobile tab for each user.
Regards,

Les Stott

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: Won't Install?

Postby ls-al » Thu Feb 10, 2011 6:04 am

Installing a webapp by using rpm wouldnt configure it. It might be possible to do this manually by creating the symlink and creating and configuring the webapp directory.

In this case I'd say that the reason why the ActiveSync option isnt available is that it is simply not supported on CentOS 4.
http://downloads.scalix.com/rn/scalix-activesync-1.0.2-GA-releasenotes.html#mozTocId725903

AS doesnt work well through mod_jk.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Won't Install?

Postby les » Thu Feb 10, 2011 7:32 am

ls-al wrote:Installing a webapp by using rpm wouldnt configure it. It might be possible to do this manually by creating the symlink and creating and configuring the webapp directory.

In this case I'd say that the reason why the ActiveSync option isnt available is that it is simply not supported on CentOS 4.
http://downloads.scalix.com/rn/scalix-activesync-1.0.2-GA-releasenotes.html#mozTocId725903

AS doesnt work well through mod_jk.


There is NOTHING to configure. Just install it and restart scalix services and its done.

Strictly speaking centos/rhel4 is not supported for activesync installation, but it will work. You just manually install the rpm. I've done this recently on a few sites and it works fine. never had to configure anything other than enabling a user for activesync via sac.
Regards,

Les Stott

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: Won't Install?

Postby ls-al » Thu Feb 10, 2011 11:23 am

Sorry, but I can not leave this uncommented.
The reason for not supporting Apache 2.0/mod_jk is documented in Bug 18923 (Can not proxy back cookie information to the device when using mod_jk). Maybe it works for you, but I would never recommend to run something in production which has been stated as unsupported for technical reasons.

Finally: RPMs (or DEBs) produced by Scalix usually dont have a real postinstall function. Configuration and deployment into the Scalix-Instance is done by the installer.
The Scalix Wireless RPM contains the following files:

Code: Select all

# rpm -ql scalix-wireless
/opt/scalix/web/scalix-wireless.war
/opt/scalix/web/template/wireless
/opt/scalix/web/template/wireless/log4j.properties
/opt/scalix/web/template/wireless/wireless.properties
/opt/scalix/web/wireless.xml

Theres nothing pointing to the instance.
I installed the rpm manually. Theres no Apache integration at /etc/opt/scalix-tomcat/connector/..., theres no symlink from /var/opt/scalix/??/tomcat/conf/Catalina/localhost/ to /opt/scalix/web/wireless.xml to initiate the deployment of the webapp, theres no /var/opt/scalix/??/wireless/wireless.properties which is at least needed to configure the corresponding API-Host.
With this, I'd state that if it works by installing the rpm manually without any further configuration, it must have been an accident.

joako
Posts: 308
Joined: Tue May 08, 2007 10:45 pm

Re: Won't Install?

Postby joako » Thu Feb 10, 2011 2:44 pm

It works when installed manually on CentOS 5.
<Signature deleted... Florian>

ls-al
Scalix Star
Scalix Star
Posts: 510
Joined: Tue Jun 29, 2004 8:28 am
Location: Leipzig, Germany
Contact:

Re: Won't Install?

Postby ls-al » Thu Feb 10, 2011 4:15 pm

joako wrote:It works when installed manually on CentOS 5.


I have tried the manual installation.

This is what I got after the manual installation:

Code: Select all

[root@sys0 ~]# cd /etc/opt/scalix-tomcat/connector/
[root@sys0 connector]# cd ajp/
[root@sys0 ajp]# ll
total 32
-rw-r--r-- 1 root root 118 Dec 23 15:52 app-sys0.api.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.caa.conf
-rw-r--r-- 1 root root  51 Dec 23 15:52 app-sys0.m.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.res.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.sac.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.sis.conf
-rw-r--r-- 1 root root  63 Dec 23 15:52 app-sys0.webmail.conf
-rw-r--r-- 1 root root 474 Dec 23 15:46 instance-sys0.conf

And this is the content of the same directory after installing it with the supported way (scalix-installer):

Code: Select all

[root@sys0 ajp]# ll
total 36
-rw-r--r-- 1 root root 118 Dec 23 15:52 app-sys0.api.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.caa.conf
-rw-r--r-- 1 root root  51 Dec 23 15:52 app-sys0.m.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.res.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.sac.conf
-rw-r--r-- 1 root root  55 Dec 23 15:52 app-sys0.sis.conf
-rw-r--r-- 1 root root  63 Dec 23 15:52 app-sys0.webmail.conf
-rw-r--r-- 1 root root 162 Feb 10 20:36 app-sys0.wireless.conf
-rw-r--r-- 1 root root 474 Dec 23 15:46 instance-sys0.conf

Surprise, theres a new include!

Code: Select all

[root@sys0 ajp]# cat app-sys0.wireless.conf
ProxyPass /Microsoft-Server-ActiveSync  ajp://sys0.scalixtraining.com:8009/wireless timeout=800
ProxyPassReverseCookiePath /wireless /Microsoft-Server-ActiveSync

On Exchange, "Microsoft-Server-ActiveSync" is a virtual directory for the IIS. And this is what the AS-devices are asking for. It would never work if we dont tell Apache how to handle requests for this URL.

From the first line in the conf-file we can see that request goes through AJP to the "wireless"-app provided by scalix-tomcat.

Code: Select all

[root@sys0 localhost]# pwd
/var/opt/scalix/s0/tomcat/conf/Catalina/localhost
[root@sys0 localhost]# ll
total 0
lrwxrwxrwx 1 root root 23 Dec 23 15:52 api.xml -> /opt/scalix/web/api.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 caa.xml -> /opt/scalix/web/caa.xml
lrwxrwxrwx 1 root root 21 Dec 23 15:52 m.xml -> /opt/scalix/web/m.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 res.xml -> /opt/scalix/web/res.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 sac.xml -> /opt/scalix/web/sac.xml
lrwxrwxrwx 1 root root 23 Dec 23 15:52 sis.xml -> /opt/scalix/web/sis.xml
lrwxrwxrwx 1 root root 27 Dec 23 15:52 webmail.xml -> /opt/scalix/web/webmail.xml
lrwxrwxrwx 1 root root 28 Feb 10 20:36 wireless.xml -> /opt/scalix/web/wireless.xml

We can see the symlink to the wireless.xml. If this doesnt exist, the wireless webapp would never be deployed.

Code: Select all

[root@sys0 webapps]# pwd
/var/opt/scalix/s0/tomcat/webapps
[root@sys0 webapps]# ll
total 36
drwxr-xr-x 4 root root 4096 Dec 23 15:52 api
drwxr-xr-x 4 root root 4096 Dec 23 15:52 caa
drwxr-xr-x 5 root root 4096 Dec 23 15:52 m
drwxr-xr-x 4 root root 4096 Dec 23 15:52 res
drwxr-xr-x 4 root root 4096 Dec 23 15:46 ROOT
drwxr-xr-x 8 root root 4096 Dec 23 15:52 sac
drwxr-xr-x 5 root root 4096 Dec 23 15:52 sis
drwxr-xr-x 9 root root 4096 Dec 23 15:52 webmail
drwxr-xr-x 4 root root 4096 Feb 10 20:36 wireless

This subdirectory was created during the restart of scalix-tomcat.
Its worth to mention that a manual upgrade of any of the webapps with "rpm -U" would just update files in /opt/scalix/ but leave the files in the tomcat working directory untouched.
Trust me, I have seen enough cases where even the installer failed to do this upgrade back in time.

If one really wants to live without the installer, at least this tool would be needed:

Code: Select all

[root@sys0 bin]# /opt/scalix-tomcat/bin/sxtomcat-webapps
Usage: /opt/scalix-tomcat/bin/sxtomcat-webapps [--add|--del] instance [--timeout <seconds>] [ALL|app1 app2...]

Disclaimer: Use sxtomcat-webapps at your own risk. ;-)

Hope that makes it a bit more clear.

les
Scalix Star
Scalix Star
Posts: 819
Joined: Thu Feb 23, 2006 10:18 am
Location: Sydney, Australia

Re: Won't Install?

Postby les » Thu Feb 10, 2011 4:57 pm

ls-al, ok, i think i would have done this.....

rpm -ivh scalix-wireless

then, using the activesync install file....

./scalix-installer --cli -> reconfigure..etc

The reconfigure does what's needed, as suggested by the scalix wireless rpm postinstall script.

rpm -q --scripts scalix-wireless
postinstall scriptlet (using /bin/sh):
echo "Please configure Scalix Wireless Server (SWS) using the Scalix Installer for configuration."
echo "SWS minimally requires Tomcat 4.1.29 and JDK 1.4.2+."
echo "After configuring SWS you may launch SWS within Tomcat with <Tomcat_installed_dir>/bin/startup.sh."
echo "To check any startup errors look at <Tomcat_installed_dir>/logs/scalix-wireless_log.<date>.txt"


Sorry for the confusion.
Regards,

Les Stott


Return to “Scalix ActiveSync”



Who is online

Users browsing this forum: No registered users and 2 guests

cron