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. Upgrade to 6.0.2 - Database upgrade fails

Upgrade to 6.0.2 - Database upgrade fails

Scheduled Pinned Locked Moved Support
7 Posts 4 Posters 20.6k 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.
  • D
    D
    dreamscape
    wrote on last edited by
    #1

    Hi all,

    Just updating from 6.0.1 to 6.0.2, get the error below?

    Any ideas please

    C:\NetXMS\bin>nxdbmgr.exe check
    NetXMS Database Manager Version 6.0.2 Build 6.0-504-g549db2d3a0

    Checking database (excluding collected data):
    Your database has format version 60.33, this tool is compiled for version 60.34.
    Use "upgrade" command to upgrade your database first.
    Database check aborted

    C:\NetXMS\bin>nxdbmgr.exe upgrade
    NetXMS Database Manager Version 6.0.2 Build 6.0-504-g549db2d3a0

    Upgrading database...
    Upgrading from version 60.33 to 60.34
    Rolling back last stage due to upgrade errors...
    Database upgrade failed

    1 Reply Last reply
    0
    • D
      D
      dreamscape
      wrote on last edited by
      #2

      Bit more info

      C:\NetXMS\bin>nxdbmgr -t upgrade
      NetXMS Database Manager Version 6.0.2 Build 6.0-504-g549db2d3a0

      Upgrading database...
      Upgrading from version 60.33 to 60.34
      Rolling back last stage due to upgrade errors...
      Database upgrade failed
      >>> SELECT var_value FROM metadata WHERE var_name='PendingOnlineUpgrades'

      C:\NetXMS\bin>

      1 Reply Last reply
      0
      • D
        D
        dreamscape
        wrote on last edited by
        #3

        Anyone have any ideas please?

        I also do not have a 'PendingOnlineUpgrades' in my metadata table, see below.


        netxms-issue.jpg

        1 Reply Last reply
        0
        • F
          F
          Filipp Sudanov
          wrote on last edited by
          #4

          This issue was fixed, fix will be available in next patch release.

          If you do not want to wait for it, you can run these queries to the database:

          ALTER TABLE userdb_custom_attributes ALTER COLUMN attr_value varchar(max) NULL;
          UPDATE metadata SET var_value='34' WHERE var_name='SchemaVersionMinor';

          and nxdbmgr upgrade again after that

          1 Reply Last reply
          0
          • D
            D
            dreamscape
            wrote on last edited by
            #5

            Great, thanks for the reply and for fixing  it.

            I get this after running the sql

            C:\NetXMS\bin>nxdbmgr upgrade
            NetXMS Database Manager Version 6.0.2 Build 6.0-504-g549db2d3a0

            Upgrading database...
            Core database schema is up to date
            Database upgrade succeeded

            1 Reply Last reply
            0
            • J
              J
              johnnyva
              wrote on last edited by
              #6

              When do you expect the next patch release to be available for this fix?

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

                Just published 6.0.3 - it should have the fix.

                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