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 2.0.8

Upgrade to 2.0.8

Scheduled Pinned Locked Moved Support
10 Posts 3 Posters 31.1k 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.
  • A
    A
    andriusg
    wrote on last edited by
    #1

    Hello,
    later i have netxms 1.2.17x64 netxms server and today maked upgrade to 2.0.8. On 1.2.17 everything worked.
    Atfer upgrade i try to upgrade database and get this error . in logs i see, what driver works fine.

    C:\NetXMS\bin>nxdbmgr upgrade
    NetXMS Database Manager Version 2.0.8 Build 8078 (2.0.8-RELEASE) (UNICODE)

    Upgrading database...
    Upgrading from version 345 to 346
    Rolling back last stage due to upgrade errors...
    Database upgrade failed

    How to solve this problem ?

    1 Reply Last reply
    0
    • A
      A
      Alex Kirhenshtein
      wrote on last edited by
      #2

      Please provide more information:

      1. database type and version
      2. run "nxdbmgr -t upgrade" and post failed queries
      1 Reply Last reply
      0
      • A
        A
        andriusg
        wrote on last edited by
        #3
        1. database type MSSQL server, version 9.00.5069.00.
        2. C:\NetXMS\bin>nxdbmgr -t upgrade
          NetXMS Database Manager Version 2.0.8 Build 8078 (2.0.8-RELEASE) (UNICODE)

        Upgrading database...
        Upgrading from version 345 to 346
        >>> SELECT name FROM sysobjects WHERE xtype='PK' AND parent_obj=OBJECT_ID('clust
        er_sync_subnets')
        Rolling back last stage due to upgrade errors...
        Database upgrade failed

        1 Reply Last reply
        0
        • A
          A
          Alex Kirhenshtein
          wrote on last edited by
          #4

          I've created ticked for dev team: https://dev.raden.solutions/issues/1389

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

            Hi,

            could you please run this query manually (for example in SQL Server Management Studio) and post detailed error message?

            Best regards,
            Victor

            1 Reply Last reply
            0
            • A
              A
              andriusg
              wrote on last edited by
              #6

              manual query result is in attachment.
               in server i logged as domain administrator . here is my netxms server configuration file
              # NetXMS Server configuration file
              # Created by NetXMS Server configuration wizard at Thu Jan 05 15:36:26 2017
              #

              LogFile = C:\NetXMS\New Text Document.txt
              DBDriver = mssql.ddr
              DBServer = HPDL580
              DBName = NetXMSn
              DBLogin = *
              LogFailedSQLQueries = yes


              Capture.PNG

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

                Please check that cluster_sync_subnets table has primary key. If not, try to create primary key (using columns cluster_id and subnet_addr) and re-run DB migration.

                Best regards,
                Victor

                1 Reply Last reply
                0
                • A
                  A
                  andriusg
                  wrote on last edited by
                  #8

                  In cluster_sync_subnets table columns cluster_id and subnet_addr doesnt have primary key. I set this items primary key.

                  I try run nxdbmgr -t upgrade. Here is output
                  C:\NetXMS\bin>nxdbmgr -t upgrade
                  NetXMS Database Manager Version 2.0.8 Build 8078 (2.0.8-RELEASE) (UNICODE)

                  Upgrading database...
                  Upgrading from version 345 to 346
                  >>> SELECT name FROM sysobjects WHERE xtype='PK' AND parent_obj=OBJECT_ID('clust
                  er_sync_subnets')
                  >>> ALTER TABLE cluster_sync_subnets DROP CONSTRAINT PK_cluster_sync_subnets
                  >>> SELECT name FROM sysobjects WHERE xtype='PK' AND parent_obj=OBJECT_ID('addre
                  ss_lists')
                  Rolling back last stage due to upgrade errors...
                  Database upgrade failed

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

                    It seems there is same problem with address_lists table. Try to set PK using columns list_type,community_id,addr_type,addr1,addr2. Also check vpn_connector_networks table - if it doesn't have PK, set it on columns vpn_id,ip_addr.

                    Best regards,
                    Victor

                    1 Reply Last reply
                    0
                    • A
                      A
                      andriusg
                      wrote on last edited by
                      #10

                      Thanks for help.
                      Database upgraded succeful.

                      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