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. "unable to load database driver" after Upgrade

"unable to load database driver" after Upgrade

Scheduled Pinned Locked Moved Support
5 Posts 3 Posters 14.4k 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
    max
    wrote on last edited by
    #1

    Hi,

    I upgraded from 1.2.17 to 2.0.4. according the adminguide.

    Now I cannot start the server. I ran netxmsd -D 9, here is the log:

    [07-Jul-2016 11:53:06.821] Log file opened
    [07-Jul-2016 11:53:06.821] [DEBUG] LIB directory set to C:\NetXMS\lib
    [07-Jul-2016 11:53:06.977] [ERROR] Unable to load database driver module "pgsql.ddr": Das angegebene Modul wurde nicht gefunden.
    

    Here is my netxms.conf:

    LogFile = C:\NetXMS\netxmsd.log
    DBDriver = pgsql.ddr
    DBServer = elia
    DBName = netxms_db
    DBLogin = netxms
    DBPassword = ****
    LogFailedSQLQueries = yes
    

    I run netxms server on WinXP 32Bit; Postgres is 9.1 on OpenSuSE 12.4 (Kernel 3.1).
    I checked: the files pqsql.ddr, pqsql.pdb are present in C:\NetXMS\bin\

    Anything I am missing?

    Thank you for any hint,
    Ronald

    1 Reply Last reply
    0
    • U
      U
      Andreas@rc
      wrote on last edited by
      #2

      As the log tells you, the server looks for the driver in C:\NetXMS\lib.

      Simply put the absolute path to your config and you should be good to go: C:\NetXMS\bin\pgsql.ddr

      @max said in "unable to load database driver" after Upgrade:

      Hi,

      I upgraded from 1.2.17 to 2.0.4. according the adminguide.

      Now I cannot start the server. I ran netxmsd -D 9, here is the log:

      [07-Jul-2016 11:53:06.821] Log file opened
      [07-Jul-2016 11:53:06.821] [DEBUG] LIB directory set to C:\NetXMS\lib
      [07-Jul-2016 11:53:06.977] [ERROR] Unable to load database driver module "pgsql.ddr": Das angegebene Modul wurde nicht gefunden.
      

      Here is my netxms.conf:

      LogFile = C:\NetXMS\netxmsd.log
      DBDriver = pgsql.ddr
      DBServer = elia
      DBName = netxms_db
      DBLogin = netxms
      DBPassword = ****
      LogFailedSQLQueries = yes
      

      I run netxms server on WinXP 32Bit; Postgres is 9.1 on OpenSuSE 12.4 (Kernel 3.1).
      I checked: the files pqsql.ddr, pqsql.pdb are present in C:\NetXMS\bin\

      Anything I am missing?

      Thank you for any hint,
      Ronald

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

        Hi,

        this message could also mean that server cannot find required dll for pgsql.ddr. Check that postgreSQL client dll's are in your PATH.

        Best regards,
        Victor

        1 Reply Last reply
        0
        • M
          M
          max
          wrote on last edited by
          #4

          Hello,

          ty for the good hint!
          libpq.dll is present. Sysinternals procmon told me that msvcr120.dll was missing.
          After installing MS VC redistributable 2013 it connects.

          Now I got a new problem when running nxdbmgr upgrade:

          C:\NetXMS\bin>nxdbmgr.exe upgrade
          NetXMS Database Manager Version 2.0.4 Build 8067 (2.0.4-RELEASE) (UNICODE)
          
          Upgrading database...
          Upgrading from version 285 to 286
          Upgrading from version 286 to 287
          Upgrading from version 287 to 288
          Upgrading from version 288 to 289
          Upgrading from version 289 to 290
          Upgrading from version 290 to 291
          Upgrading from version 291 to 292
          Upgrading from version 292 to 293
          Upgrading from version 293 to 294
          SQL query failed (42P01 ERROR:  table "tdata_rows_985" does not exist):
          DROP TABLE tdata_rows_985
          SQL query failed (25P02 ERROR:  current transaction is aborted, commands ignored until end of transaction block):
          SELECT id FROM clusters
          SQL query failed (25P02 ERROR:  current transaction is aborted, commands ignored until end of transaction block):
          SELECT id FROM mobile_devices
          SQL query failed (25P02 ERROR:  current transaction is aborted, commands ignored until end of transaction block):
          INSERT INTO metadata (var_name,var_value) VALUES ('ValidTDataIndex','1')
          Rolling back last stage due to upgrade errors...
          Database upgrade failed
          

          I had run nxdbmgr check before starting the upgrade, it fixed some errors. A 2nd run then gave no errors.

          Ronald

          1 Reply Last reply
          0
          • M
            M
            max
            wrote on last edited by
            #5

            Ok, Solved.

            Running nxdbmgr check-data-tables fixed the issue.
            Up and running again  🙂

            Thank you for help!
            Ronald

            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