Discussion in 'BF2Statistics discussion' started by MrNiceGuy, Feb 7, 2012.

Not open for further replies.

Thank you for your time SharK

Regarding all 3 of your last posts, I forgot to mention that on a linux system, the following paths and files need to be writable by the web server

• * system/config/
* system/config/config.php
* system/logs/
* system/logs/php_errors.log
* system/logs/stats_debug.log
* system/logs/validate_awards.log
* system/logs/validate_ranks.log
* system/snapshots/temp/
* system/snapshots/processed/

Everything else except for the ob_flush() error looks fine (i will have that fixed here in a few hours)

2. ### SharKMember

"Backup System Database
There was an error clearing the system database. Please refresh the page and try again."
- problem somewhere in Backupdb.php

edit Backupdb.php line 45
if( !mkdir($backupPath, 0666) ) replaced$oldumask = umask(0);
mkdir($backupPath, 0777); umask($oldumask);

faced with this problem
"Backup System Database
Unable to create new backup path (/www/ASP/system/database/backups/bak_20120417_1421). Please set the proper permissions to allow the system to create new directories."

Hmm, im not too familiar with umask() lol

4. ### SharKMember

If no umask is the same writing
mkdir(\$backupPath, 0777);

Ok, these issues *should* be fixed with rev 17 now

6. ### SharKMember

Rights for ASP v1.5.0 rev17 for Linux
chmod 777 ASP/
chown www-data:www-data -Rv ASP/
chmod -R 777 ASP/system/config/
chown www-data -Rv ASP/system/config/
chmod -R 777 ASP/system/logs/
chown www-data -Rv ASP/system/logs/
chmod -R 777 ASP/system/snapshots/
chown www-data -Rv ASP/system/snapshots/
chmod 777 ASP/system/database/backups/
chown www-data -Rv ASP/system/database/backups/

Note: despite the fact that the test for Linux on the Backup writes Fail, backup is created!

so all is working now?

Done in 19

I will have that flush() problem fixed in the next release

9. ### SharKMember

Rights for ASP v1.5.0 rev19 for Linux
Code:
chmod 777 ASP
chmod 777 ASP/system/database/backups
chmod -R 777 ASP/system/config
chmod -R 777 ASP/system/logs
chmod -R 777 ASP/system/snapshots
chown www-data:www-data -Rv ASP
Note: despite the fact that the test for Linux on the Backup writes Fail, backup is created!

LOGS:
php_error.log
-none- ^___^v

stats_debug.log
Code:
2012-04-17 17:27:42 -- INFO: SNAPSHOT Data File Processed: TST20295779354f8da80e3e5b3-test_map_20060903_0629.txt in 0.056 seconds, using 68 database queries
2012-04-17 17:30:59 -- INFO: SNAPSHOT Data File Processed: TST5853713524f8da8d3174b3-test_map_20060903_0629.txt in 0.076 seconds, using 68 database queries
http://78.81.40.211/img/redb1.jpg - Restore Database (1)

http://78.81.40.211/img/redb2.jpg - Restore Database (2)

http://78.81.40.211/img/test.jpg - Test System

Thats intresting how you cant get that to pass lol. The path you have made is the real path correct?

11. ### SharKMember

yes! in shock
Code:
game-www:~# ls /www/ASP/system/database


Try using the full path from the drive ( C:\path\to\www\ASP\system\database\ )

13. ### SharKMember

it is certainly cool, but Linux is no such :-#
http://78.81.40.211/img/linux.jpg - screenshots

If you remove the trailing "/" slash from the config, does it work then?

15. ### SharKMember

working but still the fail \^_^/
> Checking Database Backup Storage Path...
- Backup Path Writable (www/ASP/system/database/backups): Fail

16. ### SharKMember

note: Backup Path Writable (www/ASP/system/database/backups) -
for linux it should be "Backup Path Writable (/www/ASP/system/database/backups)"

Good catch. i will work on fixing this

18. ### SharKMember

despite the fact that the backup fail, he sees and creates it in there!

Well that is good at least

20. ### grampsflNew Member

Wilson212.

I have been using the older mod since 2010. I had multiple servers running various mods. i.e. AIX, (standard and TNG maps) NAW maps. I did a lot of work on the constants.py file now up to 84,892 size. If you would like to look at it I can store it somewhere that you can pullit from!

I have been also comparing files from 1.42 to 1.51.
I only know a little about the coding used although I did see the format changes. Wasn't sure what really had changed and am a bit nervous a but upgrading to 1.51. I have data on server from 2010 that I am clumsy at best understanding.
What do you think changes are that the upgrade will go smoothly or is there somewhere I should look for more info on backup and saving the SQL data.

Also my gameserver is running on Linux which did cause quite a bit of grief after switching from windows.

my stats server http://109.232.225.210/.

Thanks for your effort on the site!