Ad Widget

Collapse

User type selector, theme selector, language selector empty on Zabbix 7.4.x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgarcia
    Junior Member
    • Mar 2024
    • 12

    #1

    User type selector, theme selector, language selector empty on Zabbix 7.4.x

    I notice that since I upgraded to zabbix 7.4.x the User Type selector and selectors of the users are now empty, the values are not filled from the database. The user Type selector is empty, and in this role, the Dashboards check should be activated, as you cansee in the user details:

    Click image for larger version

Name:	image.png
Views:	160
Size:	86.5 KB
ID:	506701

    Click image for larger version

Name:	image.png
Views:	30
Size:	42.9 KB
ID:	506702

    In the User details, also these selectors are empty:

    Click image for larger version

Name:	image.png
Views:	32
Size:	5.7 KB
ID:	506703

    Zabbix is updated to 7.4.2 and it's running over Docker containers with this Docker Compose configuration (some sensitive data has been deleted). Server is a Ubuntu 24.04 just with Docker installed


    Code:
    services:
    zabbix-haproxy:
    env_file:
    - .env
    container_name: zabbix_haproxy
    restart: unless-stopped
    build:
    context: ./haproxy
    volumes:
    - ./haproxy/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
    ports:
    - "80:80"
    - "443:443"
    - "30001:8484"
    depends_on:
    - zabbix-web-nginx-mysql
    networks:
    - zabbix-net
    
    zabbix-agent:
    container_name: zabbix_agent2
    image: zabbix/zabbix-agent2:latest
    restart: unless-stopped
    environment:
    ZBX_HOSTNAME: "Zabbix server"
    ZBX_LISTENPORT: "10050"
    ports:
    - "10050:10050"
    networks:
    - zabbix-net
    volumes:
    - /:/rootfs
    - /var/run:/var/run
    privileged: true
    
    zabbix-server:
    container_name: zabbix_server
    # build:
    # context: ./zabbix
    image: zabbix/zabbix-server-mysql:latest
    restart: unless-stopped
    environment:
    ZBX_API_URL: ""
    ZBX_API_TOKEN: ""
    ZBX_CACHESIZE: 128M
    ZBX_VALUECACHESIZE: 32M
    ZBX_TRENDCACHESIZE: 32M
    ZBX_HISTORYCACHESIZE: 32M
    ZBX_HISTORYINDEXCACHESIZE: 16M
    ZBX_NODEADDRESS: zabbix-server
    ZBX_NODEADDRESSPORT: 10051
    env_file:
    - .env
    ports:
    - "10051:10051"
    depends_on:
    - zabbix-mysql-server
    networks:
    - zabbix-net
    
    zabbix-mysql-server:
    container_name: zabbix_mysql_server
    restart: unless-stopped
    image: mysql:8.0
    env_file:
    - .env
    volumes:
    - /mnt/volume_data/mysql:/var/lib/mysql
    networks:
    - zabbix-net
    command: --log_bin_trust_function_creators=1 --binlog-expire-logs-seconds=432000 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin
    
    zabbix-web-nginx-mysql:
    container_name: zabbix_web_server
    restart: unless-stopped
    env_file:
    - .env
    image: zabbix/zabbix-web-nginx-mysql:latest
    ports:
    - "8080:8080"
    depends_on:
    - zabbix-server
    networks:
    - zabbix-net
    
    networks:
    zabbix-net:
    driver: bridge
    ​
    What could be the issue?
  • mgarcia
    Junior Member
    • Mar 2024
    • 12

    #2
    Quick update, when I open the console of the browser, I see this JS error

    Code:
    jsLoader.php?lang=en…uiMessaging=1:22038Uncaught ReferenceError: Cannot access 'Template' before initialization at ZSelect.addOption (jsLoader.php?lang=en…essaging=1:22038:22) at ZSelect.init (jsLoader.php?lang=en…essaging=1:21993:13) at ZSelect.connectedCallback (jsLoader.php?lang=en…Messaging=1:21898:8) atjsLoader.php?lang=en…essaging=1:22579:16
    And it looks like to having the domain behind Cloudflare beign proxied: https://www.zabbix.com/forum/zabbix-...-a-constructor

    Let's see how can it be solved now.
    Last edited by mgarcia; 29-08-2025, 10:27.

    Comment

    • mgarcia
      Junior Member
      • Mar 2024
      • 12

      #3

      Ok, I found a way to solve it, and it's to include a Page Rule in Cloudflare to disable Rocket Loader for the hostname needed. I hope it helps somebody else.

      Click image for larger version

Name:	image.png
Views:	44
Size:	67.0 KB
ID:	506708

      Comment

      • mm1975
        Junior Member
        • Oct 2025
        • 1

        #4
        Thank you, mgarcia

        I was looking for the exact configuration that broke my dropdown selectors after enabling everything available in Cloudflare.

        Disabling Rocket Loader did the trick!

        I'm also using the docker image, but deployed via Helm in a k8s cluster, with cloudflared tunnel connected to their WAF. Pretty neat setup, I recommend.

        Cheers!
        MM

        Comment

        Working...