LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 09-07-2009, 01:49 PM   #1
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Rep: Reputation: 15
Problems after Debian Lenny upgrade


Hello kind folks,

I've got a debian lenny installation set up as a testing webserver. Everything was working perfectly thanks to the folks here that is!

So here's my problem:

Upgraded to the latest lenny release and it seems to me that it has written over some files and my webserver has stopped serving!

Here's my findings so far:

I noticed that eth0 had an ipaddress of 192.168.1.2 and not the one I had assigned in /etc/network/interfaces which was 192.168.1.15 (there was no backup file created by the upgrade)so I changed that file as I had done before to:

# The primary network interface

# auto eth0

iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1 (that's my cheapo router with port forwarding to 192.168.1.15 already set up and was working!)

Then I added xxxx.dnsalias.org 192.168.1.15 to my /etc/hosts file (that had been overwritten too!)

I seem to remember that I had to create a /etc/resolve.conf file but that has been replaced by a link to a file that says "dont touch this file, it will be updated automatically" or someting like that.

At your mercy guys and gals! Please help!

Regards from Scotland (hope we beat the dutch on wednesday night in the world cup qualifier!)
 
Old 09-07-2009, 03:05 PM   #2
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
add the option
Code:
dns-nameservers 192.168.1.1
to the eth0 iface

that should give your server the internet back
 
Old 09-07-2009, 03:26 PM   #3
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Excuse my..

..ignorance, do you mean:

iface eth0 inet static dns-nameservers 192.168.1.1

or

iface eth0 inet static
dns-nameservers 192.168.1.1

or is it the same thing? ie one line or 2 lines?

Thanks for you help,

Sorry for being a linux dafty!
 
Old 09-07-2009, 03:36 PM   #4
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
ok I thought you would just guess...
according to the setup you posted above, the file should look like:
Code:
# The primary network interface

# auto eth0

iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1
That's how I ment it. The following commands, executed as root (in that sequence), will apply the settings:
Code:
ifdown eth0
ifup eth0
Hope that gets your server serving again.
 
Old 09-07-2009, 03:56 PM   #5
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
As usual...

.. added the the line you suggested (never had to do that before the upgrade) the solution is no doubt more involved.

I can see the website from the server but have no access to the net from the server and cant access the server from a remote computer..oh joy!

Oh and eth0 reports as 192.168.1.15 must be that darn resolve.conf thingy!

Last edited by ludo33; 09-07-2009 at 03:57 PM.
 
Old 09-07-2009, 04:30 PM   #6
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
My fault. I thought you needed to assign the ip 192.168.1.15, which is the ip the upgrade gave you. Just edit that file again and change the ip after the "address" statement to the one which your server is to be assigned (192.168.1.2 if I got it right now). Then use the two commands to apply the changes. Sorry for my mistake.

Last edited by TITiAN; 09-07-2009 at 04:32 PM.
 
Old 09-08-2009, 12:34 AM   #7
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Slight improvement

Hi again,

I can now see the internet from the server, so half way to the solution :-)

Here's the whole interfaces file, just in case something else is wrong:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface

auto lo
iface lo inet loopback

# The primary network interface

allow-hotplug eth0

# auto eth0

iface eth0 inet static
address 192.168.1.15
netmask 255.255.255.0
gateway 192.168.1.1
dns-nameservers 192.168.1.1

any ideas?
 
Old 09-08-2009, 08:17 AM   #8
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
I am seeing the ip 192.168.1.15 in your 'interfaces' file again, if you want your server to have the ip 192.168.1.2, you will have to change that.

From what you said, you are probably running a webserver (apache?). To check if it's running, open a web browser in your LAN (or the LAN where the server is) and enter the server ip in the address field.
 
Old 09-08-2009, 11:06 AM   #9
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Ooops

Hi again,

Sorry to confuse you, but you can be sure I'm a lot more confused than you! :-)

Ok just to clarify, yes I had everything working prior to the upgrade using the address 192.168.1.15.

After upgrade the eth0 address changed to 192.168.1.2 and some of my files were altered (I still suspect resolve.conf is the problem)

