• Resolved xnosek00

    (@xnosek00)


    Hi,

    I found, that my server disk is full – 5GB. WP statistics is downloading GeoLite2-Country to /tmp for each page load.

    ls -l /tmp/
    total 6944
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:29 GeoLite2-Country.tmp
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:30 GeoLite2-Country1.tmp
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:30 GeoLite2-Country2.tmp
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:31 GeoLite2-Country3.tmp
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:32 GeoLite2-Country4.tmp
    -rw-r--r-- 1 www-data www-data 1182007 Nov 23 17:33 GeoLite2-Country5.tmp
    root@server:/var/www/www/wordpress/wp-content/uploads/wp-statistics# ls -l
    total 2308
    -rw-r--r-- 1 www-data www-data 2361227 Nov 15 01:09 GeoLite2-Country.mmdb

    WP Statistics Version: 8.3.1

    I don’t know, why is GeoLite2 downloading for each page load.

    I have to disable WP Statistics because of big traffic.

    https://www.ads-software.com/plugins/wp-statistics/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter xnosek00

    (@xnosek00)

    Version Info

    WP Statistics Version: 8.3.1
    The WP Statistics version you are running.
    PHP Version: 5.5.9-1ubuntu4
    The PHP version you are running.
    PHP Safe Mode: No
    Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode.
    jQuery Version: 1.10.2
    The jQuery version you are running.
    cURL Version: 7.35.0
    The PHP cURL Extension version you are running. cURL is required for the GeoIP code, if it is not installed GeoIP will be disabled.
    BC Math: Installed
    If the PHP BC Math Extension is installed. BC Math is no longer required for the GeoIP code and is listed here only for historical reasons.

    File Info

    GeoIP Database: 2.25 MB, created on 15.11.2014 @ 1.09
    The file size and date of the GeoIP database.
    browscap.ini File: browscap.ini file does not exist.
    The file size and date of the browscap.ini file.
    browscap Cache File: browscap cache file does not exist.
    The file size and date of the browscap cache file.

    Thread Starter xnosek00

    (@xnosek00)

    Version Info

    WP Statistics Version: 8.3.1
    The WP Statistics version you are running.
    PHP Version: 5.5.9-1ubuntu4
    The PHP version you are running.
    PHP Safe Mode: No
    Is PHP Safe Mode active. The GeoIP code is not supported in Safe Mode.
    jQuery Version: 1.10.2
    The jQuery version you are running.
    cURL Version: 7.35.0
    The PHP cURL Extension version you are running. cURL is required for the GeoIP code, if it is not installed GeoIP will be disabled.
    BC Math: Installed
    If the PHP BC Math Extension is installed. BC Math is no longer required for the GeoIP code and is listed here only for historical reasons.

    File Info

    GeoIP Database: 2.25 MB, created on 15.11.2014 @ 1.09
    The file size and date of the GeoIP database.
    browscap.ini File: browscap.ini file does not exist.
    The file size and date of the browscap.ini file.
    browscap Cache File: browscap cache file does not exist.
    The file size and date of the browscap cache file.

    Plugin Contributor Greg Ross

    (@gregross)

    Check the permissions on your wordpress upload directory, we create a directory (wp-statistics) there which we need write access to.

    Plugin Contributor Greg Ross

    (@gregross)

    Also check to make sure you have delete permissions on the wordpress temporary directory.

    Thread Starter xnosek00

    (@xnosek00)

    Permissions on wordpress upload directory tested. Full access for wp-statistics and the same problem.

    root@server:/var/www/www/wordpress# ls -l wp-content/uploads/
    
    drwxrwxrwx  2 www-data www-data       4096 Nov 23 17:28 wp-statistics

    Plugin Contributor Greg Ross

    (@gregross)

    What are the contents of the uploads/wp-statistics directory?

    Thread Starter xnosek00

    (@xnosek00)

    root@server:/var/www/www/wordpress/wp-content/uploads# ls -l
    drwxrwxrwx  2 www-data www-data       4096 Nov 23 17:28 wp-statistics
    root@server:/var/www/www/wordpress/wp-content/uploads# ls -l wp-statistics/
    total 2308
    -rw-rw-rw- 1 www-data www-data 2361227 Nov 15 01:09 GeoLite2-Country.mmdb
    Thread Starter xnosek00

    (@xnosek00)

    permissions of the wordpress tmp directory tested:

    root@server:~# ls -l /
    
    drwxrwxrwt   5 root root 258048 Nov 29 16:30 tmp

    php.ini says:
    ; Directory where the temporary files should be placed.
    ; Defaults to the system default (see sys_get_temp_dir)
    my system default is /tmp ::

    echo sys_get_temp_dir(); says: “/tmp”

    permissions and rights looks like ok.

    Plugin Contributor Greg Ross

    (@gregross)

    I noticed on your original post that the .tmp files are being created with “-rw-r–r–” permissions, similarly the .mmdb file in the uploads directory (which hasn’t been written to since the 15th in comparison to the temp files being the 23).

    Can you verify which user your web server is running as? If it’s not www-data it won’t have permissions to write to the .mmdb file.

    A quick test would be to rename the .mmdb file and see if a new .mmdb is created.

    You can also go to Statistics->Settings->Notifications and turn on the report for GeoIP updates. The report should have whatever error it encountered in it.

    Plugin Contributor Greg Ross

    (@gregross)

    Closing due to inactivity.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘WP is downloading GeoLite2-Contry for each page load – full disk’ is closed to new replies.