Ad Widget

Collapse

Services view not working after upgrade from 3.4 -> 4.0.*

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • martin_dino
    Junior Member
    • Oct 2018
    • 6

    #1

    Services view not working after upgrade from 3.4 -> 4.0.*

    Hello!

    I have a problem with service view. After upgrade it's impossible to change Parent Service with Change button.
    If the parent isn't root then ia get an error "Incorrect value "100100000000046" for "parentid" field.".

    Tried to reproduce it in test (clean) environment and it's working ... so it's not reproducible in clean environment.

    Tried debug mode but it dosen't show anything.

    On the same time parentid is present in db "services" table.

    Can anyone help to debug the case?
    If i enable debug mode i dont see queries made by overlay windows ... and from server side i can only see that request is made.

    /zabbix.php?sid=xxxxx&action=popup.services&pservic es=1&serviceid=100100000000538&parentid=1001000000 00046

    If i click on service name and then on the parent service row "Change" i get overlay window with text:
    "Incorrect value "100100000000046" for "parentid" field."

    I do see that request against server is made:
    /zabbix.php?sid=xxxxx&action=popup.services&pservic es=1&serviceid=100100000000538&parentid=1001000000 00046

    Result for that is:
    {"errors":"<output class="msg-bad" role="contentinfo" aria-label="Error message"><div class="msg-details"><ul><li>Incorrect value &quot;100100000000046&quot; for &quot;parentid&quot; field.<\/li><\/ul><\/div><button type="button" class="overlay-close-btn" onclick="jQuery(this).closest('.msg-bad').remove();" title="Close"><\/button><\/output>"}

    I do think that its the problem with data from 2.4 ... we have made upgrade 2.4 -> 3.4 -> 4.0.0

    If i do clean install the id's start from 1 and are not that long numbers ... might that id length be problem?

    Anybody else having same kind of issues and can point the right direction?

    Today i tested - in 3.4 the same dataset is working.
    But ... if ai make an upgrade services view ain't working anymore.
    Last edited by martin_dino; 01-11-2018, 11:00.
  • kloczek
    Senior Member
    • Jun 2006
    • 1771

    #2
    I think that you should go go to https://support.zabbix.com/ and create the ticket.
    http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
    https://kloczek.wordpress.com/
    zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
    My zabbix templates https://github.com/kloczek/zabbix-templates

    Comment

    • martin_dino
      Junior Member
      • Oct 2018
      • 6

      #3
      Ticket is done - ZBX-15101.
      At first i wrote that it's cannot be done in clean environment - which is true and ticket got closed.
      But today i tested and it was working in 3.4 but after upgrade it's broken.

      I think that our environment started at 2.2 where the id number where very long and troughout the upgrades they stayed.
      But as of today's logic - numbers start from 1 - it's not problem because it has to have a loong time or a lot of services to reach to the number what we have for service id.

      Maybe ... someone has a DB query for service "re-numbering" and that could solve my problem - i don't now.

      But at the moment i think i'm not going to be the lastone having this kind of problem ... for big companies upgrade is long process.

      In the moment i'm a bit confused where to find file (function) what is doing the query... so i could debug it.

      Even so - if anybody can help me debug it i would be clad to do it.

      Regards,
      Martin

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Problem is that not to many people are defining SLAs so it is quite possible that you just hit real bug.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • martin_dino
          Junior Member
          • Oct 2018
          • 6

          #5
          I finally figured it out - i would say that it's a bug.
          parentid value can be max int32 and its in class CControllerPopupServices and function checkInput().

          If the id is bigger than you dno't get reasonable error but simple failure.

          At the moment i got rid of that limitation and everything works as expected

          Comment

          • kloczek
            Senior Member
            • Jun 2006
            • 1771

            #6
            Told you .. SLAs is probably the least things which are used in zabbix (maybe + inventory) so probability that it was a bug was relatively high
            http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
            https://kloczek.wordpress.com/
            zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
            My zabbix templates https://github.com/kloczek/zabbix-templates

            Comment

            Working...