Ad Widget

Collapse

Zabbix GIU broken, no languages and web interface errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tytanick
    Junior Member
    • Feb 2020
    • 10

    #1

    Zabbix GIU broken, no languages and web interface errors

    I have some strange error after upgrading zabbix some time ago.
    This is Ubuntu 18. Zabbix 5.4 (5.2 was the same).
    Overall server works ok but GUI interface is broken.
    Tried uninstalling web interface and installing fresh one - no change.
    locale are fine also:
    Code:
    root@zabbix:[/etc/apache2/conf-available]: locale
    LANG=en_US.UTF-8
    LANGUAGE=
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=

    When i try to change my user language, many fields are empty and one of them near language says: "You are not able to choose some of the languages, because locales for them are not installed on the web server."

    Click image for larger version

Name:	1.png
Views:	45550
Size:	71.6 KB
ID:	427992



    When i enter any item i first see for small moment whole forms and then they disappear and i see only small portion of forms.
    When i try to clone some element i cannot save cloned item as many fields are gone.

    Click image for larger version

Name:	2.png
Views:	45288
Size:	60.2 KB
ID:	427993

    This is what i see in browser.

    Click image for larger version

Name:	3.png
Views:	45091
Size:	424.6 KB
ID:	427994
  • tytanick
    Junior Member
    • Feb 2020
    • 10

    #2
    When we added to code checking if template exists then the form appeared and i can co at least something but the form looks like that on 2nd picture below.
    This might be bug or i have broken database but no idea how to fix it.
    Anyone ?

    Click image for larger version

Name:	4.png
Views:	45610
Size:	40.6 KB
ID:	428036
    Click image for larger version

Name:	5.png
Views:	45798
Size:	86.0 KB
ID:	428037

    Comment

    • tytanick
      Junior Member
      • Feb 2020
      • 10

      #3
      OK i know what is causing this problem.
      Cloudflare is causing it.
      Using direct connection without cloudflare fixed this issue.
      Wondering if zabbix team can fix it.

      Actually i disabled RocketLoader from Cloudflare on that zabbix domain and this problem is now solved.
      Last edited by tytanick; 30-07-2021, 17:34.

      Comment


      • rodrigo2186
        rodrigo2186 commented
        Editing a comment
        About Zabbix GIU broken, no languages and web interface errors

        Thank youuuuuuuuuuuuuuuuuuuuuuuuuuuu. I don't belive on it. I was creating my configs by json API. I was crazy.

        I can't believe it solved. Thank you again
    • ActiveAgent
      Member
      • Oct 2021
      • 41

      #4
      Thanks for this Post. I might have a similar problem.

      My Web Frontend is showing Error, since i updated from 5.4 to 6.0 (on my Ubuntu 20.04) virtual host, running it on apache webserver:
      Click image for larger version

Name:	brave_1Mav0NrMwn.png
Views:	45639
Size:	995.9 KB
ID:	435965

      I know I can change the language on several places on the web UI, so I looked them up

      Thats the Admin-Page:
      Click image for larger version

Name:	firefox_JJF02u1iAh.png
Views:	45853
Size:	69.5 KB
ID:	435966

      and that´s the profile-page:
      Click image for larger version

Name:	firefox_mx7THZF0qo.png
Views:	45865
Size:	65.7 KB
ID:	435967

      I guess it's not directly a concern of the zabbix-server, but since I'm new in zabbix and Apache Webserver, I googled the web but didn't find any help.
      Some said it's because of Cloudflare, but I don't have that. It's showing the same error when I go through my local reverse proxy and if I'm typing in the IP-Address of the server.

      I found this post, but wasn't able to add new language files with the make-command.

      Thats what my locale config looks like:
      Click image for larger version

Name:	RoyalTS_AXiT7F3OXD.png
Views:	45797
Size:	12.0 KB
ID:	435968
      It also says, that that language should be automatically set, when installing from a package...like I did.

      Thanks for your help in advance

      Comment


      • Atsushi
        Atsushi commented
        Editing a comment
        Add the language pack for the language you want to use on your OS. Perhaps adding "en_US.UTF-8" will solve the "en_US" problem.

        $ sudo dpkg-reconfigure locales

      • ActiveAgent
        ActiveAgent commented
        Editing a comment
        Thanks a Lot! That did it for me!
    • ActiveAgent
      Member
      • Oct 2021
      • 41

      #5
      I installed it using this official guide:


      It all worked out except this "wget" url was not found:


      I looked it up on the official download page for my ubuntu 20.04 + apache + mysql and used:
      wget https://repo.zabbix.com/zabbix/5.5/u...u20.04_all.deb

      maybe the "5.5" in the middle is the problem?

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #6
        The "5.5" series does not exist, What you installed is the 6.0 alpha packages. Zabbix 6.0 is still in development. They've only provided "alpha" builds so far. Until they start releasing beta packages, I would expect that many things would be broken.

        I do not plan to update to 6.0 until after there have been a couple of additional point releases (6.0.1, 6.0.2, 6.0.3, etc.). Those point releases typically fix the most common bugs with a big new release, where there have been lots and lots of changes.

        Comment

        • ActiveAgent
          Member
          • Oct 2021
          • 41

          #7
          the 5.5 is in the Link and it´s the latest available "Version" Number. I was confued too, but once I added it and upgraded the software it sais 6.0.0alpha7
          Click image for larger version

Name:	wX79jzz2Kq.png
Views:	45013
Size:	63.1 KB
ID:	436019
          Attached Files

          Comment


          • Atsushi
            Atsushi commented
            Editing a comment
            As tim.mooney wrote, the directory 5.5 is a version to try out what's under development. It is not an official public version of the directory and should only be used for 6.0 pre-verification purposes.
            Do not use it in a production environment.
            Last edited by Atsushi; 06-12-2021, 02:19.
        • Steve.B
          Junior Member
          • Jul 2021
          • 7

          #8
          Ok easy fix for running 6.0alpha7 on debian/ubuntu. Just run dpkg-reconfigure locales and selecthe en_US.utf8 locale.

          Strange that this wasnt and issue with 6.0alpha2 that I upgraded from.

          Originally posted by ActiveAgent
          Thanks for this Post. I might have a similar problem.

          My Web Frontend is showing Error, since i updated from 5.4 to 6.0 (on my Ubuntu 20.04) virtual host, running it on apache webserver:
          [

          Comment

          • Taomyn
            Junior Member
            • Feb 2021
            • 21

            #9
            I just experience this problem upgrading from 5.4 to 6.0 on my Raspberry Pi 4, and nothing I have tried including all the above fixes the problem other that enabling en-US (was only en-GB enabled on the server) just to get rid of the errors but now all my date formats are wrong.

            I submitted a ticket as well in case anyone wants to add their own comment https://support.zabbix.com/browse/ZBX-20588

            Comment

            • wajidsk
              Junior Member
              • Sep 2022
              • 6

              #10
              Hello Guys,

              I did same step as mentioned above to fix this issue but after following all step i am still having error , would be happy if some one help me on this ... thanks in advance ..!!

              Click image for larger version

Name:	zabbix-lang-issue-6.0.6.png
Views:	38273
Size:	24.3 KB
ID:	451245

              Comment


              • Atsushi
                Atsushi commented
                Editing a comment
                Languages that are grayed out in the Default language pull-down cannot be selected. If you want to use a language that cannot be selected, please make settings for that language. If your OS is RHEL, try installing the glibc-langpack-xx package for the language you want to use.
            • onurzaim
              Junior Member
              • Aug 2013
              • 4

              #11
              For those who tried to install on RHEL9, ALma linux 9, Rocky linux 9

              Code:
              dnf install glibc-langpack-en
              solved same issue on zabbix 6.2

              Comment


              • Alioua
                Alioua commented
                Editing a comment
                solved same issue on zabbix 6.4.5
            • bebidas
              Junior Member
              • Jan 2023
              • 1

              #12
              After dpkg-reconfigure locales​ you have to restart php-fpm service.

              Comment

              • wajidsk
                Junior Member
                • Sep 2022
                • 6

                #13
                Getting issue while upgrading my Zabbix container from 6.2.4 to 6..4.6

                i did followed the below step
                # mysql -uroot -p
                password
                mysql> drop database zabbix;
                mysql> create database zabbix character set utf8mb4 collate utf8mb4_bin;
                mysql> set global log_bin_trust_function_creators = 1;
                mysql> quit;​​

                after restart getting attached issue on UI login page
                Database error
                • The Zabbix database version does not match current requirements. Your database version: 6040000. Required version: 6020000.

                Logs seems ok but still not able login​

                Comment

                • Jason_O
                  Junior Member
                  • Jan 2024
                  • 2

                  #14
                  As of Date 2024-01-19 still required even on a fresh install! Debian 12 VM setup using Debian net install ISO

                  Thanks for the fix I had this warming on a fresh install of Zabbix 6.4 in the web browser configuration page in the "Configure DB connection"

                  $ sudo dpkg-reconfigure locales

                  $ systemctl restart php8.2-fpm

                  Selected all (probably should of only selected UTF-8, but it's a long list) and I selected en_AU (as it asks for YOUR local language in the next step)​

                  Comment

                  Working...