Ad Widget

Collapse

Plain Text dashboards returning Unexpected server error when trying to edit on v7.0.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KaloyanHr
    Junior Member
    • Apr 2024
    • 2

    #1

    Plain Text dashboards returning Unexpected server error when trying to edit on v7.0.0

    Hello,

    After upgrading Zabbix from v6.4.7 to v7.0.0, I cannot edit any of my past plain text dashboards (which should now be item history as per https://www.zabbix.com/documentation...n-text-widgets), I get directly Unexpected server error. I tried also recreating the dashboard but when I choose the item in Columns and click add, I get immediately the same error. also checked the zabbix server logs but there's nothing there regarding this. Can you please advise if there's any way to fix this ? I

    Thank you
  • Dmitry2007
    Junior Member
    • Jan 2022
    • 9

    #2
    Hello,

    I have got the same problem. Item history widget returned "Unexpected server error". And after looking into webserver log i found error like:

    FastCGI sent in stderr: "PHP message: PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/include/classes/api/CRelationMap.php on line 72" while reading response header from upstream, client: 10.10.42.253, server: zabbixapp, request: "POST /zabbix.php?action=widget.itemhistory.edit HTTP/1.1", upstream: "fastcgi://unix:/var/run/php-fpm/www.sock:", host: "zabbixapp", referrer: "https://zabbixapp/zabbix.php?action=dashboard.view&dashboardid=2&fro m=now%2Fd&to=now"

    Similar problem solution here: https://www.zabbix.com/forum/zabbix-...ed-to-allocate

    Though i am not good at web server administration and there could be problems like memory leak or something like that(which is mentioned in comments to this kind of problem solving)

    I use nginx as webserver so i needed to change file
    /etc/php-fpm.d/www.conf

    php_admin_value[memory_limit] = 128M
    to
    php_admin_value[memory_limit] = 256M

    restart php and nginx

    Comment

    Working...