Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When debugging my Rails application I noticed often when I do a request, about 4 seconds later the same page is requested from a 10.x.x.x IP address. I googled for the IP addresses and if I understand correctly it is a router. I find this very strange. Can anyone explain what this is?

Excerpt from my Rails production.log:

Started GET "/blogs/71" for (My IP address) at Sun Oct 09 12:14:12 +0000 2011
  Processing by BlogsController#show as HTML
  Parameters: {"id"=>"71"}
Rendered shared/_google_maps.html.erb (0.2ms)
Rendered blogs/_comments.html.erb (22.0ms)
Rendered blogs/_comment_form.html.erb (2.9ms)
Rendered shared/_header.html.erb (23.8ms)
Rendered shared/_menu.html.erb (0.1ms)
Rendered shared/_footer.html.erb (0.3ms)
Rendered blogs/show.html.erb within layouts/application (155.2ms)
Completed 200 OK in 157ms (Views: 155.0ms | ActiveRecord: 1.1ms)


Started GET "/blogs/71" for 10.36.219.118 at Sun Oct 09 12:14:16 +0000 2011
  Processing by BlogsController#show as 
  Parameters: {"id"=>"71"}
Rendered shared/_google_maps.html.erb (0.1ms)
Rendered blogs/_comments.html.erb (16.1ms)
Rendered blogs/_comment_form.html.erb (12.0ms)
Rendered shared/_header.html.erb (0.1ms)
Rendered shared/_menu.html.erb (0.1ms)
Rendered shared/_footer.html.erb (0.2ms)
Rendered blogs/show.html.erb within layouts/application (123.2ms)
Completed 200 OK in 152ms (Views: 132.5ms | ActiveRecord: 1.1ms)

Don't know if it's relevant, but the server is Ubuntu, web server is nginx with passenger and REE.

I have a recaptcha on the pages where this occurs, could that be causing this?

Not sure if this is off-topic here. I apologize in advance if it is.

share|improve this question
1  
Some machine on your network has local IP address 10.36.219.118 assigned to it. You need to find out what machine that is. –  David Schwartz Oct 9 '11 at 13:53
    
@DavidSchwartz, thanks for your comment. This log file is from a remote server. Does that mean a local IP address on the network of the server? Or is it a local IP address on my home network? –  Mischa Oct 9 '11 at 14:21
1  
It would have to be on the same network as the server or connected to it by a VPN. 10.x addresses are not routable over the public Internet. –  David Schwartz Oct 9 '11 at 14:28
add comment

2 Answers

I'd start by tracing the request-path through the entire stack. It could look something like this:

  1. The request is received at TCP/80 on Websrv.
  2. Nginx is bound to TCP/80 and processes the request
  3. The request is handled by these specific directives in the config file
  4. The request is passed off to Passenger, where it enters the Ruby environment

If I had to guess where the problem may sit (and I do have to guess) I'd put money on #3 up there. Something in the nginx config is causing the request to duplicate and come around again, with the IP address changing part way through.

Then examine your config to see where the heck that 10 address comes from; it could be assigned to a different NIC on your server, a proxy engine somewhere, or on a completely different device on your network. Locating that IP address will help isolate the double-request issue.

share|improve this answer
    
Thanks. No idea how, but I will try tracing the request-path. –  Mischa Oct 9 '11 at 14:22
add comment

10.X.X.X is a local network address, so without being inside your building, we can't tell what it is from here

Look in the nginx access logs -- is nginx logging multiple requests happening? If so, looking at the user-agent string should tell you what software is making them

share|improve this answer
    
Thanks. Same question I asked David: is it on the network of the server or my client? –  Mischa Oct 9 '11 at 14:23
    
@Mischa your server. 10/8 space is not routable over the internet (except through a VPN). –  polynomial Oct 10 '11 at 2:26
    
@polynomial, thanks. I checked my nginx access logs and they don't have these requests. They're only in the Rails log file. Any ideas? –  Mischa Oct 10 '11 at 2:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.