glpi-project / glpi

GLPI is a Free Asset and IT Management Software package, Data center management, ITIL Service Desk, licenses tracking and software auditing.
https://glpi-project.org
GNU General Public License v3.0
4.29k stars 1.29k forks source link

No data on tickets-related dashboards #8223

Closed patriciocs1979 closed 3 years ago

patriciocs1979 commented 4 years ago

Describe the bug

No information in displayed on ticket related dashboards (p.e. number of tickets by month, Tickets status by month)

Page(s) URL

/front/central.php

To reproduce

Steps to reproduce the behavior:

  1. Go to Home
  2. Add dashboards for Assitance->number of tickets by month, and or Tickets status by month. Any type of graph

Expected behavior

A dashboard showing the data

Logs

Find them in *-error.log files under glpi/files/_log/

php-errors.log sql-errors.log mail-error.log

Screenshots

If applicable, add screenshots to help explain your problem. image

Your GLPI setup (you can find it in Setup > General menu, System tab)

GLPI 9.5.2 ( => /usr/share/glpi)
Installation mode: RPM

Server

Operating system: Linux vlnxclstg01ap002 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
PHP 7.4.10 apache2handler (Core, PDO, Phar, Reflection, SPL, SimpleXML, Zend OPcache, apache2handler, apcu, bcmath, bz2,
    calendar, ctype, curl, date, dom, exif, fileinfo, filter, ftp, gd, gettext, hash, iconv, imap, intl, json, ldap, libxml,
    mbstring, mysqli, mysqlnd, openssl, pcre, pdo_mysql, pdo_sqlite, posix, session, shmop, snmp, soap, sockets, sodium, sqlite3,
    standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, zlib)
Setup: max_execution_time="80" memory_limit="512M" post_max_size="64M" safe_mode="" session.save_handler="files"
    upload_max_filesize="128M" 
Software: Apache/2.4.46 (codeit) OpenSSL/1.1.1g PHP/7.4.10 ()
    Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36
Server Software: MariaDB Server
    Server Version: 10.4.14-MariaDB
    Server SQL Mode: 
    Parameters: glpi@127.0.0.1/glpi
    Host info: 127.0.0.1 via TCP/IP

PHP version is at least 7.2.0 - Perfect!PHP version is at least 7.2.0 - Perfect!
Sessions support is available - Perfect!Sessions support is available - Perfect!
Allocated memory > 64 Mio - Perfect!Allocated memory > 64 Mio - Perfect!
mysqli extension is installedmysqli extension is installed
ctype extension is installedctype extension is installed
fileinfo extension is installedfileinfo extension is installed
json extension is installedjson extension is installed
mbstring extension is installedmbstring extension is installed
iconv extension is installediconv extension is installed
zlib extension is installedzlib extension is installed
curl extension is installedcurl extension is installed
gd extension is installedgd extension is installed
simplexml extension is installedsimplexml extension is installed
intl extension is installedintl extension is installed
ldap extension is installedldap extension is installed
apcu extension is installedapcu extension is installed
Zend OPcache extension is installedZend OPcache extension is installed
xmlrpc extension is installedxmlrpc extension is installed
CAS extension is not presentCAS extension is not present
exif extension is installedexif extension is installed
zip extension is installedzip extension is installed
bz2 extension is installedbz2 extension is installed
sodium extension is installedsodium extension is installed
Database version seems correct (10.4.14) - Perfect!Database version seems correct (10.4.14) - Perfect!
Timezones seems loaded in databaseTimezones seems loaded in database
The log file has been created successfully.The log file has been created successfully.
Write access to /etc/glpi has been validated.Write access to /etc/glpi has been validated.
Write access to /var/lib/glpi/files has been validated.
Write access to /var/lib/glpi/files has been validated.
Write access to /var/lib/glpi/files/_dumps has been validated.
Write access to /var/lib/glpi/files/_dumps has been validated.
Write access to /var/lib/glpi/files/_sessions has been validated.
Write access to /var/lib/glpi/files/_sessions has been validated.
Write access to /var/lib/glpi/files/_cron has been validated.
Write access to /var/lib/glpi/files/_cron has been validated.
Write access to /var/lib/glpi/files/_graphs has been validated.
Write access to /var/lib/glpi/files/_graphs has been validated.
Write access to /var/lib/glpi/files/_lock has been validated.
Write access to /var/lib/glpi/files/_lock has been validated.
Write access to /var/lib/glpi/files/_plugins has been validated.
Write access to /var/lib/glpi/files/_plugins has been validated.
Write access to /var/lib/glpi/files/_tmp has been validated.
Write access to /var/lib/glpi/files/_tmp has been validated.
Write access to /var/lib/glpi/files/_cache has been validated.
Write access to /var/lib/glpi/files/_cache has been validated.
Write access to /var/lib/glpi/files/_rss has been validated.
Write access to /var/lib/glpi/files/_rss has been validated.
Write access to /var/lib/glpi/files/_uploads has been validated.
Write access to /var/lib/glpi/files/_uploads has been validated.
Write access to /var/lib/glpi/files/_pictures has been validated.
Write access to /var/lib/glpi/files/_pictures has been validated.
Write access to /usr/share/glpi/marketplace has been validated.
Write access to /usr/share/glpi/marketplace has been validated.
For security reasons, SELinux mode should be Enforcing.For security reasons, SELinux mode should be Enforcing.