When I enter http://192.168.1.15 on the server I see my test web site in the browser.

Do you think any of the apache configs were changed during the upgarde?

Thanks for your help.
 
Old 09-09-2009, 12:40 AM   #10
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
I tried....

....netstat -tan|grep -E '80|10000'

Here's the output:

tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.15:49644 77.242.194.130:80 ESTABLISHED
tcp 1 0 192.168.1.15:54050 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:37035 209.85.229.157:80 ESTABLISHED
tcp 0 0 192.168.1.15:35914 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:48589 212.140.233.207:80 ESTABLISHED
tcp 0 0 192.168.1.15:41621 209.85.229.167:80 ESTABLISHED
tcp 0 0 192.168.1.15:54053 205.234.175.175:80 ESTABLISHED
tcp 0 0 192.168.1.15:49643 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:49646 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:60075 209.85.229.156:80 ESTABLISHED
tcp 0 0 192.168.1.15:35913 75.126.162.205:80 ESTABLISHED
tcp 1 0 192.168.1.15:54051 205.234.175.175:80 CLOSE_WAIT
tcp 1 0 192.168.1.15:54055 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:42244 209.85.229.164:80 ESTABLISHED
tcp 0 0 192.168.1.15:35915 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:59142 64.158.223.128:80 TIME_WAIT
tcp 0 0 192.168.1.15:49641 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:49642 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:35917 75.126.162.205:80 ESTABLISHED
tcp 1 0 192.168.1.15:54052 205.234.175.175:80 CLOSE_WAIT
tcp 1 0 192.168.1.15:54054 205.234.175.175:80 CLOSE_WAIT
tcp 0 0 192.168.1.15:35916 75.126.162.205:80 ESTABLISHED
tcp 0 0 192.168.1.15:49645 77.242.194.130:80 ESTABLISHED
tcp 0 0 192.168.1.15:38163 209.85.229.113:80 ESTABLISHED
tcp6 0 0 :::80 :::* LISTEN

Any ideas what it means? :-)
 
Old 09-09-2009, 09:28 AM   #11
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
This means there are a lot of connection from the internet to your web pages (tcp connections from a lot of internet ip's to port 80).
 
Old 09-09-2009, 11:24 AM   #12
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Hmm

Hello again,

How come I can't connect to the my test site from a remote computer via the internet?

Any ideas what to try next to connect?
 
Old 09-12-2009, 04:18 AM   #13
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Any ideas?

Seems after the upgrade the webserver is now listening on IPV6 and not on IPV4. How to I change this?
 
Old 09-12-2009, 09:15 AM   #14
ludo33
Member
 
Registered: Feb 2009
Posts: 119

Original Poster
Rep: Reputation: 15
Just checking

Found this info:

http://www.linux.com/community/blogs...ick-howto.html

Is echo "blacklist ipv6" >> /etc/modprobe.d/blacklist.conf the answer?
Any gurus out there?
 
Old 09-12-2009, 11:45 AM   #15
TITiAN
Member
 
Registered: Mar 2008
Location: NRW, Germany
Distribution: Debian GNU/Linux with XFCE and packages from "testing"
Posts: 377

Rep: Reputation: 46
Sorry, I don't know. If you start a new thread like "Why does Apache only listen to ipv6 ports?", more people will be looking at this issue ("no-reply-threads"), so you might catch one or two "gurus" by doing that. How about it?
 
  


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
need flash upgrade on Debian Lenny Ron G Linux - Newbie 4 06-30-2009 06:17 PM
LXer: How To Upgrade A Debian Etch System (Server & Desktop) To Debian Lenny LXer Syndicated Linux News 0 02-20-2009 04:30 PM
upgrade the kernel on the VM with debian lenny cccc Debian 6 02-18-2009 01:03 PM
Debian upgrade etch to lenny help KrazyKanuk Linux - Software 2 02-06-2009 10:50 AM
Debian Lenny upgrade to OSS 4.1: mixed results bezdomny Linux - Software 2 02-03-2009 06:52 AM


All times are GMT -5. The time now is 03:59 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration