How to check SUSE Manager database connection setup is correct

This document (7023762) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Manager 3.1
SUSE Manager 3.2

Situation

The SUSE Manager installation has grown and connection limits reached messages are within the logs /var/log/rhn/... for any services connection to the database.

Example A:

2019-08-09 13:23:36,553 [salt-event-connection-watchdog] ERROR com.suse.manager.reactor.SaltReactor - Unable to connect: com.suse.salt.netapi.exception.SaltException: java.sql.SQLException: Connection Error: Connection refused: localhost/127.0.0.1:5432, retrying in 5 seconds.

Example B:
INFO   | jvm 1    | 2019/08/09 13:23:47 | Caused by: java.net.ConnectException: Connection refused (Connection refused)
INFO   | jvm 1    | 2019/08/09 13:23:47 |       at java.net.Socket.connect(Socket.java:666)
INFO   | jvm 1    | 2019/08/09 13:23:47 |       at org.postgresql.core.PGStream.<init>(PGStream.java:61)
INFO   | jvm 1    | 2019/08/09 13:23:47 |       at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:120)

Example C:
INFO   | jvm 1    | 2019/08/09 13:39:30 | WARNING: com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@5c391ca6 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:
INFO   | jvm 1    | 2019/08/09 13:39:30 | org.postgresql.util.PSQLException: FATAL: sorry, too many clients already

Resolution

Running following command will show if there is any mismatch between database, apache and tomcat connection settings:
/usr/lib/susemanager/bin/susemanager-connection-check

Adjust postgresql max_connections setting in:
/var/lib/pgsql/data/postgresql.conf

Cause

Requirements for SUSE Manager have increased and settings needs to be adjusted accordingly due to growth of connected servers or increased api usage.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7023762
  • Creation Date: 08-Mar-2019
  • Modified Date:03-Mar-2020
    • SUSE Manager

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Join Our Community

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.


SUSE Customer Support Quick Reference Guide SUSE Technical Support Handbook Update Advisories
Support FAQ

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.

Go to Customer Center