GLPI constants

GLPI_ROOT: /usr/share/glpi
GLPI_CONFIG_DIR: /etc/glpi
GLPI_VAR_DIR: /var/lib/glpi/files
GLPI_LOG_DIR: /var/log/glpi
GLPI_HTMLAWED: /usr/share/php/htmLawed/htmLawed.php
GLPI_FONT_FREESANS: /usr/share/fonts/gnu-free/FreeSans.ttf
GLPI_SYSTEM_CRON: 1
GLPI_INSTALL_MODE: RPM
GLPI_MARKETPLACE_DIR: /usr/share/glpi/marketplace
GLPI_USE_CSRF_CHECK: 1
GLPI_CSRF_EXPIRES: 7200
GLPI_CSRF_MAX_TOKENS: 100
GLPI_TELEMETRY_URI: https://telemetry.glpi-project.org
GLPI_NETWORK_MAIL: glpi@teclib.com
GLPI_NETWORK_SERVICES: https://services.glpi-network.com
GLPI_MARKETPLACE_PRERELEASES: 
GLPI_USER_AGENT_EXTRA_COMMENTS: 
GLPI_AJAX_DASHBOARD: 1
GLPI_CALDAV_IMPORT_STATE: 0
GLPI_DEMO_MODE: 0
GLPI_FORCE_EMPTY_SQL_MODE: 1
GLPI_DOC_DIR: /var/lib/glpi/files
GLPI_CACHE_DIR: /var/lib/glpi/files/_cache
GLPI_CRON_DIR: /var/lib/glpi/files/_cron
GLPI_DUMP_DIR: /var/lib/glpi/files/_dumps
GLPI_GRAPH_DIR: /var/lib/glpi/files/_graphs
GLPI_LOCAL_I18N_DIR: /var/lib/glpi/files/_locales
GLPI_LOCK_DIR: /var/lib/glpi/files/_lock
GLPI_PICTURE_DIR: /var/lib/glpi/files/_pictures
GLPI_PLUGIN_DOC_DIR: /var/lib/glpi/files/_plugins
GLPI_RSS_DIR: /var/lib/glpi/files/_rss
GLPI_SESSION_DIR: /var/lib/glpi/files/_sessions
GLPI_TMP_DIR: /var/lib/glpi/files/_tmp
GLPI_UPLOAD_DIR: /var/lib/glpi/files/_uploads
GLPI_NETWORK_REGISTRATION_API_URL: https://services.glpi-network.com/api/registration/
GLPI_MARKETPLACE_PLUGINS_API_URI: https://services.glpi-network.com/api/glpi-plugins/
GLPI_I18N_DIR: /usr/share/glpi/locales
GLPI_VERSION: 9.5.2
GLPI_SCHEMA_VERSION: 9.5.2
GLPI_MIN_PHP: 7.2.0
GLPI_YEAR: 2020

Libraries

htmlawed/htmlawed version 1.2.5 in (/usr/share/glpi/vendor/htmlawed/htmlawed)
phpmailer/phpmailer version 6.1.6 in (/usr/share/glpi/vendor/phpmailer/phpmailer/src)
simplepie/simplepie version 1.5.5 in (/usr/share/glpi/vendor/simplepie/simplepie/library)
tecnickcom/tcpdf version 6.3.5 in (/usr/share/glpi/vendor/tecnickcom/tcpdf)
michelf/php-markdown in (/usr/share/glpi/vendor/michelf/php-markdown/Michelf)
true/punycode in (/usr/share/glpi/vendor/true/punycode/src)
iamcal/lib_autolink in (/usr/share/glpi/vendor/iamcal/lib_autolink)
sabre/dav in (/usr/share/glpi/vendor/sabre/dav/lib/DAV)
sabre/http in (/usr/share/glpi/vendor/sabre/http/lib)
sabre/uri in (/usr/share/glpi/vendor/sabre/uri/lib)
sabre/vobject in (/usr/share/glpi/vendor/sabre/vobject/lib)
laminas/laminas-cache in (/usr/share/glpi/vendor/laminas/laminas-cache/src)
laminas/laminas-i18n in (/usr/share/glpi/vendor/laminas/laminas-i18n/src)
laminas/laminas-serializer in (/usr/share/glpi/vendor/laminas/laminas-serializer/src)
monolog/monolog in (/usr/share/glpi/vendor/monolog/monolog/src/Monolog)
sebastian/diff in (/usr/share/glpi/vendor/sebastian/diff/src)
elvanto/litemoji in (/usr/share/glpi/vendor/elvanto/litemoji/src)
symfony/console in (/usr/share/glpi/vendor/symfony/console)
scssphp/scssphp in (/usr/share/glpi/vendor/scssphp/scssphp/src)
laminas/laminas-mail in (/usr/share/glpi/vendor/laminas/laminas-mail/src/Protocol)
laminas/laminas-mime in (/usr/share/glpi/vendor/laminas/laminas-mime/src)
rlanvin/php-rrule in (/usr/share/glpi/vendor/rlanvin/php-rrule/src)
blueimp/jquery-file-upload in (/usr/share/glpi/vendor/blueimp/jquery-file-upload/server/php)
ramsey/uuid in (/usr/share/glpi/vendor/ramsey/uuid/src)
psr/log in (/usr/share/glpi/vendor/psr/log/Psr/Log)
psr/simple-cache in (/usr/share/glpi/vendor/psr/simple-cache/src)
mexitek/phpcolors in (/usr/share/glpi/vendor/mexitek/phpcolors/src/Mexitek/PHPColors)
guzzlehttp/guzzle in (/usr/share/glpi/vendor/guzzlehttp/guzzle/src)
guzzlehttp/psr7 in (/usr/share/glpi/vendor/guzzlehttp/psr7/src)
wapmorgan/unified-archive in (/usr/share/glpi/vendor/wapmorgan/unified-archive/src)
paragonie/sodium_compat in (/usr/share/glpi/vendor/paragonie/sodium_compat/src)

