Forums

BF2Statistics.com :: Forums :: Tech Support

SNAPSHOT Received: ERROR

THAT guy!
Groda_Lotsapot

Joined: Mon Feb 26 2007, 05:08PM
Posts: 40
I think I got everything setup fine, but I just can't figure out why I'm getting this error.

I can get on the server fine, play, get badges and everything fine, but when the map ends and it goes to send the SNAPSHOT, I get this error:

Sending SNAPSHOT to backend: 192.168.1.3
SNAPSHOT Received: ERROR
SNAPSHOT Processing Time: 0


If I use BF2ProcessGameLog.vbs to parse the stat logs, and the BF2S webadmin to import them, everything is fine and dandy.

IIS Webserver: 192.168.1.3
MySQL5 Server: 192.168.1.3
GameServer: 192.168.1.3

Website
musikmann

Joined: Thu Oct 04 2007, 06:47PM
Posts: 60
I never got IIS to process aspx files as php This is required for stats to process correctly. Sorry I cant be more helpful with this. This might be your problem as well. See if you can run a test from the Stats Admin (192.168.1.3/ASP/) page in the Test Config menu.
Website
THAT guy!
Groda_Lotsapot

Joined: Mon Feb 26 2007, 05:08PM
Posts: 40
Well I did a little extra snooping to see exactly what's going on. I edited my python\bf2\stats\miniclient.py so that it would actually print the HTTP status code you get (as you only get this error if your webserver rejects the request)
print "SNAPSHOT Received: ERROR (%S)" % status


Went and played a couple rounds and came back to see that I was actually getting a HTTP Error 405 [Method not allowed] from the WebServer.

Not sure if that helps
Website
musikmann

Joined: Thu Oct 04 2007, 06:47PM
Posts: 60
Lets make sure aspx files are being processed as php. In a browser window even on the server itself, type in a browser window:
192.168.1.3 (or localhost)/ASP/getplayerinfo.aspx?pid=0
if you get one single line of test maybe like this:
E H asof err D 1195373285 Invalid Syntax! $ 35 $
ur good to go if you get something like:
get('db_host'), $cfg->get('db_user'), $cfg->get('db_pass'));
and lots more lines of text...php isnt processing the aspx files
Website
THAT guy!
Groda_Lotsapot

Joined: Mon Feb 26 2007, 05:08PM
Posts: 40
I figured out the problem! (after a LOT of research)
I setup IIS to log to an ODBC location that I setup on my MySQL server (pm me if you wanna learn how). I went and set the round time to 10minutes and played some quick rounds just to generate some logs. I checked the IIS logs to see what the service status, target, and parameters that were being passed were.
I found that the BF2 Server was incorrectly POSTing to /ASP/bf2statistics.php[TAB]HTTP/1.1, and this was generating a HTTP 405 (Method not allowed) error message.

After hunting through several files, I finally ended up at \python\bf2\stats\miniclient.py about 1/4 of the way down, you'll find
http.writeline("POST %s HTTP/1.1" % str(document))
http.writeline("HOST:TAB %s" % str(host))


Between the word POST and %s it looks like spaces, but it's actually not. There are TAB characters in there (as I've shown above. Just delete that area where the tab is, and replace it with a single space.
http.writeline("POST %s HTTP/1.1" % str(document))
http.writeline("HOST: %s" % str(host))


Everything is working 100% fine now and recording the stats perfectly. Now for me to setup the webbased stats page
Website
musikmann

Joined: Thu Oct 04 2007, 06:47PM
Posts: 60
Sweet!!
Website

Moderators: MrNiceGuy, Twhyman, Chump, hurr1k4ne, The Shadow, Wilson212

<< Previous thread | Next thread >>

Jump:     Back to top