SAC failing with JavaScript error on login

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jul 06, 2006 8:43 am

It seems that RES is not starting the registration thread. Could you post your /etc/opt/scalix/res/config/res.properties file. Again modify the domain names.

Thanks,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Thu Jul 06, 2006 8:48 am

Here it is:

Code: Select all

[root@mail /]# cat  /etc/opt/scalix/res/config/res.properties
#
# Remote Execution Properties file
#

# Enable Kerberos secure communication between Ubermanager and RES - set to true or false
# Note: Ubermanager *must* have a matching ubermanager.kerberos.mode value in its ubermanager.properties
# configuration file
res.kerberos.mode=false
#
# UberManager master host.
#
res.ubermanager.host=mail.xxxx.no
#remote notification port:
res.ubermanager.udp.port=3450
res.tomcat.tcp.port=80
# location of the registration store relative to where /etc/opt/scalix/res/store
res.events.store=events.data
#number of notification threads Max is 3
res.notification.numThreads=2
#
# timeout waiting for registration ACK (millisecs)
#
res.registration.timeout=5000

#
# number of retries sending registration (-1 = unlimited)
#
res.registration.retries=100

#
# number of millseconds between heartbeats
#
res.notification.heartbeat.interval=60000

#
# XML security stuff
#
res.kerberos.loginConfFile=krblogin.conf
res.kerberos.loginConfStanza=RES
res.kerberos.realm=
res.kerberos.kdc=

# comma-separated list of allowed clients - "if you're not on the list, you're not coming in!"
# empty list means any client is allowed (not recommended unless you want anyone to be able to execute admin commands
# on your mail server).  Spaces and case do not matter. You do not need to append the realm either.
res.kerberos.allowedclients=ubermanager/mail.xxxx.no

#
#language and char environment variables for
# the executing om* commands
#
res.env.lang=en_US.UTF-8
res.env.charset=UTF-8
#
# file where named instances are defined
#
res.namedinstance.global=/opt/scalix/global/config
#
# Sudo mode. If this is set to true then all commands sudo be in the sudoers file.
# Sudo and Command prefix for secured non-root execution of Tomcat
# default value for sudo is false. To use sudo you must set this attribute to
# true and read the Scalix Administration Guide on configuration for sudo
# documentation and ensure that all commands needed for non-root access execution
# by the UM and RES are in the sudoers file with NOPASSWD access otherwise it want
# work.
res.commands.sudo.mode=false
#default value for Scalix install directory is /opt/scalix
# this directory must contain two peer sub-directories bin and diag where
# all the scalix commands reside.
res.commands.scalixHome=/opt/scalix
#
# Flag for configuration. This value is set by Merlin
# to true after configuration.
#
#
# RES version number
#
res.version=10.0.1
res.configured=true

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Thu Jul 06, 2006 9:42 am

Looking at this config I notice

Code: Select all

# location of the registration store relative to where /etc/opt/scalix/res/store
res.events.store=events.data


This path and/or file doesn't exist on my server.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Thu Jul 06, 2006 10:08 am

i think that's ok. It is the same way on my test machine, and everything is working here. I noticed on the other thread that you had some revers DNS issues is that still the same?

Cheers,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Thu Jul 06, 2006 11:06 am

Yes, but I didn't get an answer to that one..

Do I need a reverse DNS entry for my domain/mailserver?
The reverse gives the name that my ISP has, and there's nothing I can do about it..
(other than using that same name for my domain, which I hope I don't have to)

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Mon Jul 10, 2006 3:40 am

Still struggling here..

As you mentioned it seems that the RES isn't initiated as it should.
-And I guess since it isn't answering as it should, SAC ends up with an empty property collection and the JavaScript fails..

...so, what could cause the RES to fail initiating?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 10, 2006 4:01 am

Hi,

Can you post your /etc/hosts file? I want to rule out most of the common misconfiguration issues first.

Cheers,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Mon Jul 10, 2006 4:03 am

[root@mail ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
xx.167.xx.64 mail.xxxx.no mail

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 10, 2006 4:12 am

That looks like an external IP address. What is your local network IP address? Can you change your /etc/hosts file so that it points to the local IP address as well. The registration port RES uses is probably blocked to the outside by your firewall. Just by trying to telnet to different ports on the external IP I can tell that some ports are blocked. RES does not need the external IP address to register.

After the change restart tomcat and let me know how it went.

Cheers,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Mon Jul 10, 2006 5:13 am

The firewall is running at the moment, but I have tried this both with and without it.
(shutting it down now)

Can I contact you via e-mail?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 10, 2006 5:24 am

In order to receive email support or if you want me to take a closer look at your machine, you need to purchase a Support Incident. If you're interested in doing so, email us at support at scalix dot com and I will send you the forms.

Thanks,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Mon Jul 10, 2006 5:42 am

Guess I'll pass on that one, I'm just evaluating this product for my home server..

..so for your question about that IP:

My server is a gateway at home, and it has 2 NICs.
-The external NIC has the mentioned IP (provided by DHCP from my ISP, but it's a static IP. Have also tried setting this as static IP (no DHCP), but still the same)
-The internal NIC uses the well known 192.168.x.x net

... as I see it the IP in /etc/hosts is then correct?

and everything _but_ the RES (and SAC) seems to work...

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 10, 2006 6:12 am

Which IP and NIC are your apache and tomcat listening on?

Thanks,
Yuri

Spiff
Posts: 31
Joined: Fri Jun 30, 2006 6:39 pm

Postby Spiff » Mon Jul 10, 2006 6:45 am

Apache was listnening on any NIC. -Changed it to only listen on the external NIC.
Does tomcat follow this, or does it have it's own settings?

-Also restarted httpd and reconfigured SAC and RES.

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Mon Jul 10, 2006 6:53 am

After you've made this change does SWA still work?

Cheers,
Yuri


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 2 guests