Page 1 of 2

Can not access /sac and /webmail

Posted: Wed Feb 21, 2007 3:32 am
by obelix_79
Hi

I installed with the help of the manual installation script the Scalix CE 11.0.1 on Ubuntu Serve r 6.10. I think that the installation completed without errors.
But if I try to access the /sac or the /webmail Url I get an error that these Urls could not be reached.
The output of omstat -a and omstat -s shows that all services are running (except the Item Structure Server). The Apache server is also running.
If I call /etc/init.d/scalix-tomcat status the answer is: Instance (xxx) is not running. So I checked the catalina.out but there are no errors inside and the last messages is that Server startup in 34822ms. So I think that the Tomcat is running, isn't it?

What can I do now to solve the problems I have?

Thank and regards

Posted: Wed Feb 21, 2007 7:07 am
by ScalixSupport
Hi!

Prabably if you would have waited some time and tried again, it should have work. Is it a
fresh install or an upgrade from earlier Scalix version.

Thanks,
Subir

Posted: Wed Feb 21, 2007 7:54 am
by obelix_79
Hi

It is a completly fresh installation, Ubuntu and Scalix. Is the message that the tomcat is not running the problem?

Thanks

Posted: Thu Feb 22, 2007 3:49 am
by ScalixSupport
Hi!

What URL you tried, ideally it should be:
http://www.scalix-server-host.server-domain/sac (SAC)
http://www.scalix-server-host.server-domain/webmail (webmail)

Check if tomcat is running using the command "ps -ax | grep tomcat". Check if two
instances of tomcat is not running. If so, kill gracefully/forcefully all of them and start
scalix-tomcat afresh. Once tomcat starts, wait for some time and retry again, the
intialization takes some time.

The message "Tomcat is not running" because the "ps -ax" generates a report of all
processes running that creates the process id with a space. The scalix-tomcat script at
times fails to read the PID properly, in which case we get instance not running. Look at
the demonstration below:
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is not running
[root@subir-rhel4 ~]# ps -ax | grep tomcat
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
7303 ? Sl 3:13 /usr/java/jre1.5.0_06/bin/java -server -Djava.net.preferIPv4Stack=true -Xms124m -Xmx124m -Dscalix.instance=/var/opt/scalix/s4 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/s4/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/java/jre1.5.0_06/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/s4/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/s4/tomcat/temp org.apache.catalina.startup.Bootstrap start
11824 pts/1 S+ 0:00 grep tomcat
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is not running
[root@subir-rhel4 ~]# kill -9 7303
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat start
Starting Tomcat service: [ OK ]
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is running
[root@subir-rhel4 ~]#

Thanks,
Subir

Posted: Thu Feb 22, 2007 6:46 am
by obelix_79
My Tomcat still has the status not running. I rechecked the config files and found a typo. After correcting that typo I had a 403 error. I resolved this with the help of this post: viewtopic.php?t=5758&start=15&postdays=0&postorder=asc&highlight=403
My Tomcat status is still not running but now I can login to webmail. So I think this status message is wrong.

Thanks for the help

Posted: Tue Mar 06, 2007 2:36 pm
by jonwatson
Given that Obelix didn't post his typo, can someone else help out with this error?

I had a working instance of Scalix last night but after a reboot I get the "Object not found" error that others have complained about.

I've followed the troubleshooting stuff about this problem on these forums, but everything seems to either not apply to me (like I have no /etc/apache2/mods-enabled directory) or everything looks correct.

I'm fairly certain that the problem surrounds this:

Code: Select all

/etc/apache2/conf.d # /etc/init.d/scalix-tomcat status
Instance (mail) is not running
                                                                      unused


But on the other hand, this looks Ok:

Code: Select all

etc/apache2/conf.d # ps ax | grep tomcat
 5105 pts/2    Sl     1:30 /usr/java/jre1.5.0_06/bin/java -server -Djava.net.preferIPv4Stack=true -Xms256m -Xmx256m -Dscalix.instance=/var/opt/scalix/ml -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/ml/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/java/jre1.5.0_06/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/ml/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/ml/tomcat/temp org.apache.catalina.startup.Bootstrap start


I read this:

The message "Tomcat is not running" because the "ps -ax" generates a report of all
processes running that creates the process id with a space. The scalix-tomcat script at
times fails to read the PID properly, in which case we get instance not running. Look at
the demonstration below:


But I don't see any solution in there. Just a statement of the problem.

Apache is running as evidenced by the "It works!" page I see when I go to mydomain.com.

