SAC failing with JavaScript error on login

Discuss Scalix Management Services ( formerly Scalix Admin Console )

Moderator: ScalixSupport

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

SAC failing with JavaScript error on login

Postby Spiff » Thu Jul 06, 2006 3:49 am

On a fresh install of FC4 and Scalix, I'm unable to login to SAC. -I get an error if I enter a wrong user/pass, but as soon as these are correct, I get a JavaScript error saying:

Error: serverList.children has no properties
Source File: http://<myserver>/sac/js/Admin.js
Line: 323

Everything seems ok. I can login to webmail and commands like omshowu works fine.

After trying to login to sac I've found this in caa.log:
[...]
2006-07-06 09:12:19,859 DEBUG [SOAPHelperUtils.getSOAPBodyElementValue:77] Body element2 FunctionName = GetServersList
2006-07-06 09:12:19,860 DEBUG [SOAPHelperUtils.getSOAPBodyElementValue:80] Found FunctionName
2006-07-06 09:12:19,861 DEBUG [SOAPHelperUtils.getSOAPBodyElementValue:81] value =GetServersList
2006-07-06 09:12:19,862 DEBUG [CAAServiceFactory.getService:52] Looking for service called scalix.res
2006-07-06 09:12:19,898 DEBUG [CAAConfigLoader.getValue:56] Looking for config for scalix.res, key service.class found com.scalix.sac.ubermgr.caa.RESService
2006-07-06 09:12:19,899 DEBUG [SOAPDispatcherServlet.onMessage:265] Calling doRequest() on service com.scalix.sac.ubermgr.caa.RESService@10d3f0d
2006-07-06 09:12:19,906 DEBUG [SOAPHelperUtils.getSoapBodyResponseElement:422] Body element1 CAAResponseMessage = null
2006-07-06 09:12:19,907 DEBUG [SOAPHelperUtils.getSoapBodyResponseElement:424] Found CAAResponseMessage
2006-07-06 09:12:19,911 DEBUG [SAAJServlet.doPost:130] ************ Request End Success ***************
2006-07-06 09:12:22,566 DEBUG [RESMonitor.run:67] There are no remote servers registered
2006-07-06 09:13:22,574 DEBUG [RESMonitor.run:67] There are no remote servers registered
2006-07-06 09:14:22,581 DEBUG [RESMonitor.run:67] There are no remote servers registered
2006-07-06 09:15:22,597 DEBUG [RESMonitor.run:67] There are no remote servers registered
2006-07-06 09:16:22,605 DEBUG [RESMonitor.run:67] There are no remote servers registered

Anyone got an idea here?

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

Postby ScalixSupport » Thu Jul 06, 2006 3:57 am

Hi,

If you look at /etc/opt/scalix/res/config/res.properties file what does your res.tomcat.tcp.port say?

Thanks,
Yuri

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

Postby Spiff » Thu Jul 06, 2006 4:18 am

It's set to:

Code: Select all

res.tomcat.tcp.port=80

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

Postby ScalixSupport » Thu Jul 06, 2006 4:27 am

Hi Spiff,

Please take a look at the following post. Let me know if it still does not solve your problem.

http://www.scalix.com/community/viewtopic.php?t=1359

Cheers,
Yuri

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

Postby Spiff » Thu Jul 06, 2006 6:14 am

Can't say that it helped me..

I've reconfigured scalix, reinstalled it, and now finally tried to reconfigure again.
I'm using default values for all (suggested by the installer), and res without kerberos.

At some point I thought I had got rid of the "There are no remote servers registered", but its still showing up.

Anyway, I still have the JavaScript error and is unable to login to sac..

-Just one more thing, "/etc/init.d/scalix-tomcat stop" doesn't kill the tomcat process (or uses a long time?? haven't got the patience to wait). -I must kill the process manually each time...
-Is there someway to solve this? -How "fast" should it shut down?

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

Postby ScalixSupport » Thu Jul 06, 2006 7:16 am

What version of jre do you have installed?

Thanks,
Yuri

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

Postby Spiff » Thu Jul 06, 2006 7:33 am

I'm using the one supplied with Scalix. (jre1.5.0_04)

I also have this thread http://www.scalix.com/community/viewtopic.php?t=2921, which started as a java problem and ended up with the issues in this thread.

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

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

Could you run

Code: Select all

tail -f /opt/scalix-tomcat/logs/scalix-res.log

in one shell then restart tomcat in another shell and post that portion of the log?

Thanks,
Yuri

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

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

The output when running scalix-tomcat restart (which results in 2 tomcat instances)

Code: Select all

2006-07-06 13:41:26,057  INFO [RESNamedInstances.initNamedInstances:61] Loading Scalix named instances.
2006-07-06 13:41:26,073  INFO [RESNamedInstances.initNamedInstances:100] Finised reading Named Instances. Total Named instances in the global config file are = 1
2006-07-06 13:41:26,075  INFO [RESNamedInstances.initNamedInstances:101] Checking Named Instances state..
2006-07-06 13:41:26,085 DEBUG [CmdExecution.executeCmd:138] ENVIRONMENT: LANG=en_US.UTF-8 OM_CHAR=UTF-8
2006-07-06 13:41:26,087 DEBUG [CmdExecution.executeCmd:140] COMMAND: /opt/scalix/bin/sxchkinstances


stopping both instances, and running scalix-tomcat start gives the same result.

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

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

Does the log then stop? Or are there more lines after that?

Cheers,
Yuri

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

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

It stops.
New lines are only added when I start the service again (the same lines over again)

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

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

Can you post the output of this command please?

Code: Select all

/opt/scalix/bin/sxchkinstances


Thanks,
Yuri

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

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

Sure,

Code: Select all

[root@mail /]# /opt/scalix/bin/sxchkinstances
mail=ACTIVE

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

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

ok, that looks good. Lets take a look at /opt/scalix/global/config. Can you post the contents. modify the domain name if it is present before posting. :wink:

Thanks,
Yuri

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

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

I've changed the domain-name here before posting this message, but it equals "hostname --fqdn"

[root@mail /]# cat /opt/scalix/global/config
OMNAME=mail
OMHOSTNAME=mail.xxxx.no
OMDATADIR=/var/opt/scalix
OMAUTOSTART=TRUE


Return to “Scalix Management Services”



Who is online

Users browsing this forum: No registered users and 1 guest