LDAP directories

Server: 'xxxxx', Port: '389', BaseDN: 'OU=CL,OU=SouthAmerica,OU=BV,DC=laz,DC=xxx,DC=corp',
        Connection filter: '(&(objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))', RootDN:
        'LAZ\s-xxxxx', Use TLS: none
Server: 'ldap-ro.cxxxxxxx.com', Port: '389', BaseDN: 'ou=people,dc=xxxxx,dc=com', Connection filter:
        '(&(uid=<userid>)(nsroleDN=cn=*,ou=<app>,ou=applications,dc=xxxxx,dc=com))', RootDN: 'xxxx', Use TLS:
        none

SQL replicas

Not active

Notifications

Way of sending emails: SMTP (helpdesk@10.29.18.51)

Mails receivers

Name: 'helpdesk@bureauveritas.com' Active: No
    Server: '{mail.xxxx.cl:110/pop/novalidate-cert/tls}' Login: 'xxxx' Password: Yes
Name: 'xxxx@xxxxxl' Active: Yes
    Server: '{10.29.18.51/pop/notls}' Login: 'xxxx' Password: Yes

Plugins list

    actualtime           Name: ActualTime                     Version: 1.4.0      State: Enabled
    fields               Name: Additionnal fields             Version: 1.12.0     State: Enabled
    advancedplanning     Name: advancedplanning               Version: 0.2.0      State: Enabled
    news                 Name: Alerts                         Version: 1.7.0      State: Enabled
    childticketmanager   Name: Child ticket manager           Version: 2.1.3      State: Enabled
    datainjection        Name: Data injection                 Version: 2.8.0      State: Enabled
    databases            Name: Databases                      Version: 2.3.0      State: Enabled
    archimap             Name: Diagrams                       Version: 2.1.3      State: Installed / not activated
    escalade             Name: Escalation                     Version: 2.6.0      State: Enabled
    formcreator          Name: Form Creator                   Version: 2.10.3     State: Enabled
    sccm                 Name: Interface - SCCM               Version: 2.2.2      State: Not installed
    uninstall            Name: Item's Lifecycle (uninstall)   Version: 2.7.0      State: Not installed
    itilcategorygroups   Name: ItilCategory Groups            Version: 2.4.0      State: Enabled
    jsaddons             Name: JS Addons                      Version: 1.0.0      State: Installed / not activated
    archires             Name: Network Architectures          Version: 2.7.0      State: Not installed
    order                Name: Orders management              Version: 2.6.0      State: Enabled
    reports              Name: Reportes                       Version: 1.14.0     State: Enabled
    screenshot           Name: Screenshot                     Version: 1.0.0      State: Enabled
    vip                  Name: VIP                            Version: 1.3.0      State: Enabled
    webresources         Name: Web Resources                  Version: 1.3.0      State: Enabled
    yagp                 Name: yagp                           Version: 1.1.0      State: Installed / not activated

Additional context

Using MariaDB on CentOS

trasher commented 4 years ago

Please attach logs related to the issue only.

A 13Mio log file like the one you provided is useless.

patriciocs1979 commented 4 years ago

I don't know what logs would be useful for troubleshooting this issue so I attached all I found in my glpi installation. Which logs do you recomend to attach?

I tried to open this issue with all information I have, if something is missing or needed please let me know so I can add it.

cedric-anne commented 3 years ago

Hi,

Your logs are polluted by lots of errors/warnings related to plugins (actualtime, databases and vip, at least).

Please try to reproduce with no active plugins, and provide logs related to the moment you encounter the bug.

Regards