NetXMS Support Forum

English Support => General Support => Topic started by: lindeamon on March 16, 2020, 11:59:07 AM

Title: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 16, 2020, 11:59:07 AM
hi,

trying to install newest netxms version with postgres fails with driver loading.
tried v10.12, 11.x and 12.x of postgres

Lindeamon
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: Woody on March 16, 2020, 01:36:04 PM
Hello,
have you installed netxms-dbdrv-pgsql?
Can you send logs and your netxms configuration file?
What operating system do you use?

Best regards
Woody
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 16, 2020, 01:45:23 PM
Hi Woody,

didn't know that i have to install separately, is it new ?
using windows 2012 r2
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: Woody on March 16, 2020, 01:54:09 PM
Hi,
sorry I thought you were using Linux.
I do not have much experience with netxms on windows, but maybe this guide will help you:
https://www.netxms.org/documentation/adminguide/installation.html#installing-on-windows (https://www.netxms.org/documentation/adminguide/installation.html#installing-on-windows)
If it still doesn't work i recommend uploading the exact error message or logs and your configuration,
so other people can easy help you.

Best regards
Woody
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 18, 2020, 08:15:07 AM
victor ?
netxms Team ?
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: Victor Kirhenshtein on March 18, 2020, 10:54:47 AM
Hi,

most likely there is some DLL conflict. I'll try to check if all dependencies for pgsql.ddr were added to installer.

Best regards,
Victor
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 18, 2020, 10:46:54 PM
Thank you very much !
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: mibox on March 24, 2020, 09:00:35 PM
Hi,

Follow the below steps and you will have NetXMS working, regardless if PG is installed on your local NetXMS host or on a remote DB server (assuming pgadmin4 works remotely for you).

1. Install / upgrade the required version of PostgreSQL on your NetXMS machine or extract the \bin folder from PostgreSQL binary zip package to a folder of your choice (actually you will need dlls only).
2. Make sure the folder is included in windows env path variable or in case of the regular PostgreSQL install, execute the batch file that comes with the install to set local environment up. Make sure it has successfully applied the required changes. (Run "cmd" and then "set" commands to verify system variables. In case they are not set, do it by hand following the batch file content).
3. Rename ...\NetXMS\bin\libpq.dll  to e.g. "_libpq.dll"
4.From the folder to which you have extracted PostgreSQL package or from ..\PostgreSQL\xx\bin\ installation folder, copy "libpq.dll" file to ...\NetXMS\bin\ folder (in place of the earlier renamed dll).
5. Start netxmsd.exe -D 9 to make sure it follows your config file settings and it connects to DB (can be on localhost or on remote serverver machine).
6. Start nx client, it should work fine, stop netxmsd.exe and start NetXMS service the normal way. Reconnect the client.

I hope it'd be of help.

BR
MI
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 25, 2020, 08:07:36 AM
thank you MI.
will give it a try but i prefer to wait for victor's fix. this way, i know that the one who created the software checks the integrity of it's work.

BR,
Lindeamon
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: Filipp Sudanov on March 30, 2020, 04:36:47 PM
3.2 bugfix release is out. Please check, if it fixed this issue.
Title: Re: latest version - problem loading postgres driver upon new installation
Post by: lindeamon on March 30, 2020, 08:59:25 PM
bug fixed.
thank you