Welcome to Centmin Mod Community
Register Now

Matomo dashboard blank

Discussion in 'Other Web Apps usage' started by Max, Jul 2, 2018.

  1. Max

    Max Member

    67
    4
    8
    Feb 17, 2018
    Ratings:
    +6
    Local Time:
    8:34 PM
    Hello

    i update centmin 4 Weeks ago.
    But matomo works not correct.
    I login but the dashboard is allways blank.

    on ipad matomomobile workt
    on wp with piwik plugin stats works.
    but not on website dashboard.... all blank

    how can i see error logs php?
    any tipps how can i fix?

    thanks
    regards

    [​IMG]
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,880
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,434
    Local Time:
    6:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    matomo was working prior to 4 weeks ago though right ? have you updated matomo within the last 4 weeks too ?

    what desktop web browser you using and it's version number ? tried different web browsers on desktop ? chrome, edge, opera and IE11 ?

    Checking PHP-FPM etc logs



    You can check your Nginx, PHP-FPM, MariaDB MySQL error logs as well as others. You can find your Centmin Mod install/menu logs at FAQ 7 and server logs at FAQ 19 at Centmin Mod FAQ (most up to date info in FAQ so always read that first). Spoiler tag below has info too but may not be up to date.

    Some of Centmin Mod's installed software will have their own access and error logs which maybe useful for diagnosing errors or give info, notes, or warning notices.

    Note: There's no support provided by me for diagnosing such errors which may occur for various reasons including misconfiguration of installed php/mysql scripts or applications.

    In SSH2 telnet you can use tail command to view the last X number of lines in the file.

    For example for viewing last 10 lines in the file for:

    For Nginx access and error logs:
    Code:
      tail -10 /usr/local/nginx/logs/access.log
      tail -10 /usr/local/nginx/logs/error.log
    
    For specific domainname.com access and error log:
    Code:
      tail -10 /home/nginx/domains/domainname.com/log/access.log
      tail -10 /home/nginx/domains/domainname.com/log/error.log
    
    For other system error logs located at /var/log:

    list /var/log files in ascending time order so the most recently modified files are at the bottom
    Code:
      ls -lhrt /var/log
    
    Code:
    total 2.7M
    -rw------- 1 root  root    0 Aug 29 15:33 tallylog
    -rw------- 1 root  root    0 Aug 29 15:33 spooler
    drwx------ 3 root  root 4.0K Aug 29 15:35 samba
    drwxr-xr-x 2 root  root 4.0K Aug 29 15:35 mail
    -rw-r--r-- 1 root  500     0 Oct  8 18:13 dmesg.old
    -rw------- 1 root  500     0 Oct  8 18:13 boot.log
    -rw-r--r-- 1 root  500     0 Oct  8 18:14 dmesg
    drwx------ 2 root  root 4.0K Oct  8 18:14 httpd
    drwxr-xr-x 2 root  root 4.0K Oct  8 19:08 php-fpm
    -rw-rw---- 1 mysql root 2.3K Oct  9 12:38 mysqld.log
    -rw------- 1 root  root 9.2K Oct 26 10:48 yum.log
    -rw------- 1 root  utmp  94K Nov  7 22:59 btmp
    drwxr-xr-x 2 root  root 4.0K Nov  8 00:00 sa
    -rw------- 1 root  root 269K Nov  8 21:39 messages
    -rw------- 1 root  root 110K Nov  8 23:08 secure
    -rw-rw-r-- 1 root  utmp  43K Nov  8 23:08 wtmp
    -rw-r--r-- 1 root  root 144K Nov  8 23:08 lastlog
    -rw------- 1 root  root  69K Nov  8 23:08 lfd.log
    -rw------- 1 root  root 332K Nov  8 23:08 maillog
    -rw------- 1 root  500  1.6M Nov  8 23:10 cron
    
    For PHP-FPM error log:
    Code:
      tail -10 /var/log/php-fpm/www-error.log
    
    and/or
    Code:
      /var/log/php-fpm/www-php.error.log
    
    For MySQL / MariaDB error log:
    Code:
      tail -10 /var/log/mysqld.log
    
    For CSF firewall LFD log:
    Code:
      tail -10 /var/log/lfd.log
    
    For Mail log:
    Code:
      tail -10 /var/log/maillog
    
    For Cron job logs:
    Code:
      tail -10 /var/log/cron
    

    How to edit php.ini and php-fpm configuration files ?



    Centmin Mod install created command short cuts outlined here to allow you to quickly edit your /usr/local/lib/php.ini file and your /usr/local/etc/php-fpm.conf file. Full list of command shortcuts below:
    • Edit php.ini = phpedit ( /usr/local/lib/php.ini )
    • Edit my.cnf = mycnf ( /etc/my.cnf )
    • Edit php-fpm.conf = fpmconf ( /usr/local/etc/php-fpm.conf )
    • Edit nginx.conf = nginxconf ( /usr/local/nginx/conf/nginx.conf )
    • Edit (nginx) virtual.conf = vhostconf - only edits /usr/local/nginx/conf/conf.d/virtual.conf not the additional vhost domain.com.conf files added later
    • Edit (nginx) php.conf = phpinc ( /usr/local/nginx/conf/php.conf )
    • Edit (nginx) drop.conf = dropinc ( /usr/local/nginx/conf/drop.conf )
    • Edit (nginx) staticfiles.conf = statfilesinc ( /usr/local/nginx/conf/staticfiles.conf )
    • nginx stop/start/restart = ngxstop/ngxstart/ngxrestart
    • php-fpm stop/start/restart = fpmstop/fpmstart/fpmrestart
    • mysql stop/start/restart = mysqlstop/mysqlstart/mysqlrestart
    • nginx + php-fpm stop/start/restart = npstop/npstart/nprestart
    • memcached stop/start/restart =memcachedstop/memcachedstart/memcachedrestart
    • csf stop/start/restart = csfstop/csfstart/csfrestart
     
  3. Max

    Max Member

    67
    4
    8
    Feb 17, 2018
    Ratings:
    +6
    Local Time:
    8:34 PM
    Hello

    Code:
    2018/07/03 06:43:31 [error] 3059#3059: *11 access forbidden by rule, client: 109.41.67.215, server: i.icoore.com, request: "GET /plugins/CoreHome/angularjs/notification/notification.directive.html?cb=0614e6e142fc3e1305ddad0b2cffd946 HTTP/2.0", host: "i.icoore.com", referrer: "https://i.icoore.com/index.php?module=MultiSites&action=index&idSite=1&period=day&date=yesterday"
    
    How can i access with my ISP IP

    Thanks

    regards
     
  4. eva2000

    eva2000 Administrator Staff Member

    36,880
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,434
    Local Time:
    6:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    If on Centmin Mod 123.09beta01, you may have ran into the new tools/autoprotect.sh cronjob feature outlined at Beta Branch - autoprotect.sh - apache .htaccess check & migration to nginx deny all | Centmin Mod Community You uploaded scripts may have .htaccess deny from all type files in their directories which may need bypassing autoprotect. It's a security feature that no other nginx based stack has as far as I know :)

    So instead, all .htaccess 'deny from all' detected directories now get auto generated Nginx equivalent location match and deny all setups except if you want to manually bypass the directory from auto protection via a .autoprotect-bypass file - details below here.

    You can read a few threads below on how autoprotect.sh may have caught some folks web apps falsely and the workarounds or improvements made to autoprotect.sh with the help of users feedback and troubleshooting.
     
  5. Max

    Max Member

    67
    4
    8
    Feb 17, 2018
    Ratings:
    +6
    Local Time:
    8:34 PM
    Hello
    i run /usr/local/src/centminmod/tools/autoprotect.sh

    autoprotect*.conf
    Code:
    # /home/nginx/domains/i.icoore.com/public/vendor/tecnickcom/tcpdf/tools
    location ~* ^/vendor/tecnickcom/tcpdf/tools/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/vendor
    location ~* ^/vendor/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/config
    location ~* ^/config/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/misc/user
    location ~* ^/misc/user/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/libs
    location ~* ^/libs/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/plugins
    location ~* ^/plugins/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/lang
    location ~* ^/lang/ { allow 127.0.0.1; deny all; }
    # /home/nginx/domains/i.icoore.com/public/core
    location ~* ^/core/ { allow 127.0.0.1; deny all; }
    
    allways
    Code:
    2018/07/03 09:21:02 [error] 18061#18061: *1443 access forbidden by rule, client: 109.41.67.215, server: i.icoore.com, request: "GET /plugins/CoreHome/angularjs/notification/notification.directive.html?cb=0614e6e142fc3e1305ddad0b2cffd946 HTTP/2.0", host: "i.icoore.com", referrer: "https://i.icoore.com/index.php?module=MultiSites&action=index&idSite=1&period=day&date=yesterday"
    
    my isp ip 109.41.67.215

    thanks
    regards
     
  6. eva2000

    eva2000 Administrator Staff Member

    36,880
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,434
    Local Time:
    6:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    if you want to manually bypass the directory from auto protection via a .autoprotect-bypass file - details below here.
     
  7. wmtech

    wmtech Member

    71
    19
    8
    Jul 22, 2017
    Ratings:
    +45
    Local Time:
    9:34 PM
    Matomo needs the following .autoprotect-bypass files:
    • libs/.autoprotect-bypass
    • misc/user/.autoprotect-bypass
    • plugins/.autoprotect-bypass
    • vendor/.autoprotect-bypass
    After creating them, you have to disregard the file integrity check warning in Matomo's interface (do not delete them as instructed).
     
    • Agree Agree x 1
  8. Max

    Max Member

    67
    4
    8
    Feb 17, 2018
    Ratings:
    +6
    Local Time:
    8:34 PM
    Where to put the file .autoprotect-bypass ?
     
  9. Meirami

    Meirami Member

    118
    13
    18
    Dec 21, 2017
    Ratings:
    +37
    Local Time:
    10:34 PM
    Create a .autoprotect-bypass file within the directory you want to bypass and exclude from autoprotect.sh.
     
    • Agree Agree x 1
  10. eva2000

    eva2000 Administrator Staff Member

    36,880
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,434
    Local Time:
    6:34 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
..