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. 3.3 timescale upgrade procedure

3.3 timescale upgrade procedure

Scheduled Pinned Locked Moved Support
3 Posts 2 Posters 18.9k 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.
  • J
    J
    jermudgeon
    wrote on last edited by
    #1

                   
    WARNING: Background upgrades pending. Please run nxdbmgr background-upgrade when possible.
    [jaustin@jaustin systems]$ nxdbmgr background-upgrade                                   
    NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)
                                                                             
    Running background upgrade procedure for version 33.6
    Converting table idata_sc_default                   
    Converting table idata_sc_7     
    Converting table idata_sc_30                                                   
    Converting table idata_sc_90                                             
    Converting table idata_sc_180                                 
    Converting table idata_sc_other                                                                                                                                           
    WARNING:  terminating connection because of crash of another server process
    DETAIL:  The postmaster has commanded this server process to roll back the current transaction and exit, because another server process exited abnormally and possibly corru
    pted shared memory.                                                                     
    HINT:  In a moment you should be able to reconnect to the database and repeat your command.

    ----

    I restarted the background-upgrade process and got this:

    RNING: Background upgrades pending. Please run nxdbmgr background-upgrade when possible.
    [jaustin@jaustin systems]$ nxdbmgr background-upgrade
    NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)

    Running background upgrade procedure for version 33.6
    Converting table idata_sc_default
    SQL query failed (42P01 ERROR:  relation "v33_5_idata_sc_default" does not exist
    LINE 1: ...stamp(idata_timestamp),idata_value,raw_value FROM v33_5_idat...
                                                                ^):
    INSERT INTO idata_sc_default (item_id,idata_timestamp,idata_value,raw_value) SELECT item_id,to_timestamp(idata_timestamp),idata_value,raw_value FROM v33_5_idata_sc_default
    Background upgrade procedure for version 33.6 failed

    ----

    So apparently the upgrade process can't handle a resume, as it breaks on the tables that have already been migrated. (It had already dropped successful tables.)

    I manually completed the inserts from the remaining tables using ON CONFLICT DO NOTHING, and dropped the remaining v33_5 tables.

    However, the same problem exists -- I can't complete the upgrade because the v33_5 tables no longer exist.

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

      Hi,

      if you already migrated and dropped temporary tables you should clear pending background update indicator by executing query

      UPDATE metadata SET var_value='' WHERE var_name='PendingOnlineUpgrades';

      Best regards,
      Victor

      1 Reply Last reply
      0
      • J
        J
        jermudgeon
        wrote on last edited by
        #3

        Thanks, Victor.

        [jaustin@jaustin ~]$ nxdbmgr background-upgrade
        NetXMS Database Manager Version 3.3.285 Build 3.3-285-gfe2e9b646f (UNICODE)

        No pending background upgrades

        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