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. Database not migrated correctly with 2.2.8

Database not migrated correctly with 2.2.8

Scheduled Pinned Locked Moved Support
4 Posts 3 Posters 39.3k 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.
  • M
    M
    MartinR
    wrote on last edited by
    #1

    Hi guys,
    my main Problem is, that the database Forgets all devices each time the Netxms Server Service starts.
    I use Version 2.2.8, upgraded from 2.2.7, upgraded from 2.0.M2 in a Windows Environment with around 150 devices to monitor with MariaDB.
    All Upgrades seem to work.
    The Problem exists from 2.2.7 and is not fixed by upgrade.

    The eventlog showed many db Errors, there were many links, which did not match.

    I ran nxdbmgr check, which found many Errors. I let it fix them all.
    I ran nxdbmgr check-data-tables and let it fix one error.

    -> devices already do not survive a Restart of the netxms Server Service.
    -> eventlog Shows an error "table nodes has no column named rack_image_front"

    I suppose a Problem in nxdbmgr in this Version, which does not check this table correctly.

    Now I wanted to create a new install with a new database. The Setup created an empty database file and the Service won't start.
    I suppose another Problem with the Setup, which does not create a new database correctly.

    What can I do now?

    Thank you for your help.
    Regards
    Martin

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

      Hi,

      can you share exact errors you have? What database driver you are using?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • M
        M
        MartinR
        wrote on last edited by
        #3

        Hi Victor,
        it seems that any newly detected device will not be put into the database. In the Eventlog there ist following error message repeating:

        ---8<----

        SQL query failed (Query = "INSERT INTO nodes (primary_ip,primary_name,snmp_port,node_flags,snmp_version,community,status_poll_type,agent_port,auth_method,secret,snmp_oid,uname,agent_version,platform_name,poller_node_id,zone_guid,proxy_node,snmp_proxy,icmp_proxy,required_polls,use_ifxtable,usm_auth_password,usm_priv_password,usm_methods,snmp_sys_name,bridge_base_addr,down_since,driver_name,rack_image_front,rack_position,rack_height,rack_id,boot_time,agent_cache_mode,snmp_sys_contact,snmp_sys_location,last_agent_comm_time,syslog_msg_count,snmp_trap_count,node_type,node_subtype,ssh_login,ssh_password,ssh_proxy,chassis_id,port_rows,port_numbering_scheme,agent_comp_mode,tunnel_id,lldp_id,fail_time_snmp,fail_time_agent,runtime_flags,rack_orientation,rack_image_rear,agent_id,agent_cert_subject,hypervisor_type,hypervisor_info,id) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)"): table nodes has no column named rack_image_front

        --->8---

        During runtime the devices could be treated normally, but after a Restart of the Netxms Server they are all vanished. I assume because they where never in the database.
        I suppose somewhere in the Migration path the additional Column "rack_image_front" is not added correctly. Also the table check of nxdbmgr claims all ok, even if this column is missed. I think this should be fixed.

        Meanwhile I set up a completely new instance of Netxms and it is now working as expected. Due to all Devices where missed either, it was not worth to repair the old database.

        I use SQLite database. In the Version before it was mariaDB.

        Thank you for your help and sorry for the late answer.

        Best Regards
        Martin

        1 Reply Last reply
        0
        • Z
          Z
          Tatjana Dubrovica
          wrote on last edited by
          #4

          It looks like it might be MarinaDB problem we have fixed (we had a lot of problems with MarinaDB recently). Most probably this problem happened due to corrupted DB upgrade. The fix will be included in next release 2.2.9. Now this problem could be fixed only with hands, by manually adding a column to the table or as you did - by recreating the database.
          We highly do not recommend SQLite usage, we recommend PostgreSQL as a database.

          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