Ad Widget

Collapse

New user problems with 6.0.16: No dashboards

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • seanbatt
    Junior Member
    • May 2023
    • 5

    #1

    New user problems with 6.0.16: No dashboards

    I'm having issues working with Zabbix 6.0.16 running from the official docker containers under kubernetes. If anyone can point me in the right direction to get this resolved I'd be grateful.

    My 1st problem is that I have no dashboards. When loading, browser console reports errors:
    Code:
    caught ReferenceError: Cannot access 'CWidget' before initialization
        at jsLoader.php?ver=6.0.16&lang=en_GB&files%5B0%5D=flickerfreescreen.js&files%5B1%5D=gtlc.js&files%5B2%5D=leaflet.js&files%5B3%5D=leaflet.markercluster.js&files%5B4%5D=class.dashboard.js&files%5B5%5D=class.dashboard.page.js&files%5B6%5D=class.dashboard.widget.placeholder.js&files%5B7%5D=class.geomaps.js&files%5B8%5D=class.widget.js&files%5B9%5D=class.widget.iterator.js&files%5B10%5D=class.widget.clock.js&files%5B11%5D=class.widget.geomap.js&files%5B12%5D=class.widget.graph.js&files%5B13%5D=class.widget.graph-prototype.js&files%5B14%5D=class.widget.item.js&files%5B15%5D=class.widget.map.js&files%5B16%5D=class.widget.navtree.js&files%5B17%5D=class.widget.paste-placeholder.js&files%5B18%5D=class.widget.problems.js&files%5B19%5D=class.widget.problemsbysv.js&files%5B20%5D=class.widget.svggraph.js&files%5B21%5D=class.widget.trigerover.js&files%5B22%5D=class.calendar.js&files%5B23%5D=layout.mode.js&files%5B24%5D=class.coverride.js&files%5B25%5D=class.crangecontrol.js&files%5B26%5D=colorpicker.js&files%5B27%5D=class.csvggraph.js&files%5B28%5D=class.cnavtree.js&files%5B29%5D=class.svg.canvas.js&files%5B30%5D=class.svg.map.js&files%5B31%5D=class.tagfilteritem.js&files%5B32%5D=class.sortable.js&files%5B33%5D=servercheck.js:1238:28
    
    jQuery.Deferred exception: CDashboard is not defined ReferenceError: CDashboard is not defined
        at Object.init (https://zabbix.development.ndis.gov.au/zabbix.php?action=dashboard.view&new=1:61:27)
        at HTMLDocument.<anonymous> (https://zabbix.development.ndis.gov.au/zabbix.php?action=dashboard.view&new=1:417:7)
        at mightThrow (https://zabbix.development.ndis.gov.au/jsLoader.php?lang=en_GB&ver=6.0.16&showGuiMessaging=1:3768:29)
        at process (https://zabbix.development.ndis.gov.au/jsLoader.php?lang=en_GB&ver=6.0.16&showGuiMessaging=1:3836:12) undefined
    
    Uncaught ReferenceError: CDashboard is not defined
        at Object.init (zabbix.php?action=dashboard.view&new=1:61:27)
        at HTMLDocument.<anonymous> (zabbix.php?action=dashboard.view&new=1:417:7)
        at mightThrow (jsLoader.php?lang=en_GB&ver=6.0.16&showGuiMessaging=1:3768:29)
        at process (jsLoader.php?lang=en_GB&ver=6.0.16&showGuiMessaging=1:3836:12)​​
    Thank you kindly.

    Sean
  • seanbatt
    Junior Member
    • May 2023
    • 5

    #2
    The issue may be that we're using Cloudflare so all browser traffic goes through it. Others have reported issues due to Cloudflare's Rocket Mode, but that doesn't appear to be the case here; it's already switched off.
    I've looked at the jsLoader.php code (it merges individual js files and does in-place edits for internationalisation) and with the parameters I see used by the browser (the js files to load and rewrite depending on lang) I ran it on a Linux server with the Zabbix code cloned from github and set to 6.0.16 branch.
    As the lang is en_GB, there has been limited language editing, however, the order of the merged javascript files is different which may be leading to the Javascript errors. Loading without Cloudflare, the 1st five:
    1. flickerfreescreen.js
    2. gtlc.js
    3. leaflet.js
    4. leaflet.markercluster.js
    5. class.dashboard.js
    6. class.dashboard.page.js
    7. class.dashboard.widget.placeholder.js
    compared to loading through Cloudflare:
    1. flickerfreescreen.js
    2. gtlc.js
    3. class.widget.clock.js
    4. class.widget.geomap.js
    5. class.widget.graph.js
    6. class.widget.graph-prototype.js
    7. class.widget.item.js
    I'm not able to bypass Cloudflare for architectural reasons, though we are endeavouring to enable at least a test of the jsLoader.php call.
    I realise this is only loading order and not execution order; if anyone can suggest how to identify the latter, please let me know.




    Comment

    Working...