UnOfficial BF2statistics Release Thread

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

Thread Status:
Not open for further replies.
  1. Wilson212

    Wilson212 Administrator Staff Member

    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 :p


    • * system/config/
      * system/config/config.php
      * system/logs/
      * system/logs/admin_event.log
      * 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. SharK

    SharK Member

    "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."
     
  3. Wilson212

    Wilson212 Administrator Staff Member

    Hmm, im not too familiar with umask() lol
     
  4. SharK

    SharK Member

    If no umask is the same writing
    mkdir($backupPath, 0777);
     
  5. Wilson212

    Wilson212 Administrator Staff Member

    Ok, these issues *should* be fixed with rev 17 now :)
     
  6. SharK

    SharK Member

    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!

    Wilson212, add folder "backups" please in ASP/system/database :D ;)
     
  7. Wilson212

    Wilson212 Administrator Staff Member

    so all is working now? :D
     
  8. Wilson212

    Wilson212 Administrator Staff Member

    Done in 19 :)

    I will have that flush() problem fixed in the next release :p
     
  9. SharK

    SharK Member

    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!
    Note2: password as "password" in config not work!

    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
     
  10. Wilson212

    Wilson212 Administrator Staff Member

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

    SharK Member

    yes! in shock :p
    Code:
    game-www:~# ls /www/ASP/system/database
    backups  driver.php  sql.dbdata.php  sql.dbschema.php  sql.dbupgrade.php
    
     
  12. Wilson212

    Wilson212 Administrator Staff Member

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

    SharK Member

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

    Wilson212 Administrator Staff Member

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

    SharK Member

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

    SharK Member

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

    Wilson212 Administrator Staff Member

    Good catch. i will work on fixing this
     
  18. SharK

    SharK Member

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

    Wilson212 Administrator Staff Member

    Well that is good at least :)
     
  20. grampsfl

    grampsfl New 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!
     
Thread Status:
Not open for further replies.

Share This Page