Ad Widget

Collapse

Ugrade to 2.2.2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • exness
    Junior Member
    • Feb 2014
    • 2

    #1

    Ugrade to 2.2.2

    Hi guys,
    I do have some problems upgrading my database.
    No automatically upgrade process is starting.

    Because of this I have this error in frontend:
    Database error: The frontend does not match Zabbix database.

    I can't find any upgrade process in any log file... :-(
    If the server starts up it will always start with 2.0.1...

    What do I wrong?

    Here some values:
    Code:
    zabbix@SZAB01:~$ grep -r "VERSION" /home/zabbix/public_html/include/defines.inc.php
    define('ZABBIX_VERSION',     '2.2.2');
    define('ZABBIX_API_VERSION', '2.2.2');
    define('ZABBIX_DB_VERSION',      2020000);
    zabbix@SZAB01:~$ zabbix_server --version
    Zabbix server v2.2.2 (revision 42525) (12 February 2014)
    Compilation time: Feb 24 2014 13:08:35
    PS: I have a postgres database 8.4

    Best Regards,
    Florian
  • pc99096
    Senior Member
    • Oct 2011
    • 193

    #2
    probably duplicate zabbix_server binaries? try to find which file is used in /etc/init.d/zabbix_server

    Comment

    • exness
      Junior Member
      • Feb 2014
      • 2

      #3
      Yeah! Forgot to copy over this new files...
      Sorry for my mistakes.

      But thanks anyway, upgrade successfully!

      Comment

      • thomphi
        Member
        • Feb 2014
        • 74

        #4
        Hello,

        I have the same problem. I'm on Zabbix Appliance 2.0. I would like to upgrade to 2.2 (I do exactly this https://www.zabbix.com/forum/showthread.php?t=27674)

        But I have "Database error: The frontend does not match Zabbix database." after.

        And when I do :


        Zabbix 2.0 ? Wtf ?

        Comment

        • pc99096
          Senior Member
          • Oct 2011
          • 193

          #5
          probably duplicate zabbix_server binaries? try to find which file is used in /etc/init.d/zabbix_server

          Comment

          • thomphi
            Member
            • Feb 2014
            • 74

            #6
            I don't know what do I find in /etc/init.d/zabbix-server ?

            Comment

            • pc99096
              Senior Member
              • Oct 2011
              • 193

              #7
              if you really don't know, why are you doing something like zabbix upgrade?

              try this:
              cat /etc/init.d/zabbix_server | grep zabbix | grep server


              or try
              find / -name zabbix_server

              find / -name zabbix-server

              and then check all of them, you will probably have one 2.0 and one 2.2 version

              Comment

              • thomphi
                Member
                • Feb 2014
                • 74

                #8
                Ok I have this :

                Comment

                • pc99096
                  Senior Member
                  • Oct 2011
                  • 193

                  #9
                  last 2 lines, one of them is 2.0 and the other 2.2
                  you need to edit the /etc/init.d/zabbix_server file to point to the other zabbix_server binary, clear?

                  Comment

                  • thomphi
                    Member
                    • Feb 2014
                    • 74

                    #10
                    And how I know ? Because inside it's like :
                    $@`$@:///.../@$***ยจ%.;;;:::@&&&@

                    Comment

                    • pc99096
                      Senior Member
                      • Oct 2011
                      • 193

                      #11
                      cat /etc/init.d/zabbix_server | grep zabbix_server
                      or
                      cat /etc/init.d/zabbix_server | grep ZABBIX_BIN

                      Comment

                      • thomphi
                        Member
                        • Feb 2014
                        • 74

                        #12
                        ZABBIX_SERVER_BIN = /usr/sbin/zabbix_server

                        So?

                        Comment

                        • pc99096
                          Senior Member
                          • Oct 2011
                          • 193

                          #13
                          change to:
                          ZABBIX_SERVER_BIN = /usr/local/sbin/zabbix_server


                          and please don't ask me how to edit a text file

                          then /etc/init.d/zabbix_server restart

                          Comment

                          • thomphi
                            Member
                            • Feb 2014
                            • 74

                            #14
                            Thank you man !!! after 2 weeks, I have upgraded zabbix !!! You are awesome :P

                            Comment

                            Working...