Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Matomo Cron - Segmention fault on Report Generation #17609

Closed
Littlericket opened this issue May 21, 2021 · 3 comments
Closed

Matomo Cron - Segmention fault on Report Generation #17609

Littlericket opened this issue May 21, 2021 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@Littlericket
Copy link

Littlericket commented May 21, 2021

The Matomo Cron Archiving is throwing us segmention fault errors upon sending a report. It doenst stop the cron from archiving (all data is still visible), but throws an error in the UI that the cron hasn't been run since X days. Haven't found any issue or something on the forums except the FAQ-Issue (https://matomo.org/faq/troubleshooting/faq_131/, #4507 (comment)) from 2014.

Before the segfault there are a few pChart notices in the log file

INFO [2021-05-21 05:40:06] 12226  Scheduler: executing task Piwik\Plugins\ScheduledReports\API.sendReport_17...
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Draw.php(1312): Warning - imagettftext(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(239): Warning - imagettfbbox(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(246): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Image.php(247): Notice - Trying to access array offset on value of type bool - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
WARNING [2021-05-21 05:40:09] 12226  /var/www/matomo/vendor/szymach/c-pchart/src/Chart/Draw.php(1312): Warning - imagettftext(): Problem loading glyph - Matomo 4.2.1 - Please report this message in the Matomo forums: https://forum.matomo.org (please do a search first as it might have been reported already)
/bin/sh: line 1: 12226 Segmentation fault      (core dumped) /opt/remi/php74/root/usr/bin/php /var/www/matomo/console core:archive --no-ansi --no-interaction >> /var/log/piwik-archive.log 2>&1

Steps to Reproduce (for Bugs)

  1. Start the cron:archive command line

Your Environment

  • Matomo Version: 4.2.1
  • PHP Version: Remi 7.4.10
  • Server Operating System: CentOS 7 / RHEL 7
  • Additionally installed plugins: QueuedTracking 4.0.2
$ yum list installed|grep php
php74.x86_64               1.0-3.el7.remi      @remi-safe
php74-php-cli.x86_64       7.4.10-1.el7.remi   @remi-safe
php74-php-common.x86_64    7.4.10-1.el7.remi   @remi-safe
php74-php-fpm.x86_64       7.4.10-1.el7.remi   @remi-safe
php74-php-gd.x86_64        7.4.10-1.el7.remi   @remi-safe
php74-php-json.x86_64      7.4.10-1.el7.remi   @remi-safe
php74-php-mbstring.x86_64  7.4.10-1.el7.remi   @remi-safe
php74-php-mysqlnd.x86_64   7.4.10-1.el7.remi   @remi-safe
php74-php-opcache.x86_64   7.4.10-1.el7.remi   @remi-safe
php74-php-pdo.x86_64       7.4.10-1.el7.remi   @remi-safe
php74-php-pecl-igbinary.x86_64
php74-php-pecl-msgpack.x86_64
php74-php-pecl-redis5.x86_64
php74-php-xml.x86_64       7.4.10-1.el7.remi   @remi-safe
php74-runtime.x86_64       1.0-3.el7.remi      @remi-safe
@Littlericket Littlericket added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label May 21, 2021
@diosmosis
Copy link
Member

Hi @Littlericket, can you provide the definition of the problematic report (id = 17)? Can you also check if it happens from the browser (when clicking the Download link)? And would you be able to check if removing a specific report causes the problem to go away?

@Littlericket
Copy link
Author

Littlericket commented Sep 3, 2021

@diosmosis fixed it today. Its not related to Matomo (atleast what I can see), but more a issue on how GD is linked/built into php. remi-safe is not bundling GD into php:

GD

GD Support => enabled
GD headers Version => 2.3.2
GD library Version => 2.3.0

whereas building php itself bundles the gd (and thats where Matomo doenst segfault):

GD

GD Support => enabled
GD Version => bundled (2.3.0 compatible)

I still don't really understand how this would affect the php-gd lib, but nevertheless, its working now and doenst look like that its an issue with matomo.

@tsteur tsteur added answered For when a question was asked and we referred to forum or answered it. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Sep 5, 2021
@tsteur
Copy link
Member

tsteur commented Sep 5, 2021

Glad it's working now @Littlericket . Thanks for letting us know.

@sgiehl sgiehl closed this as completed Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants