Installation and Startup Failure of Postgres Database in some Linux Distributions
Log Traces
- Jul 27, 2023 6:24:49 PM [SYSOUT] [INFO] : /home/sdpuser/ManageEngine/ServiceDesk/pgsql/bin/psql: error while loading shared libraries: libtinfo.so.5: cannot open shared object file: No such file or directory
Root Cause
- libtinfo.so is a shared library that provides terminal information handling functionality. It is part of the GNU C Library (glibc) and is used for terminal-related operations, such as handling terminal capabilities, terminal size, and terminal input/output.
- From the trace, it seems like the library could not be accessed. either it should be missing or corrupted or restricted.
WorkAround
- As mentioned in the above points, this library is required for the successful installation and startup. you can install the package using the below command.
- sudo yum install ncurses-compat-libs
- If you had already installed, but still this issue persist, which implies that the required version of library is not found. In this case, you can follow any one of the below two procedure after locating the 'libtinfo.so' package in your machine, using the command " locate libtinfo.so".
- Duplicate and Rename
- Make a copy of the file which is named "libtinfo.so.<x>" (For Example, libtinfo.so.6) in the same directory.
- Rename the copied file to "libtinfo.so.5"
- Make a symlink for the file.
- sudo ln -s <path of the located file> <same path of the located file, but rename the filename to "libtinfo.so.5">
- For Example,
- sudo ln -s /usr/lib/x_64/libtinfo.so.6 /usr/lib/x_64/libtinfo.so.5
- After this procedure, Kindly try to start the server. If the same issue persist, Kindly collect the logs and report it to our support team.
New to ADSelfService Plus?
Related Articles
Linux - Startup issue
System Halted error message during startup (Fresh installation) Error Trace : [16:36:59:243]|[04-15-2021]|[com.adventnet.db.adapter.postgres.DefaultPostgresDBInitializer]|[INFO]|[1]: ErrorStream ::: /opt/MSP/ServiceDeskPlus-MSP/pgsql/bin/psql: error ...
Migration failure for Postgres Database with a blank space in it
Trace : \ManageEngine\ServiceDesk\Patch\AdventNet_ManageEngine_ServiceDesk_Plus-14.2.0-SP-1.0.0\SERVICEDESK\PreInstall\pg_migrate\pgsql_old\bin\pg_dumpall.exe", -U, postgres, -p, 65433, -h, 127.0.0.1, -r, -w, |, ...
How to Connect External Postgres
Install a External Postgres such that the version of that postgres is currently in the series of inbuilt postgres of our Application. Say for example, In Servicedeskplus Application version 14010, which has postgres version 10.21, then you should ...
Startup issue in Linux after fresh installation_Error code 10001
In certain scenario, the application cannot be started just after the fresh install. Below are the error traces, [06:24:57:427]|[10-11-2021]|[pglog]|[INFO]|[18]: -sh: 1: /root/ManageEngine/ServiceDeskPlus-MSP/pgsql/bin/pg_ctl: Permission denied| ...
10.5 Linux Upgrade failure and solutions
Traces in logs : 1. java.lang.Exception: InitPgsqlScript exited with value :: 1 at com.adventnet.persistence.PostgresPreProcessor.executeInitPgsqlScript(PostgresPreProcessor.java:1733) 2. PGSQL Permission related errors. 3. SDP MSP installed as root ...