Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Flatly)
  • No Skin
Collapse
Brand Logo

NetXMS Forum

  1. Home
  2. Support
  3. 1.2.8 error during upgrade

1.2.8 error during upgrade

Scheduled Pinned Locked Moved Support
4 Posts 2 Posters 13.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P
    P
    pav
    wrote on last edited by
    #1

    Hi, a have problem after upgrade from 1.2.7 to 1.2.8 (Win x86 Server)

    C:\Program Files\NetXMS\bin>nxdbmgr.exe check
    NetXMS Database Manager Version 1.2.7

    Checking database (excluding collected data):
    * Checking zone objects...                                            [PASSED]
    * Checking node objects...                                            [PASSED]
    * Checking interface objects...                                      [PASSED]
    * Checking network service objects...                                [PASSED]
    * Checking cluster objects...                                        [PASSED]
    * Checking template to node mapping...                                [PASSED]
    * Checking object properties...                                      [PASSED]
    * Checking event processing policy...                                [PASSED]
    Database doesn't contain any errors
    Database check completed

    C:\Program Files\NetXMS\bin>nxdbmgr.exe upgrade
    NetXMS Database Manager Version 1.2.8

    Upgrading database...
    Upgrading from version 279 to 280
    SQL query failed (near "DROP": syntax error):
    ALTER TABLE dc_tables DROP COLUMN instance_column
    Rolling back last stage due to upgrade errors...
    Database upgrade failed

    C:\Program Files\NetXMS\bin>

    1 Reply Last reply
    0
    • V
      V
      Victor Kirhenshtein
      wrote on last edited by
      #2

      Hi!

      Yes, it's a bug in database upgrade procedure which is only happens on SQLite database. You an run nxdbmgr with -X option to force upgrade to continue, or wait for 1.2.9 release where this bug will be fixed.

      Best regards,
      Victor

      1 Reply Last reply
      0
      • P
        P
        pav
        wrote on last edited by
        #3

        Thank you very much, it helped.

        Are there any risks if they missed a database upgrade from 279 to 280

        Pavel

        C:\NetXMS\bin>nxdbmgr.exe upgrade
        NetXMS Database Manager Version 1.2.8

        Upgrading database...
        Upgrading from version 279 to 280
        SQL query failed (near "DROP": syntax error):
        ALTER TABLE dc_tables DROP COLUMN instance_column
        Rolling back last stage due to upgrade errors...
        Database upgrade failed

        C:\NetXMS\bin>nxdbmgr.exe -X upgrade
        NetXMS Database Manager Version 1.2.8

        Upgrading database...
        Upgrading from version 279 to 280
        SQL query failed (near "DROP": syntax error):
        ALTER TABLE dc_tables DROP COLUMN instance_column
        Upgrading from version 280 to 281
        Upgrading from version 281 to 282
        Upgrading from version 282 to 283
        Upgrading from version 283 to 284
        Upgrading from version 284 to 285
        Database upgrade succeeded

        C:\NetXMS\bin>nxdbmgr.exe check
        NetXMS Database Manager Version 1.2.8

        Checking database (excluding collected data):
        * Checking zone objects...                                            [PASSED]
        * Checking node objects...                                            [PASSED]
        * Checking interface objects...                                      [PASSED]
        * Checking network service objects...                            [PASSED]
        * Checking cluster objects...                                        [PASSED]
        * Checking template to node mapping...                        [PASSED]
        * Checking object properties...                                      [PASSED]
        * Checking event processing policy...                            [PASSED]
        Database doesn't contain any errors
        Database check completed

        C:\NetXMS\bin>

        1 Reply Last reply
        0
        • V
          V
          Victor Kirhenshtein
          wrote on last edited by
          #4

          You will have unused column in table "dc_tables". It should not impact server operation besides tiny storage small space overhead.

          Best regards,
          Victor

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups