FC4 Install for local access only FQDN issues....

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

FC4 Install for local access only FQDN issues....

Postby mrhumphreys » Fri Oct 07, 2005 8:00 am

Hi,

I am installing Scalix on a local server for access by internal users only.

The IP of the server is 192.168.0.180.

At the moment I have

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.180 scalix.localdomain.com scalix


in my hosts file and

order hosts,bind


in my hosts.conf, but the install still fails.

What should I have in these files to make it work!

Is there any other files I need to change?


Many thanks

Matthew

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Fri Oct 07, 2005 8:29 am

Is the install complaining about DNS not being set up? Or at least not working properly?

If so, you really need a local DNS server so that your host can be resolved in it. There are FAQs on the web that will help you get started.

Some people have reported success in getting Scalix installed and working without a DNS but we don't recommend it -- somewhere down the line something is going to break. Hard to say what, when or how, but something will break.

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Fri Oct 07, 2005 8:37 am

Cheers for the reply

BIND is running on the same machine.

The actual error in the log is...

2005-10-07 13:32:11,088 ERROR Operation failed: Network check failed -- Hosts file is not configured with fully qualified domain name (FQDN)
2005-10-07 13:32:11,090 ERROR Operation failed: Network check failed -- Invalid FQDN 'localhost.localdomain'
2005-10-07 13:32:11,118 ERROR Operation failed: Network check failed -- Could not find a host name in DNS that matches an IP address
2005-10-07 13:32:11,119 ERROR Operation failed: Network check failed -- IP address associated with host name 'localhost.localdomain' is '127.0.0.1'
2005-10-07 13:32:11,197 INFO Network interface is actually eth0

Hope this helps.

Matthew

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Fri Oct 07, 2005 8:51 am

It looks as thought the hostname is "loalhost.localdomain" instead of "scalix.localdomain.com". What does "hostname" say?

If the hostname is localhost.localdomain, probably the easiest way to fix it is to edit /etc/sysconfig/network and reboot.

OK, I know you don't *need* to reboot, but so many things "know" the hostname that it's the easiest way forward.

However, even when you've done this you'll still get problems. "host 192.168.0.180" needs to print out scalix.localdomain.com and, similarly, "host scalix.localdomain.com" needs to show the right IP address.

Interesting, because this surprised me, localdomain.com does exist as, indeed, does scalix.localdomain.com (both have the IP address 66.172.91.184) Is that you? If it's not then you're likely to have other problems.

jch

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Fri Oct 07, 2005 8:53 am

(Note to self: the preview button is there for a reason, use it jch)

Forgot to say, having bind running does not mean that the name server is correctly configured. The installer looks up your hostname and then your IP address and hopes to find an IP address and a matching hostname. If it doesn't, it complains.

jch

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Fri Oct 07, 2005 9:02 am

Cheers for that JCH

I didn't think that localdomain.com would exist.

Could I just set the machine to scalix.localdomain?

Would this then need..

etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
192.168.0.180 scalix.localdomain scalix


If I run..
[root@localhost sysconfig]# host 192.168.0.180
I get ..
Host 180.0.168.192.in-addr.arpa not found: 3(NXDOMAIN)

Any ideas how I fix this. I'm running BIND.

If I run..
[root@localhost etc]# hostname
I get ..
localhost.localdomain

Should I change network to
NETWORKING=yes
HOSTNAME=scalix.localdomain
GATEWAY=192.168.0.100

Many thanks for your help.

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Fri Oct 07, 2005 9:18 am

Yes, you should make that last change. That's what will reset your hostname.

Setting up a DNS nameserver for local use is a little beyond the scope of a reply here. At the moment, all I can o is recommend that you pick up either of the O'Reiily books; DNS and Bind or the DNS and Bind Cookbook.

jch

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Fri Oct 07, 2005 9:20 am

Cheers, off to find out about BIND......

mrhumphreys
Posts: 50
Joined: Fri Oct 07, 2005 7:38 am

Postby mrhumphreys » Fri Oct 07, 2005 10:39 am

Ok, have found out my way around BIND in webmin, just need to determine what type of zone to create......

kevjs

Postby kevjs » Fri Oct 14, 2005 4:18 am

Hope you don't mind me butting into this topic but I am having the same problem with the same OS.

n = A number that i have hidden

/etc/hosts says

# Do not remove the following line, or various programs
# that require network functionality will fail.
192.nnn.n.14 scalix.localdomain.com
127.0.0.1 localhost spyder

And the following commands display the following :-
# hostname
scalix.localdomain

# host 192.nnn.n.14
14.n.nnn.192.in-addr.arpa domain name pointer scalix.localdomain.com.

