New install CentOS 5.1 Scalix 11.4 no WEB access

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

robpur

New install CentOS 5.1 Scalix 11.4 no WEB access

Postby robpur » Tue Jun 10, 2008 10:55 pm

For the purpose of evaluating Scalix I did a clean install of CentOS 5.1
and the community edition of Scalix 11.4. The first issue I encountered
was that scalix-tomcat would not start. It complained that it could not
find Java. I found that the path to Java listed in scalix-tomcat.conf to
be different than the version of Java that was distributed with Scalix.
So, I changed the path to resolve the problem.

After a successful installation and confirming that scalix-tomcat and
httpd were running, I attempted to access webmail and sac, but received
the error message "The requested URL /webmail/ was not found on the
server". I can however get the Apache test page, so the WEB server is
working.

The installation documentation talks about configuring DNS, but since I
simply want to evaluate Scalix locally I have given the Linux box a
private IP, and have edited the host file as listed below.

127.0.0.1 localhost.localdomain localhost
10.1.31.25 scalix.roxum.com scalix

I have attempted to access webmail with Firefox on the CentOS machine in
three ways, and they have all returned an error message.

http://127.0.1/webmail/
http://10.1.31.2/webmail/
http://scalix.roxum.com/webmail/

I searched the forum and found that someone else had the same problem.
The suggestion was to run the install program again, remove the web
components, and then reinstall them. Tried that and a complete reinstall
of CentOS and Scalix, but the problem remains.

Help with this issue will be appreciated.

Rob

nvehommes
Posts: 61
Joined: Sun Feb 24, 2008 9:22 am
Location: Erlangen, Germany

Postby nvehommes » Wed Jun 11, 2008 12:22 am

