-
Omnis Headless Server on Ubuntu 24.04 LTS – no connection to Postgres
Dear $all,
I’m setting up a Web app on a VPS server running Ubuntu 24.04.I can access my app, and the OSAdmin, directly or trough Apache, BUT my app does not log in to Postgres 16.6 on the same server. I assume the problem is not Postgres and its config files.
When remote debugging the app on the Omnis Headless server, I get error messages like:
kPgSqlConnectionBad kPgSqlConnectionBadkDAMServerMethodFailed Postgres error code: 31897
However, I can access this Postgres server running the library from my developer machine.
Looking into the log files of Omnis Headless server, I find these error messages:
{"thread":0,"when":"20250103 18:42:08","type":"headlesserror","length":167}Load error: /usr/local/omnis_software/omnis_studio_headless_app_server_11_36251/xcomp/damdb2.so: libdb2.so.1: cannot open shared object file: No such file or directory
{"thread":0,"when":"20250103 18:42:08","type":"headlesserror","length":169}Load error: /usr/local/omnis_software/omnis_studio_headless_app_server_11_36251/xcomp/ow3.so: libldap-2.5.so.0: cannot open shared object file: No such file or directory
{"thread":0,"when":"20250103 18:42:08","type":"headlesserror","length":165}Load error: /usr/local/omnis_software/omnis_studio_headless_app_server_11_36251/xcomp/oxml.so: libnsl.so.2: cannot open shared object file: No such file or directory
and further down:
{"thread":0,"when":"20250103 18:42:21","type":"tracelog","length":75}libldap-2.5.so.0: cannot open shared object file: No such file or directory
However, I do have libldap installed, but may be not the right version:
root@omnis-on-ubuntu:~# apt search libldap
Sorting... Done
Full Text Search... Done
...
libldap2/noble-updates,now 2.6.7+dfsg-1~exp1ubuntu8.1 amd64 [installed]OpenLDAP libraries
...
This seems to be version 2.xx, and it appears that OHS needs a prior version so.0 (libldap-2.5.so.0). But I can’t find a way to install it (ChatGPT has been of invaluable help, but now I’m stuck…)
Any ideas on how to get my connection from OHS to Postgres running?
Thanx a lot!
Bye Uwe
Log in to reply.