[ZBX-16182] After upgrade to 4.08 from 4.07 no text showing on graphs Created: 2019 May 28  Updated: 2024 Apr 10  Resolved: 2019 Jun 11

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.0.8, 4.2.2
Fix Version/s: 4.0.9, 4.2.3, 4.4 (plan)

Type: Incident report Priority: Major
Reporter: Bo Kersey Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 15
Labels: graphs
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Ubuntu 16.04
Linux foobar 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
apache2 - 2.4.18-2ubuntu3.10
libapache2-mod-php 7.0+35ubuntu6.1


Attachments: PNG File chart-no-text.png     PNG File image-2019-06-05-16-18-17-953.png     File zabbix-4.0.8-packaging.diff     Text File zabbix-apache-log-errors.txt    
Issue Links:
Causes
Duplicate
duplicates ZBX-16190 problem of displaying graphical inscr... Closed
duplicates ZBX-16201 problem in showing zabbix graph name ... Closed
is duplicated by ZBX-16222 failed to link /usr/share/zabbix/font... Closed
is duplicated by ZBX-16192 zabbix4.2 graphs display incomplete Closed
is duplicated by ZBX-16202 Data & Values are not appearing in Gr... Closed
is duplicated by ZBX-16193 Graphs have no text Closed
is duplicated by ZBX-16187 Missing text in graphs after upgrade ... Closed
is duplicated by ZBX-16235 My Scale is missing Closed
Sub-task
depends on ZBX-16180 Assets directory permissions are not ... Closed
Team: Team I
Sprint: Sprint 53 (Jun 2019)
Story Points: 2

 Description   

Steps to reproduce:

  1. Load any graph
  2. Look to see that no text is showing
  3. ...

Result:

Graphs with no text

Seeing 304's related to graphs in the logs
See attached screenshot...
See attached log entries...

Expected:
Graphs with Text



 Comments   
Comment by Alexandr Glazkow [ 2019 May 29 ]

Version 4.2.2 is also affected

Comment by Valdis Murzins [ 2019 May 29 ]

It is very possible, you have an issue with the fonts.
I can suggest you to take a look at ZBX-12690 or ZBX-14740.

Comment by Kolunchik [ 2019 May 29 ]

Maybe https://support.zabbix.com/browse/ZBX-16180

Comment by Valdis Murzins [ 2019 May 29 ]

Seems like the problem was caused by changes in ZBX-15905.
In scope of this changes the fonts directory was moved from frontend root folder /fonts to assets/fonts.

As a result, if you had a manually created symlink, it may be now broken.

Additionally, as answer to Kolunchik, I will note that from 4.0.8 you need to manually add write permissions for web server user to /assets directory.

Comment by Raymond Kuiper [ 2019 May 29 ]

Confirm this issue exists in CentOS packages as well.

Comment by Valdis Murzins [ 2019 May 29 ]

As it was found out, there was an error in packages.

New version of packages will be created.

Comment by Someuser [ 2019 May 29 ]

cp /usr/share/zabbix/fonts/graphfont.ttf /usr/share/zabbix/assets/fonts/

chown -R www-data:www-data /usr/share/zabbix/assets/

chmod -R 744 /usr/share/zabbix/assets

Resolved on my 4.2.2

Comment by Franky Van Liedekerke [ 2019 May 29 ]

While the chmod will work on non-selinux systems, it will not on selinux based systems. Zabbix should provide a selinux policy package too (I can already provide the basic pp for it if so desired).

Comment by Bo Kersey [ 2019 May 30 ]

I've uploaded a diff that fixes the packaging issues that caused graphs to appear without text (zabbix-4.0.8-packaging.diff).

I also tried to fix some of the lintian issues with the packages...  However, I was not successful in getting all of them fixed.

 

Thanks!

 

Comment by Yuri Silvano Gusmão [ 2019 May 30 ]

I was having the same problem. @Someuser you save my life, Tks. Your solution worked perfectly.
Obviously with some changes because I use RHEL and not Debian (or derivatives)

For all, the Zabbix packages installed in my CentOS 7 are:

zabbix-get-4.0.8-1.el7.x86_64
zabbix-release-4.0-1.el7.noarch
zabbix-server-mysql-4.0.8-1.el7.x86_64
zabbix-web-mysql-4.0.8-1.el7.noarch
zabbix-web-4.0.8-1.el7.noarch
zabbix-agent-4.0.8-1.el7.x86_64

Thank you very much

Comment by Craig Hopkins [ 2019 May 30 ]

Symlinked the file as I don't like duplicates

ln -s /usr/share/zabbix/fonts/graphfont.ttf /usr/share/zabbix/assets/fonts/

This was in 4.2.2

Comment by Bo Kersey [ 2019 May 30 ]

You can just move the files.  No need for links

Comment by Niklas Hagman [ 2019 Jun 05 ]

Same issue here. Upgraded from 4.0.x to 4.2.2. And I have from the beginning made sure not to touch anything in the file structure and this happens anyway. So this is a upgrade bug. Using Zabbix repository deb files for Ubuntu 18.04.

Comment by Mark Hatton [ 2019 Jun 05 ]

Just to add to this, also seeing this in the 4.2.1 > 4.2.2 upgrade process that we performed today. We now have no labels on classic graph widgets on our dashboards:

 

Once the font file was copied from /usr/share/zabbix/fonts to /usr/share/zabbix/assets/fonts, the problem resolved.

Comment by Daniel Netzer [ 2019 Jun 07 ]

Same problem here. I am on Ubuntu18.0.4 LTS.

Comment by Daniel Netzer [ 2019 Jun 10 ]

Seems to be fixed with 4.0.9.

Comment by Jurijs Klopovskis [ 2019 Jun 11 ]

Fixed in versions 4.0.9 and 4.2.3

Generated at Thu Apr 25 17:18:00 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.