Virtual Server is intermittent.

I have 4 sites up right now, and I am only having trouble with one of them. It is intermittent. When I try to access it, I get server not found. If I visit the other 3 sites they all come up just fine, but if I go beck to the one in question it now logs on, and will work fine till I stay away for a few hours, then if I go beck I get Server Not Found again. Happens with FF and IE. the only difference between the 4 sites is 3 of them are .com, and the one I'm having trouble with is a .net. I have deleted this Virtual Server 3 times now and recreated it, with no change. I have checked the configuration, but still can't find the problem. I have no Idea what else to try. and hoping I can get some Ideas on wit to do next.

regards Michael

Status: 
Closed (fixed)

Comments

Posted 2011-08-16 00:58 by mike8 Project: Virtualmin Virtual Servers Component: Code Category: bug report Assigned: Unassigned Status: active Jump to:

Add new comment

Operating System: Other Description

I have 4 sites up right now, and I am only having trouble with one of them. It is intermittent. When I try to access it, I get server not found. If I visit the other 3 sites they all come up just fine, but if I go beck to the one in question it now logs on, and will work fine till I stay away for a few hours, then if I go beck I get Server Not Found again. Happens with FF and IE. the only difference between the 4 sites is 3 of them are .com, and the one I'm having trouble with is a .net. I have deleted this Virtual Server 3 times now and recreated it, with no change. I have checked the configuration, but still can't find the problem. I have no Idea what else to try. and hoping I can get some Ideas on wit to do next.

regards Michael

Intermittent failures like this are often caused by incorrectly set up primary and secondary nameservers.

If the primary server is okay, and the secondary returns incorrect data (or the other way round), you will get random website errors, because nameservers are queried in a random order due to load balancing.

You might want to check the DNS zone in question, maybe that turns up the reason for the problem, e.g. with http://www.intodns.com/

I could have helped you with this check, but unfortunately you didn't tell us the name of the problem domain. :)

Also note the warning message in your log, saying "Home directory /home/asrservice is owned by apache instead of asrservice".

Addendum: Using the information in your debug log data, I checked the four domains mentioned there, and it seems that all zones except the "asrservice.com" one has some problems.

E.g. for "rusty-gold.net": Your registrar reports two nameservers as responsible, i.e. ns1/ns2.asrservice.com, but the ns2 NS entry is missing at your nameservers. Also, the two nameservers are in the same /24 subnet, which is usually not allowed for redundancy purposes.

The domain "pattiespretties.com" reports the same problems.

"lectraink.com" seems to be set up quite differently. The registrar reports other nameservers, i.e. "dns1/2/3/4.nameresolvers.com", which is supposedly incorrect? The check reports missing and mismatched nameservers there. I'm assuming that "asrservices.com" is your administrative domain, to which all the NS entries in your other domains are pointing. In that case, you'd need to have your registrar point those the same way your other zones do.

Yeah, as Locutus mentioned, you're likely seeing a DNS problem with your domain that's having those intermittent problems.

Which domain is it that you're having problems with?

Thank you for your help, I really need it, as I'm very new at running my own server this way. I'm still trying to figure out a few things. Name Server is one of them, and the mail Server is the other one.

Also note the warning message in your log, saying "Home directory /home/asrservice is owned by apache instead of asrservice"

I saw that in the log, but I thought I had that fixed already, I went in and changed it to asrservice as owner. asrservice is my administrative domain. and it is through another registry because of an email account. there. I never did figure out how to get the Domain for asrservice to point to NS1/2.asrservice.com, and still get the mail from an external server.

There are 2 things you said that I'm not sure how to do.

  1. You might want to check the DNS zone in question

If I switch to that domain, and check the records there, it only lists ns1.asrservice, do I just create a new NS - Name Server? and add the ns2.asrservice.com?

  1. Also, the two nameservers are in the same /24 subnet, which is usually not allowed for redundancy purposes

I have no idea how to change that. Or even what that means.

I went in and added a new Record Type ns2.asrservice.com for rusty-gold.net to see if that fixes that problem, if it does I will check the other Domains to see if there the same.

As for my administrative domain, I have been working on getting all my email changed to another email address, until I can figure out how to get the E-Mail Server set up right.

The rusty-gold.net was the only site that seemed to have a problem.

Believe me I can use all the help I can get on this, until I get it all figured out.

Thank you Michael

If I switch to that domain, and check the records there, it only lists ns1.asrservice, do I just create a new NS - Name Server? and add the ns2.asrservice.com?

Yeah, since you have two nameservers, it wouldn't hurt to add a second NS record named "ns2.asrservice.com".

Also, if you do that, you'd want to add an 'A' record for "ns2.asrservice.com" in the asrservice.com domain as well.

To make sure it always adds ns2.asrservice.com to every domain added to your server, you can add "ns2.asrservice.com" to System Settings -> Server Templates -> Default Settings -> BIND DNS Domain -> "Additional manually configured nameservers".

Also, the two nameservers are in the same /24 subnet, which is usually not allowed for redundancy purposes

Well, the suggestion is that, for the sake of redundancy, that your DNS servers be in geographically separate locations.

However, that's not a requirement, and quite a few folks have two nameservers both pointing back to the same server.

I went in and added a new Record Type ns2.asrservice.com for rusty-gold.net to see if that fixes that problem, if it does I will check the other Domains to see if there the same.

Great, let us know if that helps!

Your DNS report for that domain is looking good, no errors:

http://www.intodns.com/rusty-gold.net

OK I have done everything you suggested, but to still does the same thing on www.rusty-gold.net Do you have any other Ideas? This is the first .net site I tried to set up, and its strange that its the ony site I have problems with.

Michael

It's not likely to be related to your domain being a .net domain.

I haven't seen the problems you're describing, your site has always worked each time I tried it. Do you know if anyone else has seen the problems you're seeing?

Whenever it fails, have you confirmed right at that point that the other sites on your server work fine?

Also, do you have another computer that you can try it from?

Lastly, do you see any errors in your logs, such as /var/log/messages? I'm curious about any errors, but in particular, BIND related

I haven't seen the problems you're describing, your site has always worked each time I tried it. Do you know if anyone else has seen the problems you're seeing?

This is a new site, and I haven't even tried to get other people to log in. I tried to log in with my Laptop, but it is still in the same block of IP's, through the same Cable Modem, and it does the same thing.

I also tried to log in with my IPhone, and it went to the AT&T network, and it connected. so maybe it has something to do with my local network.

Here is my error log for the last 2 days.


[Tue Aug 16 11:17:52 2011] [error] [client 213.234.197.54] File does not exist: /home/rusty-gold/public_html/admin
[Tue Aug 16 11:48:11 2011] [error] [client 218.149.84.37] File does not exist: /home/rusty-gold/public_html/admin
[Tue Aug 16 12:11:08 2011] [error] [client 85.17.141.181] File does not exist: /home/rusty-gold/public_html/admin
[Tue Aug 16 18:03:30 2011] [error] [client 74.87.143.206] File does not exist: /home/rusty-gold/public_html/admin
[Tue Aug 16 18:03:50 2011] [error] [client 74.87.143.206] File does not exist: /home/rusty-gold/public_html/admin
[Tue Aug 16 20:48:00 2011] [warn] mod_fcgid: stderr: PHP Notice:  Undefined index:  HTTP_HOST in /home/rusty-gold/public_html/libraries/joomla/environment/uri.php on line 136
[Tue Aug 16 22:45:43 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 16 22:45:43 2011] [warn] RSA server certificate wildcard CommonName (CN) `*.rusty-gold.net' does NOT match server name!?
[Tue Aug 16 22:45:45 2011] [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
[Tue Aug 16 22:45:45 2011] [warn] RSA server certificate wildcard CommonName (CN) `*.rusty-gold.net' does NOT match server name!?
[Tue Aug 16 22:55:27 2011] [error] [client 66.249.72.39] File does not exist: /home/rusty-gold/public_html/sell.htm
[Tue Aug 16 23:04:11 2011] [error] [client 66.249.72.155] File does not exist: /home/rusty-gold/public_html/contact.htm
[Wed Aug 17 01:55:23 2011] [error] [client 173.193.195.226] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)
[Wed Aug 17 06:58:14 2011] [error] [client 66.249.72.39] File does not exist: /home/rusty-gold/public_html/calendar
[Wed Aug 17 08:32:37 2011] [error] [client 66.249.72.39] File does not exist: /home/rusty-gold/public_html/calendar

All I have done is installed Joomla 1.6, and have not really set it up just. Wanted to get this problem fixed first.

So if my problem is local network related, what can I check to find the problem?

Michael

