OK, I have been trying a few more drastic things and the results don't
make sense to me yet, but I will post them here anyway to see if perhaps
it makes sense to you...
I changed the rules on the firewall to
stop natting and rather to route the traffic. The 172.16.3.6 IP is now
out of the equation. I can browse
http://192.168.1.25:9000/login/
directly from a browser on the staging server (i.e. exactly like dev
can). But there are still no events being logged in sentry.
1) So now Dev and Staging are:
a) using exactly the same sentry endpoint: "http://{
app_token}@192.168.1.25:9000/4"
b) using two copies of exactly the same code from our source control
c) using the same RavenJava compiled .jar files and the same dependencies.
2)
The firewall is routing the traffic, not natting, and it is logging the
acceptance of the packet thus confirming that it is routing the packets
to sentry
3) I can browse sentry from the staging server
4) Dev logs entries into sentry, but staging doesn't (I have just retested both)
5)
Sentry console (in terminal window) does throw some warnings, but only
when testing Dev (e.g. Warning: Data truncated for column 'platform' at
row 1).
6) Nothing shows on the sentry console (in terminal window) when testing from staging
Dev is running on a Mac (Java version 1.6.0_45),
Staging is running on Windows (Java version 1.6.0_17),
Sentry is installed on Ubuntu (python version 2.6.2)
Raven and Dependency Versions used on both Dev and Staging
raven, 3.0
commons-codec, 1.6
jackson-core, 2.2.0
jackson-annotations, 2.2.0
jackson-databind, 2.2.0
javax.servlet-api, 3.0.1
Here are some tcpdump's from the sentry server...
Successful Event from Dev:12:52:54.738076
IP 192.168.1.210.65444 > 192.168.1.25.9000: S
3423623473:3423623473(0) win 65535 <mss 1460,nop,wscale
4,nop,nop,timestamp 644654537 0,sackOK,eol>
12:52:54.738088 IP
192.168.1.25.9000 > 192.168.1.210.65444: S 4285953545:4285953545(0)
ack 3423623474 win 5792 <mss 1460,sackOK,timestamp 888903025
644654537,nop,wscale 7>
12:52:54.738477 IP 192.168.1.210.65444 > 192.168.1.25.9000: . ack 1 win 8235 <nop,nop,timestamp 644654537 888903025>
12:52:54.739624
IP 192.168.1.210.65444 > 192.168.1.25.9000: P 1:402(401) ack 1 win
8235 <nop,nop,timestamp 644654538 888903025>
12:52:54.739635 IP
192.168.1.210.65444 > 192.168.1.25.9000: . 402:1850(1448) ack 1 win
8235 <nop,nop,timestamp 644654538 888903025>
12:52:54.739638 IP
192.168.1.210.65444 > 192.168.1.25.9000: . 1850:3298(1448) ack 1 win
8235 <nop,nop,timestamp 644654538 888903025>
12:52:54.739640
IP 192.168.1.210.65444 > 192.168.1.25.9000: . 3298:4381(1083) ack 1
win 8235 <nop,nop,timestamp 644654538 888903025>
12:52:54.739646 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 402 win 54 <nop,nop,timestamp 888903025 644654538>
12:52:54.739658 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 1850 win 77 <nop,nop,timestamp 888903025 644654538>
12:52:54.739663 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 3298 win 99 <nop,nop,timestamp 888903025 644654538>
12:52:54.739668 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 4381 win 122 <nop,nop,timestamp 888903025 644654538>
12:52:54.740272
IP 192.168.1.210.65444 > 192.168.1.25.9000: P 4381:5798(1417) ack 1
win 8235 <nop,nop,timestamp 644654539 888903025>
12:52:54.740283 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 5798 win 145 <nop,nop,timestamp 888903025 644654539>
12:52:54.783116
IP 192.168.1.25.9000 > 192.168.1.210.65444: P 1:337(336) ack 5798
win 145 <nop,nop,timestamp 888903029 644654539>
12:52:54.783173
IP 192.168.1.25.9000 > 192.168.1.210.65444: P 337:342(5) ack 5798
win 145 <nop,nop,timestamp 888903029 644654539>
12:52:54.783242
IP 192.168.1.25.9000 > 192.168.1.210.65444: F 342:342(0) ack 5798
win 145 <nop,nop,timestamp 888903029 644654539>
12:52:54.783603 IP 192.168.1.210.65444 > 192.168.1.25.9000: . ack 337 win 8214 <nop,nop,timestamp 644654582 888903029>
12:52:54.783616 IP 192.168.1.210.65444 > 192.168.1.25.9000: . ack 342 win 8214 <nop,nop,timestamp 644654582 888903029>
12:52:54.783702 IP 192.168.1.210.65444 > 192.168.1.25.9000: . ack 343 win 8214 <nop,nop,timestamp 644654582 888903029>
12:52:54.805765
IP 192.168.1.210.65444 > 192.168.1.25.9000: F 5798:5798(0) ack 343
win 8214 <nop,nop,timestamp 644654602 888903029>
12:52:54.805778 IP 192.168.1.25.9000 > 192.168.1.210.65444: . ack 5799 win 145 <nop,nop,timestamp 888903032 644654602>
12:52:56.919000 IP 192.168.1.4.137 > 192.168.1.255.137: NBT UDP PACKET(137): QUERY; REQUEST; BROADCAST
Ignored Event from Staging using FW routing:
12:51:10.313869
IP 192.168.3.20.60379 > 192.168.1.25.9000: S
3914518643:3914518643(0) win 8192 <mss 1460,nop,wscale
8,nop,nop,sackOK>
12:51:10.313886 IP 192.168.1.25.9000 >
192.168.3.20.60379: S 2638134472:2638134472(0) ack 3914518644 win 5840
<mss 1460,nop,nop,sackOK,nop,wscale 7>
12:51:10.326501 IP 192.168.3.20.60379 > 192.168.1.25.9000: . ack 1 win 256
12:51:10.327995 IP 192.168.3.20.60379 > 192.168.1.25.9000: F 1:1(0) ack 1 win 256
12:51:10.328092 IP 192.168.1.25.9000 > 192.168.3.20.60379: F 1:1(0) ack 2 win 46
12:51:10.340576 IP 192.168.3.20.60379 > 192.168.1.25.9000: . ack 2 win 256
Ignored Event from Staging using FW port forwarding:
12:56:12.224620
IP 192.168.3.20.60401 > 192.168.1.25.9000: S
4152708382:4152708382(0) win 8192 <mss 1460,nop,wscale
8,nop,nop,sackOK>
12:56:12.224655 IP 192.168.1.25.9000 >
192.168.3.20.60401: S 3067581795:3067581795(0) ack 4152708383 win 5840
<mss 1460,nop,nop,sackOK,nop,wscale 7>
12:56:12.237300 IP 192.168.3.20.60401 > 192.168.1.25.9000: . ack 1 win 256
12:56:12.238798 IP 192.168.3.20.60401 > 192.168.1.25.9000: F 1:1(0) ack 1 win 256
12:56:12.238886 IP 192.168.1.25.9000 > 192.168.3.20.60401: F 1:1(0) ack 2 win 46
12:56:12.251027 IP 192.168.3.20.60401 > 192.168.1.25.9000: . ack 2 win 256
Ignored Event from Staging using FW port forwarding with Source Natting (192.168.1.14 is the FW):
13:36:33.171039 IP 192.168.1.14.60594 > 192.168.1.25.9000: S 3640390344:3640390344(0) win 8192 <mss 1460,nop,wscale 8,nop,nop,sackOK>
13:36:33.171065 IP 192.168.1.25.9000 > 192.168.1.14.60594: S 2379536534:2379536534(0) ack 3640390345 win 5840 <mss 1460,nop,nop,sackOK,nop,wscale 7>
13:36:33.185415 IP 192.168.1.14.60594 > 192.168.1.25.9000: . ack 1 win 256
13:36:33.186914 IP 192.168.1.14.60594 > 192.168.1.25.9000: F 1:1(0) ack 1 win 256
13:36:33.186975 IP 192.168.1.25.9000 > 192.168.1.14.60594: F 1:1(0) ack 2 win 46
13:36:33.209876 IP 192.168.1.14.60594 > 192.168.1.25.9000: . ack 2 win 256
That last one excludes the possibility that the IP range could be causing the problem.
I even checked the gunicorn config options and added:
'forwarded_allow_ips': '*',
'proxy_allow_ips': '*',
'accesslog':'/var/log/sentry_access.log',
'errorlog':'/var/log/sentry_error.log',
and nothing shows up in those logs for dev or staging.
I'm at a loss.