LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2006, 10:23 AM   #1
mcbaind
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Rep: Reputation: 0
httpd restart FAILED error: Could not determine the server's fqdn


For one reason or another I have recently found myself in a position where I have sole responsibility for a Linux Server (with no peer support at all – and I have very little knowledge of Linux). The server is dedicated to just one site and uses (I believe) Linux release 9, Apache 2, Tomcat 5, Exist XML Database 1 and Subversion.

Up until now, if the server has fallen over I have been able to simply restart Apache (./httpd start from /etc/rc.d/init.d/) and Tomcat (./startup.sh from /opt/tomcat/bin), which seems to get it up and running again. That is about as far as my Linux skills go!

The last time I had to do that was some weeks ago, but whilst trying to restart httpd I got the error:
Starting httpd: /usr/sbin/httpd: relocation error: /usr/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno [FAILED]

After research on the web, I managed to fix this problem by running the following before restarting httpd:
Export LD_PRELOAD=/usr/lib64/libgdbm.so.2

However, the server has fallen over again and this time I cannot get it restarted.

I initially used:
Export LD_PRELOAD=/usr/lib64/libgdbm.so.2
and restarted httpd without a problem.
I then tried to restart Tomcat, but got an error saying something about file sharing or it couldn’t find a file (sorry I didn’t take a note).
I figured it was possibly looking for libgdbm.so.2 and knew if I rebooted the server (to replicate what happens when it falls over) this file would appear again in /usr/lib64/ so I used the command: “shutdown –r now” to reboot the server.
Unfortunately now when I connect to the server (SSH - Putty) it shows the following:
[root@no-dns-yet root]#
where as before the reboot it was (I’m 90% sure):
[root@localhost root]#
Now I cannot start httpd and get the error:
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED]
I have not altered the httpd.conf file or anything for that matter, so I can’t understand what I’ve done!

Can anyone help me out with this?
(the site has been down for days now and I'm getting it in the neck!)

Cheers...
 
Old 10-03-2006, 11:03 AM   #2
Blinker_Fluid
Member
 
Registered: Jul 2003
Location: Clinging to my guns and religion.
Posts: 683

Rep: Reputation: 63
Some questions I have:
Does this server have a hostname? The prompts you show are odd. If it's a web server I would want a fixed hostname and static IP. If you don't have them get them.

Some commands that may be helpfull to someone more familiar with Tomcat/apache
ifconfig -a (shows networking information)
uname -a (shows host information)
Distro/version of Linux? (RedHat, SUSE, Debian, etc) <-- this helps us point you in how you might need to configure Hostname, Domain, IP information
 
Old 10-03-2006, 11:31 AM   #3
mcbaind
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for getting back to me…

I should explain that this server was set up by a colleague who has since left and refuses to provide anymore support (there was no documentation left).

The server is dedicated to the website ljf.scot.nhs.uk 193.195.78.76) which obviously is down at the moment.

To try and give you more information…:

cd /etc/hosts shows:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
~
~
"hosts" 3L, 146C

The command you provided (thanks!):
ifconfig –a shows:

eth0 Link encap:Ethernet HWaddr 00:11:43B:6A:B7
inet addr:193.195.78.76 Bcast:193.195.78.79 Mask:255.255.255.240
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:9436 errors:0 dropped:0 overruns:0 frame:0
TX packets:2893 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:648771 (633.5 Kb) TX bytes:647367 (632.1 Kb)
Base address:0xecc0 Memory:dfae0000-dfb00000

eth1 Link encap:Ethernet HWaddr 00:11:43B:6A:B8
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Base address:0xdcc0 Memory:df8e0000-df900000

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1128 (1.1 Kb) TX bytes:1128 (1.1 Kb)

[root@no-dns-yet root]#


uname –a shows:
Linux no-dns-yet.demon.co.uk 2.4.21-15.EL #1 SMP Thu Apr 22 00:09:47 EDT 2004 x86_64 x86_64 x86_64 GNU/Linux

And

cat /proc/version shows:
Linux version 2.4.21-15.EL (bhcompile@thor.perf.redhat.com) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-34)) #1 SMP Thu Apr 22 00:09:47 EDT 2004

I hope that info is useful… if not, let me know how I can provide you with info that will help.

Thanks…
 
Old 10-03-2006, 01:29 PM   #4
bfsleader
LQ Newbie
 
Registered: Oct 2006
Posts: 1

Rep: Reputation: 0
did you try
root# service httpd start
 
Old 10-03-2006, 03:02 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-03-2006, 03:07 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
What do you have in /etc/resolv.conf? There should be a list of nameservers in format
nameserver server_ip
Compare it with the list of your DNSes, you should have it somewhere. If not, try to ping the servers one by one to see if they answer.
 
Old 10-04-2006, 04:42 AM   #7
mcbaind
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi, Thanks for your input.

When I try "root# service httpd start" I get the error:
[root@no-dns-yet root]# service httpd start
Starting httpd: /usr/sbin/httpd: relocation error: /usr/lib/libaprutil-0.so.0: undefined symbol: gdbm_errno [FAILED]
[root@no-dns-yet root]#

However, if I cd to /etc/rc.d/init.d/ and use "./httpd start" I get the error:
[root@no-dns-yet init.d]# ./httpd start
Starting httpd: httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName [FAILED]
[root@no-dns-yet init.d]#

So no luck with that bfsleader.

Mara, thanks for moving the thread...

A vi of "/etc/resolv.conf" shows:

nameserver 193.195.78.70
search demon.co.uk
~
~
"resolv.conf" 2L, 44C 1,1 All

PING shows:
C:\>ping 193.195.78.76

Pinging 193.195.78.76 with 32 bytes of data:

Reply from 193.195.78.76: bytes=32 time=40ms TTL=41
Reply from 193.195.78.76: bytes=32 time=40ms TTL=41
Reply from 193.195.78.76: bytes=32 time=38ms TTL=41
Reply from 193.195.78.76: bytes=32 time=35ms TTL=41

Ping statistics for 193.195.78.76:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss)
Approximate round trip times in milli-seconds:
Minimum = 35ms, Maximum = 40ms, Average = 38ms

Not sure how to check my list of DNSes... can you tell me (the domain is w.ljf.scot.nhs.uk)?

Thanks for your help so far... I'm very grateful.
 
Old 10-05-2006, 03:34 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
One last question about DNS: does it resolve other addresses? Try lq or any other site (ping using site name, for example).

Have you recently tried an upgrade?
 
Old 10-06-2006, 08:21 AM   #9
mcbaind
LQ Newbie
 
Registered: Oct 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Mara,

Thanks for getting back to me again.

I have since been in contact with the company who host this server (rather reluctantly as they normally refuse to have anything to do with it other than have it in their rack) and I think they altered or resolved something in the DNS that has resulted in me being able to restart Apache and Tomcat. So the site is now up and running again.

Thank you again for all your time and input, I am very grateful to you.

David.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache giving the error :Could not determine the server's fully qualified domain name bcf2 Linux - Server 47 02-13-2015 10:34 PM
Adding client to server's list failed, CORBA error: IDL:omg.org/CORBA/COMM_FAILURE:1. wlfdgcrkz Linux - Software 2 01-26-2008 01:28 PM
httpd restart error sandeshshrestha Linux - General 4 03-27-2006 07:09 AM
Failed Httpd restart namboi Linux - Newbie 5 05-07-2005 07:23 PM
Apache: httpd: Could not determine the server's fully qualified domain name.. shirtboy Linux - Software 1 11-20-2003 03:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration