[ZBX-17139] Error at generate chart Created: 2020 Jan 03  Updated: 2020 Jul 02  Resolved: 2020 Jul 02

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 4.4.4
Fix Version/s: None

Type: Incident report Priority: Trivial
Reporter: frank Assignee: Kristians Pavars
Resolution: Won't fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS 8, php 7.2.11, MariaDB 10.3.21, Zabbix 4.4.4


Attachments: PNG File Screenshot_20200116_110446.png     PNG File Screenshot_20200116_110509.png     JPEG File zabbix.JPG    

 Description   

Steps to reproduce:

  1. Open any chart

Result:

2020/01/03 15:31:50 [error] 15105#15105: *3833 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'CApiServiceFactory' not found in /var/www/html/zabbix/include/classes/core/ZBase.php:71
Stack trace:
#0 /var/www/html/zabbix/include/classes/core/ZBase.php(120): ZBase->init()
#1 /var/www/html/zabbix/include/config.inc.php(33): ZBase->run('default')
#2 /var/www/html/zabbix/chart2.php(22): require_once('/var/www/html/z...')
#3 \{main}
 thrown in /var/www/html/zabbix/include/classes/core/ZBase.php on line 71" while reading response header from upstream, client: 177.72.160.100, server: zabbix.getcard.com.br, request: "GET /zabbix/chart2.php?graphid=66169&screenid=22&width=500&height=100&legend=1&profileIdx=web.screens.filter&profileIdx2=22&from=now-1h&to=now&_=u1i9sv6x HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "zabbix.getcard.com.br", referrer: "https://zabbix.getcard.com.br/zabbix/screens.php?elementid=22"
2020/01/03 15:32:01 [warn] 15105#15105: *1 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/01/0000000011 while reading upstream, client: 177.72.160.100, server: zabbix.getcard.com.br, request: "GET /zabbix/jsLoader.php?lang=pt_BR&ver=4.4.4&showGuiMessaging=1 HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "zabbix.getcard.com.br", referrer: "https://zabbix.getcard.com.br/zabbix/zabbix.php?action=dashboard.view&ddreset=1"
2020/01/03 15:32:03 [warn] 15105#15105: *1 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/2/01/0000000012 while reading upstream, client: 177.72.160.100, server: zabbix.getcard.com.br, request: "GET /zabbix/jsLoader.php?ver=4.4.4&lang=pt_BR&files%5B0%5D=flickerfreescreen.js&files%5B1%5D=gtlc.js&files%5B2%5D=dashboard.grid.js&files%5B3%5D=class.calendar.js&files%5B4%5D=multiselect.js&files%5B5%5D=layout.mode.js&files%5B6%5D=class.coverride.js&files%5B7%5D=class.cverticalaccordion.js&files%5B8%5D=class.crangecontrol.js&files%5B9%5D=colorpicker.js&files%5B10%5D=class.csvggraph.js&files%5B11%5D=csvggraphwidget.js&files%5B12%5D=class.cclock.js&files%5B13%5D=class.cnavtree.js&files%5B14%5D=class.mapwidget.js&files%5B15%5D=class.svg.canvas.js&files%5B16%5D=class.svg.map.js&files%5B17%5D=servercheck.js HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "zabbix.getcard.com.br", referrer: "https://zabbix.getcard.com.br/zabbix/zabbix.php?action=dashboard.view&ddreset=1"

Expected:
See screenshot....
See attached patch file...



 Comments   
Comment by Arturs Lontons [ 2020 Jan 06 ]

Hi,

Does this happen if you open a dashboard containing a graph? If so, does this error message appear when you are using new or classic graphs? Could you provide a screenshot of the frontend with the error message?

Regards,
Arturs.

Comment by frank [ 2020 Jan 06 ]

Hello,

 

I attached a screenshot to the ticket.

I do not know if is new or classic graphs, 

Comment by Arturs Lontons [ 2020 Jan 07 ]

I'm not seeing the error message you provided in the description - just the lack of data for a couple of minutes, which could be caused by an interruption in the data collection and isn't necessarily a bug.

Comment by Alexey Pustovalov [ 2020 Jan 08 ]

It looks like you do not use our packages, your www-root directory is in "/var/www/html/zabbix/". Did you perform upgrade from older versions? If yes, I recommend you clean /var/www/html/zabbix/ directory (make a backup of configuration file) and then copy Zabbix frontend version 4.4.4.

Comment by Christian Hofstede [ 2020 Jan 16 ]

Hello,

We experience the same problem since we upgraded to Zabbix 4.4.4. All! graphs are missing the most right part. The data is collected and shown as raw data but not in the graphs.... (see attachment)

 

Update: Deleted the webroot and re-installed the clean 4.4.4 frontend: Did not solve the problem.

 

Zabbix 4.4.4 on Debian using PostgreSQL

Comment by frank [ 2020 Jan 16 ]

Hello,

 

Reinstall frontend not resolve this issue.

The problem is not showing in frontend, only in logs:

 

2020/01/03 15:31:50 [error] 15105#15105: *3833 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Error: Class 'CApiServiceFactory' not found in /var/www/html/zabbix/include/classes/core/ZBase.php:71
Stack trace:
#0 /var/www/html/zabbix/include/classes/core/ZBase.php(120): ZBase->init()
#1 /var/www/html/zabbix/include/config.inc.php(33): ZBase->run('default')
#2 /var/www/html/zabbix/chart2.php(22): require_once('/var/www/html/z...')
#3

{main}
Comment by Alex Rodenberg [ 2020 Feb 14 ]

2020/01/03 15:32:01 [warn] 15105#15105: *1 an upstream response is buffered to a temporary file /var/cache/nginx/fastcgi_temp/1/01/0000000011 while reading upstream, client: 177.72.160.100, server: zabbix.getcard.com.br, request: "GET /zabbix/jsLoader.php?lang=pt_BR&ver=4.4.4&showGuiMessaging=1 HTTP/2.0", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "zabbix.getcard.com.br", referrer: "https://zabbix.getcard.com.br/zabbix/zabbix.php?action=dashboard.view&ddreset=1"

This means your buffer sizes are to small, and gets loaded into files, and could cause problems.

you will have to raise 

fastcgi_buffer_size and fastcgi_buffers

 

I'm not sure it will solve the issue though, but at least should be tried.

Comment by Arturs Lontons [ 2020 Mar 18 ]

Hi.

Have you managed to implement the fixes suggested by Alex?

Comment by Kristians Pavars [ 2020 Jun 17 ]

Hi aguilieri

 

There hasn't been any updates from you for some time, can we assume that this is now resolved and can be closed?

 

Thanks,
Kristians

 

Generated at Wed Apr 16 08:55:30 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.