Attempts to go to mydomain.com/webmail or mydomain.sac result in the"Object not found" error. I know it's because the rewrites aren't happening because the Apache log quite correctly reports that /sac and /webmail don't exist in /srv/www/htdocs. There's a peice missing somewhere.

How would I go about troubleshooting this issue?

Thanks!

Jon

Posted: Tue Mar 06, 2007 2:41 pm
by jonwatson
ScalixSupport wrote:Hi!
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is not running
[root@subir-rhel4 ~]# ps -ax | grep tomcat
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.3/FAQ
7303 ? Sl 3:13 /usr/java/jre1.5.0_06/bin/java -server -Djava.net.preferIPv4Stack=true -Xms124m -Xmx124m -Dscalix.instance=/var/opt/scalix/s4 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/var/opt/scalix/s4/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/scalix-tomcat/common/endorsed -classpath /usr/java/jre1.5.0_06/lib/tools.jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging-api.jar -Dcatalina.base=/var/opt/scalix/s4/tomcat -Dcatalina.home=/opt/scalix-tomcat -Djava.io.tmpdir=/var/opt/scalix/s4/tomcat/temp org.apache.catalina.startup.Bootstrap start
11824 pts/1 S+ 0:00 grep tomcat
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is not running
[root@subir-rhel4 ~]# kill -9 7303
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat start
Starting Tomcat service: [ OK ]
[root@subir-rhel4 ~]# /etc/init.d/scalix-tomcat status
Instance (subir-rhel4) is running
[root@subir-rhel4 ~]#


This fails for me. Performing the same steps in my machine always results in a 'not running' message.

Posted: Wed Mar 07, 2007 3:16 am
by ScalixSupport
Hi All!

This is a known bug and is fixed in 11.0.2 release. The bug is:
http://bugzilla.scalix.com/show_bug.cgi?id=14659

The problem is purely just in reporting the PID, and seems to only occur on systems
where the PID of the tomact process is only 4 characters. On systems where the pid is
5 characters it isn't a problem.

When the init.d script checks the pidfile (/var/opt/scalix/sys/xx/tomcat/tomcat.pid) it
returns "7591" as an example.

Then the test to confirm the pid in the init.d script...
ps --pid `cat /var/opt/scalix/gy/tomcat/tomcat.pid` -o pid --no-heading
also returns the same number but with a leading "space" like " 7591"

Thus an exit 1 is returned from is_catalina_process_running from within the
scalix-tomcat script, and you get the echo that its not running.

Thanks,
Subir

Posted: Wed Mar 07, 2007 11:25 am
by jonwatson
I see. Thanks for that.

Still doesn't help me with my original "Object not found" error. I ended up reinstalling Scalix which was an option this time as it was a new install. I dread the day this happens on a production box, though, since nobody has come forth with troubleshooting help.

Posted: Wed Mar 07, 2007 11:31 am
by dkelly
Please take a look at the Scalix 11 FAQs at http://www.scalix.com/wiki/index.php?title=Scalix_11_FAQs as item #2 explains how the Apache configuration is set up.

Cheers

Dave

Posted: Sat Mar 24, 2007 2:53 pm
by flamerail
Im having the same issue. Every thing is running according to all the commands people listed here. I've read all the other pages and I havnt found the solution. I cant access the /sac or any thing, I checked all the tomcat .conf files are in conf.d for apache.. Please help

Posted: Mon Mar 26, 2007 2:58 am
by ScalixSupport
flamerail..

Can you send the result for the commands:

Code: Select all

rpm -qa | grep scalix
omstat -a
omstat -s
ps ax | grep tomcat
ps ax | grep httpd


Check the permissions for scalix files using the command "omcheck -s -d", to actually fix
the problem if any of permissions, you should run omcheck to generate a shell script - on
standard output - that, when run, fixes the problem for permission issues.

Code: Select all

omcheck -s -d >fix_perms.sh
bash ./fix_perms.sh

You might want to review what the script is planning to do before actually executing
the second command.

Try to login SAC using the value next to Authentication ID for the result of the command:

Code: Select all

omshowu -n sxqueryadmin

Thanks,
Subir

Posted: Mon Mar 26, 2007 11:31 am
by KevinAnderson
Jon.

I know that at least one of the server's you had been talking about was running Cent (rather than RHEL). You may or may not also be seeing this issue...

viewtopic.php?t=6536&highlight=ntpl

Kev.

Posted: Mon Mar 26, 2007 1:26 pm
by jonwatson
KevinAnderson wrote:Jon.

I know that at least one of the server's you had been talking about was running Cent (rather than RHEL). You may or may not also be seeing this issue...

viewtopic.php?t=6536&highlight=ntpl

Kev.


This beastie is actually running SUSE 10.1. I'll take a look, though.

Thanks!

Posted: Sun Apr 01, 2007 8:51 am
by flamerail
[root@mail tyler]# rpm -qa | grep scalix
scalix-postgres-11.0.2.23-1
scalix-sac-11.0.2.23-1
scalix-tomcat-connector-11.0.0.181-1.fc5
scalix-server-11.0.2.17-1.fc5
scalix-platform-11.0.2.23-1
scalix-swa-11.0.2.23-1
scalix-sis-11.0.2.23-1
scalix-tomcat-5.5.16-195
scalix-res-11.0.2.23-1
scalix-mobile-11.0.2.23-1
[root@mail tyler]# omstat -a
PC Monitor Started NON-STOP 0
Directory Relay Server Started 12:44:45
Notification Server Started 12:44:45 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 12:44:45
Licence Monitor Daemon Started NON-STOP
LDAP Daemon Started 12:44:45
Queue Manager Started NON-STOP
Item Delete Daemon Started NON-STOP
IMAP Server Daemon Started 12:44:45
SMTP Relay Started 12:44:45
Mime Browser Controller Started 12:44:45
Event Server Started 12:44:46
[root@mail tyler]# omstat -s
Service Router Started 12:44:47 0
Local Delivery Started 12:44:47 0
Internet Mail Gateway Started 12:44:47 0
Local Client Interface Enabled 12:44:47 0
Remote Client Interface Enabled 12:44:47 0
Test Server Started 12:44:47 0
Request Server Started 12:44:47 0
Print Server Started 12:44:47 0
Bulletin Board Server Started 12:44:47 0
Background Search Service Started 12:44:47 0
CDA Server Started 12:44:48 0
POP3 interface Started 12:44:48 0
Omscan Server Started 12:44:48 0
Archiver Started 12:44:48 0
[root@mail tyler]# ps ax | grep tomcat
2127 ? Sl 0:25 /usr/java/jre1.5.0_06/bin/java -server -Djava.net.pre ferIPv4Stack=true -Xms256m -Xmx256m -Dscalix.instance=/var/opt/scalix/ml -Djava. util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.c onfig.file=/var/opt/scalix/ml/tomcat/conf/logging.properties -Djava.endorsed.dir s=/opt/scalix-tomcat/common/endorsed -classpath /usr/java/jre1.5.0_06/lib/tools. jar:/opt/scalix-tomcat/bin/bootstrap.jar:/opt/scalix-tomcat/bin/commons-logging- api.jar -Dcatalina.base=/var/opt/scalix/ml/tomcat -Dcatalina.home=/opt/scalix-to mcat -Djava.io.tmpdir=/var/opt/scalix/ml/tomcat/temp org.apache.catalina.startup .Bootstrap start
2625 pts/1 S+ 0:00 grep tomcat
[root@mail tyler]# ps ax | grep httpd
2043 ? Ss 0:00 /usr/sbin/httpd
2264 ? S 0:00 /usr/sbin/httpd
2265 ? S 0:00 /usr/sbin/httpd
2266 ? S 0:00 /usr/sbin/httpd
2267 ? S 0:00 /usr/sbin/httpd
2268 ? S 0:00 /usr/sbin/httpd
2269 ? S 0:00 /usr/sbin/httpd
2270 ? S 0:00 /usr/sbin/httpd
2271 ? S 0:00 /usr/sbin/httpd
2628 pts/1 R+ 0:00 grep httpd
[root@mail tyler]# omcheck -s -d > fix_perms.sh
[root@mail tyler]# bash ./fix_perms.sh
/var/opt/scalix/ml/s/Copyright/OM-LDAP: /var/opt/scalix/ml/s/Copyright/OM-LDAP: Success
[root@mail tyler]# omshowu -n sxqueryadmin
Authentication ID: sxqueryadmin@mail.zoomtown.com
Globally Unique ID: 111000004bff6064-37.4.86.612
User Name : sxqueryadmin /CN=sxqueryadmin
MailNode : mail
Internet Address : sxqueryadmin-mail@mail.flamerail.com
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://mail.zoomtown.com/011000004bff6064-37.4.86.612
[root@mail tyler]#
Script looked fine so i whent ahead and ran it, Then Tried to access sac and webmail agian nothing.
any ideas now?