Ispconfig Stats Not Working

Discussion in 'ISPConfig 3 Priority Support' started by senormedia, Jan 15, 2024.

  1. senormedia

    senormedia Member HowtoForge Supporter

    none of the stats work for my ispconfig, is it the nginx, i check the url and the file goaindex.html does not exist, i also tried with awstats but that html file does not exist or get created awsindex.html.

    I bought the ispconfig manual but there is nothing there as well on stats

    its a subdomain vhost, i tried this as well
    location /stats/ {
    index index.html index.php;
    auth_basic "Members Only";
    auth_basic_user_file /var/www/clients/client4/web13/web/folder/stats/.htpasswd_stats;
    add_header Content-Security-Policy "default-src * 'self' 'unsafe-inline' 'unsafe-eval' data:;";
    }
    that didnt work so i tried this instead
    location /stats {
    root /var/www/clients/client4/web13/web/folder/stats;
    try_files $uri $uri/ /stats/index.php;
    }
     

    Attached Files:

    MiZsolt likes this.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Statistics are generated nightly, you must wait 24 hours until they show up and the website must receive traffic during that time. If you change to a different stats program, you must wait another 24 hours, so changing back and force between programs will further delay stats generation.
     
  3. senormedia

    senormedia Member HowtoForge Supporter

    ok ill wait 24 hours for awstats but goaccess has been set for 3 days already and nothing worked
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    The website receives traffic, and you can see that traffic in the access.log file in the/var/www/domain.tld/log/ folder?
     
  5. senormedia

    senormedia Member HowtoForge Supporter

    i waited 24 hours but still getting error, the log has this
    stats/awsindex.html" failed (2: No such file or directory)
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Please see post #4 and try to answer the question I asked you there.
     
  7. senormedia

    senormedia Member HowtoForge Supporter

    yes it receive traffic

    for the stats it does show the pages i visit on the access.log
    18/Jan/2024:15:29:00 -0600] "GET /stats/index.php HTTP/2.0" 200
    18/Jan/2024:15:29:00 -0600] "GET /stats/awsindex.html HTTP/2.0" 404

    for error log when i visit the stats i get this
    stats/awsindex.html" failed (2: No such file or directory),
     
    Last edited: Jan 19, 2024
  8. senormedia

    senormedia Member HowtoForge Supporter

    so any thoughts what it can be it seems like the goaccess.html is missing as well as the awstats.html

    i checked goaccess is installed
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    Please run the following commands as root user and post the result:

    ls -la /var/www/domain.tld/log/
    ls -la /var/www/domain.tld/web/stats/
    crontab -l

    replace domain.tld with the domain name of the affected website.
     
  10. senormedia

    senormedia Member HowtoForge Supporter

    this is what i get

    total 556
    drwxr-xr-x 3 root root 4096 Jan 27 23:07 .
    drwxr-xr-x 16 root root 4096 Dec 20 18:17 ..
    -rw-r--r-- 1 root root 15870 Jan 17 18:02 20240116-access.log.gz
    -rw-r--r-- 1 root root 10453 Jan 18 18:02 20240117-access.log.gz
    -rw-r--r-- 1 root root 18323 Jan 19 18:02 20240118-access.log.gz
    -rw-r--r-- 1 root root 23956 Jan 20 18:03 20240119-access.log.gz
    -rw-r--r-- 1 root root 20566 Jan 21 18:02 20240120-access.log.gz
    -rw-r--r-- 1 root root 24362 Jan 22 18:02 20240121-access.log.gz
    -rw-r--r-- 1 root root 24150 Jan 23 18:02 20240122-access.log.gz
    -rw-r--r-- 1 root root 18465 Jan 24 18:02 20240123-access.log.gz
    -rw-r--r-- 1 root root 20122 Jan 25 18:02 20240124-access.log.gz
    -rw-r--r-- 1 root root 36714 Jan 26 18:02 20240125-access.log.gz
    -rw-r--r-- 1 root root 14260 Jan 27 18:02 20240126-access.log.gz
    -rw-r--r-- 1 www-data root 237096 Jan 27 23:13 access.log
    -rw-r--r-- 1 root root 901 Jan 27 23:12 error.log
    -rw-r--r-- 1 root root 252 Jan 18 18:02 error.log.10.gz
    -rw-r--r-- 1 root root 283 Jan 17 18:02 error.log.11.gz
    -rw-r--r-- 1 root root 378 Jan 27 18:02 error.log.1.gz
    -rw-r--r-- 1 root root 1569 Jan 26 18:02 error.log.2.gz
    -rw-r--r-- 1 root root 228 Jan 25 18:02 error.log.3.gz
    -rw-r--r-- 1 root root 30 Jan 24 18:02 error.log.4.gz
    -rw-r--r-- 1 root root 1533 Jan 23 18:02 error.log.5.gz
    -rw-r--r-- 1 root root 215 Jan 22 18:02 error.log.6.gz
    -rw-r--r-- 1 root root 302 Jan 21 18:02 error.log.7.gz
    -rw-r--r-- 1 root root 227 Jan 20 18:03 error.log.8.gz
    -rw-r--r-- 1 root root 197 Jan 19 18:02 error.log.9.gz
    -rw-r--r-- 1 root root 20925 Jan 27 23:07 goaccess.conf
    drwxr-xr-x 2 root root 4096 Jan 13 03:13 goaccess_db


    total 16
    drwxr-xr-x 2 root root 4096 Jan 27 23:07 .
    drwxr-x--x 10 web10 client3 4096 Jan 26 18:56 ..
    -rwxr-xr-x 1 root root 124 Jan 27 23:07 .htpasswd_stats
    -rw-r--r-- 1 root root 2536 Jan 27 23:07 index.php

    crontab -l
    51 23 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
    * * * * * /usr/local/ispconfig/server/server.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    * * * * * /usr/local/ispconfig/server/cron.sh 2>&1 | while read line; do echo `/bin/date` "$line" >> /var/log/ispconfig/cron.log; done
    0 0 * * * /usr/local/ispconfig/server/scripts/create_daily_nginx_access_logs.sh &> /dev/null
     
  11. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Looks like the stats folder is owned by root. It should be web10 client3.
     
  12. variable99

    variable99 Member HowtoForge Supporter

    I have slightly different problem:
    • Using GoAccess as stats parser.
    • Each day something happens with admin password and it stops working.
    • Once I change it - issue is gone and I can login to GoAccess.
    I created dirty hack to address this issue - each day I re-generate passwords for all GoAccess accounts.
     
  13. till

    till Super Moderator Staff Member ISPConfig Developer

    @variable99 Try to find out at which exact time the .htpasswd file for goaccess stats gets changed. Please make a new thread for this, as this thread is about a different topic that's not related to your problem.
     
  14. till

    till Super Moderator Staff Member ISPConfig Developer

    @variable99 Just a guess regarding your problem: are you maybe altering the .htpassd file for statistics manually somehow? Because the file is managed by ISPConfig, ISPConfig will reset it to the username 'admin' and the statistics password you set in ISPConfig GUI. So in case you manually edited the files, do not touch them and set the password using ISPConfig.
     
    MiZsolt likes this.

Share This Page