# host scalix.localdomain.com
scalix.localdomain.com has address 192.nnn.n.14

The error messages read :-
Network Check Failed - Hosts file is not configured with fully qualified domain (FQDN)
Network Check Failed - Invalid FQDN 'scalix.localdomain'

Everything else is passed except Tomcat which it says scalix can install anyway.

Also, why does the machine have to be known as Scalix rather than being allowed to adopt our standard naming conventions, or is this only a limit of the Community Edition?

kevjs

Postby kevjs » Fri Oct 14, 2005 4:34 am

d'oh there is no edit button.

Just worked out that problem was the lack of a .com in the domain name.

Now I have a really weird problem

The summary says
Network Check X
Filesystem Check /
Java and Tomcat Check !
Dependancy Check /
Running Services Check X

Yet the log says

Filesystem Check Passed
Java and Tomcat Warning
Dependancy Check Passed

Nothing about the two failes, and it won't let me proceed?
:?

kevjs

Postby kevjs » Fri Oct 14, 2005 4:45 am

Sorry for the tripple post

I needed to

# PATH=$PATH:/sbin
# export PATH
# sh scalix-installer-community &

and then it worked, the --debug version complained it couldn't find chkconfig

Now lets see if the install completes successfully

jch
Scalix
Scalix
Posts: 202
Joined: Thu Mar 25, 2004 10:25 am

Postby jch » Fri Oct 14, 2005 4:50 am

That sounds like a bug in the installer. It's ringing a gentle little bell: it might be fixed in the current version.

I guess you don't have /sbin (and /usr/sbin) in your path and you did a plain "su" to turn yourself into root.

jch

kevjs

Postby kevjs » Fri Oct 14, 2005 9:34 am

jch wrote:That sounds like a bug in the installer. It's ringing a gentle little bell: it might be fixed in the current version.

I guess you don't have /sbin (and /usr/sbin) in your path and you did a plain "su" to turn yourself into root.

jch


I sshed in from another machine as root directly I think.

The Xwindows session was displayed on a Windows box using the XWindows server.

I finally got it installed, but when I attempt to login (via 8080/sac/ or :8080/webmail/ ) I get a message saying that the mail server is not responding.

The console where I installed it from ends with

Scalix Installer - extracting archive, please wait...
Scalix Installer - starting version 9.4.0.53...
Scalix Installer (Community Edition) - audit log file is /var/log/scalix-installer-20051014.log
Scalix Installer - cleaning up...
Scalix Installer - stopped.
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory


The log file ends

2005-10-14 11:28:36,644 INFO Configuring SWA...
2005-10-14 11:28:36,677 INFO Modifying Tomcat's classpath script
2005-10-14 11:28:36,752 INFO Tomcat is already running so stopping it first
2005-10-14 11:28:46,628 INFO Stopped Tomcat using command /opt/tomcat/jakarta-tomcat-5.0.28/bin/shutdown.sh
2005-10-14 11:28:49,698 INFO Tomcat is stopped False
2005-10-14 11:28:49,699 ERROR Failed to start Tomcat after Web Apps onfiguration -- please start it manually.
2005-10-14 11:28:49,748 INFO System default browser is /usr/bin/firefox
2005-10-14 11:28:51,172 INFO Browser /usr/bin/firefox version 1.0.4 is supported: True
2005-10-14 11:28:55,649 INFO Opening browser /usr/bin/firefox at URL http://scalix.localdomain.com:8080/sac? ... domain.com
2005-10-14 11:28:55,684 INFO Ending Scalix Installer (Community Edition) - completed successfully
[1]+ Done sh scalix-installer-community


If i try to stop Tomcat manually I get


Using CATALINA_BASE: /opt/tomcat/jakarta-tomcat-5.0.28
Using CATALINA_HOME: /opt/tomcat/jakarta-tomcat-5.0.28
Using CATALINA_TMPDIR: /opt/tomcat/jakarta-tomcat-5.0.28/temp
Using JAVA_HOME: /usr/java/j2sdk1.4.2_04
Catalina.stop: java.net.SocketException: Invalid argument or cannot assign requested address
java.net.SocketException: Invalid argument or cannot assign requested address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at org.apache.catalina.startup.Catalina.stopServer(Catalina.java:410)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.stopServer(Bootstrap.java:336)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:427)


I used scalix-9.4.0-community-intel-rh.tar.gz to install from

kevjs

Postby kevjs » Fri Oct 14, 2005 10:41 am

Apparently the tomcat error is an issue with FC4 and Java 1.4.2, can I use 1.5 with Scalix?


Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests