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. Postgresql selection in configuration of server fails

Postgresql selection in configuration of server fails

Scheduled Pinned Locked Moved Support
5 Posts 2 Posters 51.8k 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.
  • R
    R
    ravi2904
    wrote on last edited by
    #1

    After installing the server on windows, while configuring the server, if I select PostgreSQL as database server, I select pgsql.ddr as driver. I am getting following error:

    C:\NetXMS\bin>netxmsd -D 9
    Using configuration file "C:\NetXMS\etc\netxmsd.conf"
    2019.10.15 19:09:35.669 *D* [                  ] LIB directory set to C:\NetXMS\lib
    2019.10.15 19:09:35.676 *D* [dload              ] DLOpen: file="pgsql.ddr", module=0000000000000000
    2019.10.15 19:09:35.676 *E* [db.driver          ] Unable to load database driver module "pgsql.ddr": %1 is not a valid Win32 application.
    NetXMS Core initialization failed

    Please let me know how can I get through this ?

    Thanks and bets regards,

    Ravi

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

      Hi,

      what version you are using? Did you use minimal or full installer? If minimal, what is PostgreSQL client version? Could it be that libpq.dll in your PATH is 32 bit executable?

      Best regards,
      Victor

      1 Reply Last reply
      0
      • R
        R
        ravi2904
        wrote on last edited by
        #3

        Hi Victor,

        I am using netxms-3.0.2305-x64.exe setup.
        The libpq.dll is in c:\netxms\bin folder. The log shows LIB directory set to c:\netxms\lib folder. This folder contains jar files. I tried copying the libpq.dll as well as the pgsql.ddr in the c:\netxms\lib folder, but, get the same error. I have also included the c:\netxms\bin folder in the PATH. But the same error continues.

        I checked with Dependency Walker, the libpq.dll shows as x64 file. But, it also gives error about dependency dlls missing and they are many.

        Thanks and best regards,

        Ravi

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

          Hi,

          could you show dependency walker output?

          Best regards,
          Victor

          1 Reply Last reply
          0
          • R
            R
            ravi2904
            wrote on last edited by
            #5

            Hi Victor,

            I found out the problem. I was giving a wrong name for the datasource. The name of the datasource in the system DSN was "system" and I was typing "localhost" in the server configuration. This problem is now sorted out and I am able to connect NetXMS to Postgres through ODBC driver. However, I think the log or the error which pops out should be more specific.

            I am anyway giving below the output of dependency walker. I used it for the first time, and need to understand it. But, anyway, here it is:

            The log shows following errors:

            Error: At least one required implicit or forwarded dependency was not found.
            Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
            Error: Modules with different CPU types were found.
            Error: A circular dependency was detected.
            Warning: At least one delay-load dependency module was not found.
            Warning: At least one module has an unresolved import due to a missing export function in a delay-load dependent module.

            And, a long list of .DLLs shows: "Error opening file. The system cannot find the file specified(2)":

            I don't know what it means, but the server application is working fine.

            Thanks for your support Victor and god bless you.

            Best regards,

            Ravi

            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