Well, that looks like your Apache error log... since you're getting "Server not found messages", that sounds like a DNS issue -- those sorts of issues would show up in /var/log/messages.

Do you see any BIND or DNS related errors when the site is down in /var/log/messages?

So if my problem is local network related, what can I check to find the problem?

If you're finding that all the computers on your network can't access this one site, but other computers can, it may indeed be related to DNS on your local network, or your ISP's DNS.

You could always try using a different set of DNS servers on your local LAN, rather than the DNS servers you're currently using (which are likely your ISP's DNS). For example, you could try changing your DNS on your computer to use these two IP's, which is Google's public DNS:

  8.8.8.8
  8.8.4.4

Google provides instructions for setting that up here:

http://code.google.com/speed/public-dns/docs/using.html

Here are the latest errors in the "var/log/messages"

Aug 17 13:20:05 asrservice named[2830]: network unreachable resolving 'centos.cs.wisc.edu/A/IN': 2607:f388::a53:3#53
Aug 17 13:20:05 asrservice named[2830]: network unreachable resolving 'mirrors.xmission.com/A/IN': 2001:503:a83e::2:30#53
Aug 17 13:20:05 asrservice named[2830]: network unreachable resolving 'centos.mirror.nac.net/A/IN': 2001:518::2#53

I will defenitlly try to set up different IPs, like you mentioned.

Michael

Okay, sounds good... let us know how that works!

OK I followed the directions for changing the name Server Address for my local network to the Google's address. This seems to be working.

Now when I first installed the CentOS 5.5 Linux software, it had me set up the network with IP Address, and DNS Address, so I used the addresses that were given to me by my ISP (Time Warner Roadrunner Account), when I set up my Home network, I used the same DNS Address in the Router.

I have 5 Static IP's, I used one for my Local Network through my Router, and the other 4 for my server. Everything worked great for the last 4 or 5 years. Then I registered the new Domain rusty-gold.net. That's when the problem started as soon as I set up a Virtual Server for this Domain.

Anyway I changed the DNS Address in the Router to the Google's address, and it now works for the rusty-gold.net site.

I only have one server, love to set up another if I had the money, but that's not possible right now. So should I be changing my DNS Address in the Network Setup on the server to solve the problem?

Or should I just leave it, and just use the Google's DNS for my Local Network.

Thanks Michael

OK I followed the directions for changing the name Server Address for my local network to the Google's address. This seems to be working.

Now when I first installed the CentOS 5.5 Linux software, it had me set up the network with IP Address, and DNS Address, so I used the addresses that were given to me by my ISP (Time Warner Roadrunner Account), when I set up my Home network, I used the same DNS Address in the Router.

I have 5 Static IP's, I used one for my Local Network through my Router, and the other 4 for my server. Everything worked great for the last 4 or 5 years. Then I registered the new Domain rusty-gold.net. That's when the problem started as soon as I set up a Virtual Server for this Domain.

Anyway I changed the DNS Address in the Router to the Google's address, and it now works for the rusty-gold.net site.

I only have one server, love to set up another if I had the money, but that's not possible right now. So should I be changing my DNS Address in the Network Setup on the server to solve the problem?

Or should I just leave it, and just use the Google's DNS for my Local Network.

Thanks Michael

OK I followed the directions for changing the name Server Address for my local network to the Google's address. This seems to be working.

Now when I first installed the CentOS 5.5 Linux software, it had me set up the network with IP Address, and DNS Address, so I used the addresses that were given to me by my ISP (Time Warner Roadrunner Account), when I set up my Home network, I used the same DNS Address in the Router.

I have 5 Static IP's, I used one for my Local Network through my Router, and the other 4 for my server. Everything worked great for the last 4 or 5 years. Then I registered the new Domain rusty-gold.net. That's when the problem started as soon as I set up a Virtual Server for this Domain.

Anyway I changed the DNS Address in the Router to the Google's address, and it now works for the rusty-gold.net site.

I only have one server, love to set up another if I had the money, but that's not possible right now. So should I be changing my DNS Address in the Network Setup on the server to solve the problem?

Or should I just leave it, and just use the Google's DNS for my Local Network.

Thanks Michael

The DNS settings on your server itself should remain as they are -- it performs it's own lookups against the root DNS servers on the Internet.

Your Virtualmin server would be configured to use itself as a nameserver.

So, the only settings you should be changing to use Google's DNS would be those of your desktop.