Hi,
my understanding is that Scalix needs DNS to do both forward and reverse lookup. Entries in /etc/hosts are not sufficient (didn't work for me on an isolated machine; several postings appear to confirm this). Try setting up a local DNS server.

Shubhangi

Postby Shubhangi » Wed Jun 11, 2008 1:18 am

Is scalix-tomcat running on your system.
ps aux |grep scalix-tomcat
If it is then check for any relevent error in apache error log file.

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

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby les » Wed Jun 11, 2008 9:33 am

robpur wrote:I have attempted to access webmail with Firefox on the CentOS machine in
three ways, and they have all returned an error message.

http://127.0.1/webmail/
http://10.1.31.2/webmail/
http://scalix.roxum.com/webmail/

Rob


Check your scalix-tomcat config files in

/etc/opt/scalix-tomcat/connector/ajp/instance-<hostname>.conf
and
/etc/opt/scalix-tomcat/connector/jk/instance-<hostname>.conf

They are the files which setup the virtual hosts in tomcat. Usually by default they use name based virtual hosts so you can only access with that name via apache.

if you want to access at multiple addresses use *:80 and or *:443 in those files.

Restart httpd and scalix-tomcat and you should be right.
Regards,

Les Stott

robpur

Postby robpur » Wed Jun 11, 2008 10:20 pm

nvehommes wrote:Hi,
my understanding is that Scalix needs DNS to do both forward and reverse lookup. Entries in /etc/hosts are not sufficient (didn't work for me on an isolated machine; several postings appear to confirm this). Try setting up a local DNS server.


I understand the necessity for reverse DNS for the proper operation of a mail server, but my hope was that it would not be necessary just to evaluate Scalix locally. Can anyone confirm the requirement of reverse DNS in this instance? I installed Scalix about a year ago for evaluation and I did not have to setup reverse DNS to get it running. Has something changed in the current version?

Rob

robpur

Postby robpur » Wed Jun 11, 2008 10:27 pm

Shubhangi wrote:Is scalix-tomcat running on your system.
ps aux |grep scalix-tomcat
If it is then check for any relevent error in apache error log file.


Yes, scalix-tomcat is running. I have confirmed it with the ps command, as well as a successful restart with /etc/init.d/scalix-tomcat restart. I can also get to the tomcat test page at http://scalix.roxum.com:8080.

/etc/httpd/logs/error_log shows:

[Wed Jun 11 19:41:50 2008] [error] [client 10.1.31.25] File does not exist: /var/www/html/webmail

And sure enough, there's no webmail folder in that location. But, it's not suppose to be there is it? So why is Apache looking for the webmail stuff there?

robpur

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby robpur » Wed Jun 11, 2008 10:31 pm

les wrote:
robpur wrote:Check your scalix-tomcat config files in

/etc/opt/scalix-tomcat/connector/ajp/instance-<hostname>.conf
and
/etc/opt/scalix-tomcat/connector/jk/instance-<hostname>.conf

They are the files which setup the virtual hosts in tomcat. Usually by default they use name based virtual hosts so you can only access with that name via apache.

if you want to access at multiple addresses use *:80 and or *:443 in those files.

Restart httpd and scalix-tomcat and you should be right.


I looked at those files and although I don't know for sure what they are suppose to look like, they appeared ok to me. They had the correct domain name at least. Just for kicks I tried the *:80 but it didn't fix the current problem. Although, it's good to know about those files and what they do.

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

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby les » Thu Jun 12, 2008 1:20 am

robpur wrote:etc/httpd/logs/error_log shows:

[Wed Jun 11 19:41:50 2008] [error] [client 10.1.31.25] File does not exist: /var/www/html/webmail


Looking back through the post.....the error above suggests that the tomcat configuration is not even looked at, hence why the apache server thinks /webmail is at the standard document root.

You should have in /etc/httpd/conf.d/
-rw-r--r-- 1 root root 1894 Dec 30 12:47 scalix-tomcat-connector.conf
lrwxrwxrwx 1 root root 47 Feb 8 16:14 scalix-web-client.conf -> /opt/scalix/global/httpd/scalix-web-client.conf

Do you have these files? what is in the scalix-tomcat-connector.conf?

Are you running any other virtual hosts under apache which might be interfering?

can you post the output of

netstat -apn |grep ":80" |grep LISTEN
Regards,

Les Stott

robpur

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby robpur » Thu Jun 12, 2008 3:01 am

les wrote:You should have in /etc/httpd/conf.d/
-rw-r--r-- 1 root root 1894 Dec 30 12:47 scalix-tomcat-connector.conf
lrwxrwxrwx 1 root root 47 Feb 8 16:14 scalix-web-client.conf -> /opt/scalix/global/httpd/scalix-web-client.conf
Do you have these files? what is in the scalix-tomcat-connector.conf?


I have /etc/httpd/conf.d/scalix-tomcat-connector.conf, but /opt/scalix/global/httpd/ is empty. I searched the system for scalix-web-client.conf but it was nowhere to be found. At least an "ls- lR | grep scalix-web-client.conf" from the root directory didn't find it.

I don't have any other virtual hosts running. This is a clean install of CentOS and Scalix. I have started from scratch twice and have had the same issue.

Below you will find the contents of scalix-tomcat-connector.conf and the output of netstat. Thanks for your assistance.

cat scalix-tomcat-connector.conf

# ---------------------------------------------------------------------------
# Load deflate and proxy_ajp modules used by Scalix:
# ---------------------------------------------------------------------------

<IfModule !mod_deflate.c>
LoadModule deflate_module modules/mod_deflate.so
</IfModule>

<IfModule !mod_proxy.c>
LoadModule proxy_module modules/mod_proxy.so
</IfModule>

<IfModule !mod_proxy_ajp.c>
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
</IfModule>

<IfModule !mod_proxy_http.c>
LoadModule proxy_http_module modules/mod_proxy_http.so
</IfModule>


# ---------------------------------------------------------------------------
# Configure on-the-fly deflate compression of the pages:
# ---------------------------------------------------------------------------

<Location />
AddOutputFilterByType DEFLATE text/xml text/html text/css
AddOutputFilterByType DEFLATE application/x-javascript
</Location>

# ---------------------------------------------------------------------------
# mod_proxy_ajp connector configuration
# ---------------------------------------------------------------------------

<IfModule mod_proxy_ajp.c>

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

</IfModule>

===============================================================================

netstat -apn | grep ".80" | grep LISTEN

tcp 0 0 ::ffff:127.0.0.1:8005 :::* LISTEN 3569/java
tcp 0 0 ::ffff:10.1.31.25:8009 :::* LISTEN 3569/java
tcp 0 0 ::ffff:10.1.31.25:8080 :::* LISTEN 3569/java
tcp 0 0 :::80 :::* LISTEN 3069/httpd
unix 2 [ ACC ] STREAM LISTENING 8801 2614/bt-applet /tmp/orbit-root/linc-a36-0-9c694b725139
unix 2 [ ACC ] STREAM LISTENING 8891 2629/nm-applet /tmp/orbit-root/linc-a45-0-1808cb5fdea62
unix 2 [ ACC ] STREAM LISTENING 32878 7164/firefox-bin /tmp/orbit-root/linc-1bfc-0-6eecd646a80b1

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

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby les » Thu Jun 12, 2008 3:48 am

robpur wrote:
I have /etc/httpd/conf.d/scalix-tomcat-connector.conf, but /opt/scalix/global/httpd/ is empty. I searched the system for scalix-web-client.conf but it was nowhere to be found. At least an "ls- lR | grep scalix-web-client.conf" from the root directory didn't find it.



That's odd. You're missing a file.

/opt/scalix/global/httpd/scalix-web-client.conf should be there.

I'd recommend running a reconfigure from the scalix installer and reconfigure all components.

everything else looks fine.

Regards,

Les
Regards,

Les Stott

robpur

Re: New install CentOS 5.1 Scalix 11.4 no WEB access

Postby robpur » Thu Jun 12, 2008 4:41 am

les wrote:That's odd. You're missing a file.
/opt/scalix/global/httpd/scalix-web-client.conf should be there.
I'd recommend running a reconfigure from the scalix installer and reconfigure all components.


Did the reconfigure, and the directory /opt/scalix/global remained empty. Didn't even have the httpd directory. I created httpd and ran the reconfigure again, but still no scalix-web-client.conf.

I then removed Scalix and reinstalled. The httpd directory that I had created manually disappeared.

So, it looks like for some reason the Scalix installer is not setting things up correctly, at least not for me on this machine. Any ideas?

nvehommes
Posts: 61
Joined: Sun Feb 24, 2008 9:22 am
Location: Erlangen, Germany

Postby nvehommes » Thu Jun 12, 2008 5:06 am

Hi,

check the logfile written by the Scalix installer: I've noticed error messages here even though the installer claimed that everything was fine. In my particular case (test-installation for mailstore migration: 11.4 on SLES10SP2), the postgresql database was not initialized correctly, which has a pretty devastating effect on the whole Scalix package. After a reboot, it miraculously worked, but other problems persisted.
You might also try installing 11.3 and then upgrade to 11.4. That worked for me.

robpur

Postby robpur » Fri Jun 13, 2008 3:54 am

nvehommes wrote:Hi,

check the logfile written by the Scalix installer


Good suggestion, but I found another way.

I installed CentOS and Scalix on a different computer using the same disks and methods that I used before, and Scalix worked just fine. So, it appears that the problem is somehow hardware related. Both machines are older P4 systems, and have about the same resources, but one works and the other doesn't.

I noticed a couple of differences between the two installs of CentOS. The machine that can not run Scalix required the installation of cyrus-sasl-plain while the other computer did not. It was already there, and I installed the exact same packages on both computers when installing CentOS.

The other difference is that on the computer that worked with Scalix I received a notification in GNOME that updates to the OS were available. I did not receive those messages on the computer that did not work with Scalix.

After seeing a successful installation of Scalix I realized that the Scalix installer had been failing before it was done. It was closing just after asking for the primary mailnode name.

So it appears that the Scalix troubles were caused by issues in CentOS, which may be related to hardware.

Thanks to everyone for their help in troubleshooting this problem. I appreciate your efforts.

I'm going to evaluate Scalix on a different machine, but I'm going to play with the old one a bit more just out of curiosity. It was a properly functioning Windows XP machine, and served as an Astaro firewall for a while and had not given any trouble. So I don't know if it's a compatibility issue with CentOS or if there's been a hardware failure. If I find something solid then I'll post it.

Thanks again for everyone's assistance.

Rob

Mon1018
Posts: 14
Joined: Sat Oct 20, 2007 5:38 am
Contact:

Postby Mon1018 » Fri Jun 27, 2008 7:15 am

Excellent information.Many thanks!
Very informative indeed!
:P :P


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 2 guests