by Brewmeisterman » Thu May 09, 2019 12:23 am
This is the report from the professional:
Checking the server logs, I cannot see any post requests to your stats server from your own BF2 server. This being the case, it would appear that it is not even trying. I was hoping to see if the change I made had at least had a positive effect on your server. If so, it would have provided confirmation that I had found the issue. If you are able to put one of the other BF2 server admins in touch with me, I can suggest a way that they can also try the modification. It would be good to test this, if at all possible.
I have found no way of altering how the web server works to clean up the requests. As I mentioned before, there are several ways of doing it, but I really don't think that it would be cost-effective. The code that is submitting these rejected requests is definitely in the mod, rather than something that EA provided so whoever provides the stats mod code (is it BF2Hub?) could easily fix this by updating their client code and then advising people to download it.
As mentioned above, the file in question is /home/game/bf2server/python/bf2-aix_stats_original/stats/miniclient.py on your server and it is compiled to a miniclient.pyc file. Whoever has responsibility for this file could change it. It is also possible to edit the .pyc file and replace the tab character with a space. If we can test this and it results in your server gathering stats again, you can advise other people as well.
I noticed that when manually processing some of the files, the stats engine was reporting an error. This may just be a warning to indicate that it stopped processing at a fixed limit, or it could also indicate why stats are not being recorded. I can tell you where this is occurring as well (it is visible in the server logs). Without reviewing the code, I cannot explain why the error happens. It could be a regression in the PHP software (unlikely) or it could just be something that is expected in the code. If it turns out that this is one of the reasons for the problem, a whole new can of worms has been opened and I think your final comment probably holds true.
I have put in quite a lot of personal hours into this and would really like to see a resolution for you, if possible. Ultimately at some point I will have to draw the line, but I am happy to spend a little longer as I do think we are near to a resolution, unless something else pops out of the woodwork (such as the error above being more serious than just a warning that a limit was reached).
Best wishes,
Martyn
