org.apache.manifoldcf.core.interfaces.ManifoldCFException: Error getting connection: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.

Google Groups | Cédric Lardeux | 10 months ago
  1. 0

    Unable to open local file that contain special character as ' or é ?

    Google Groups | 10 months ago | Cédric Lardeux
    org.apache.manifoldcf.core.interfaces.ManifoldCFException: Error getting connection: Connexion refusée. Vérifiez que le nom de machine et le port sont corrects et que postmaster accepte les connexions TCP/IP.
  2. 0

    Unhandled exception when PSQL connection is refused

    GitHub | 3 years ago | ChrisCummins
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  3. 0

    Exception in thread "main" java.lang.Exception: The database server's error messages are not in English, however the installer requires them to be in English when using PostgreSQL earlier than 7.4. You either need to set "lc_messages = 'C'" in your postgresql.conf file and restart PostgreSQL or upgrade to PostgreSQL 7.4 or later. The installer executed the query "SELECT bogus_column_1249697930711 FROM bogus_table_1249697930711 WHERE another_bogus_column_1249697930711 IS NULL" and expected "does not exist" in the error message, but this exception was received instead: java.sql.SQLException: Could not get an administrative connection to the database. Is the database running, listening for TCP connections, and allowing us to connect and authenticate from localhost? Tried connecting to database specified by data source SimpleDataSource[URL='jdbc:postgresql://localhost:5432/template1', driver class='org.postgresql.Driver', properties: user='postgres', password='']. Original error: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.opennms.netmgt.dao.db.InstallerDb.databaseCheckLanguage(InstallerDb.java:1610) at org.opennms.install.Installer.install(Installer.java:225) at org.opennms.install.Installer.main(Installer.java:858) Caused by: java.sql.SQLException: Could not get an administrative connection to the database. Is the database running, listening for TCP connections, and allowing us to connect and authenticate from localhost? Tried connecting to database specified by data source SimpleDataSource[URL='jdbc:postgresql://localhost:5432/template1', driver class='org.postgresql.Driver', properties: user='postgres', password='']. Original error: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.opennms.netmgt.dao.db.InstallerDb.rethrowDatabaseConnectionException(InstallerDb.java:2243) at org.opennms.netmgt.dao.db.InstallerDb.initializeAdminConnection(InstallerDb.java:2220) at org.opennms.netmgt.dao.db.InstallerDb.getAdminConnection(InstallerDb.java:2209) at org.opennms.netmgt.dao.db.InstallerDb.databaseCheckLanguage(InstallerDb.java:1599) ... 2 more Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:122) at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:65) at org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:116) at org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30) at org.postgresql.jdbc3.Jdbc3Connection.<init>(Jdbc3Connection.java:24) at org.postgresql.Driver.makeConnection(Driver.java:369) at org.postgresql.Driver.connect(Driver.java:245) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.opennms.netmgt.dao.db.SimpleDataSource.getConnection(SimpleDataSource.java:79) at org.opennms.netmgt.dao.db.InstallerDb.initializeAdminConnection(InstallerDb.java:2218) ... 4 more Caused by: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.postgresql.core.PGStream.<init>(PGStream.java:60) at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:77) ... 14 more

    The OpenNMS Issue Tracker | 7 years ago | DJ Gregor
    java.lang.Exception: The database server's error messages are not in English, however the installer requires them to be in English when using PostgreSQL earlier than 7.4. You either need to set "lc_messages = 'C'" in your postgresql.conf file and restart PostgreSQL or upgrade to PostgreSQL 7.4 or later. The installer executed the query "SELECT bogus_column_1249697930711 FROM bogus_table_1249697930711 WHERE another_bogus_column_1249697930711 IS NULL" and expected "does not exist" in the error message, but this exception was received instead: java.sql.SQLException: Could not get an administrative connection to the database. Is the database running, listening for TCP connections, and allowing us to connect and authenticate from localhost? Tried connecting to database specified by data source SimpleDataSource[URL='jdbc:postgresql://localhost:5432/template1', driver class='org.postgresql.Driver', properties: user='postgres', password='']. Original error: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Information and help for users and developers of the DSpace system.

    gmane.org | 5 months ago
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
  6. 0

    org.postgresql.util.PSQLException: Connection refused

    Stack Overflow | 4 years ago | user2328488
    org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

  1. linxiaolong 18 times, last 3 weeks ago
  2. Kialandei 1 times, last 1 month ago
  3. DoktorDoener666 41 times, last 2 weeks ago
  4. kjhdofjosvs 2 times, last 1 month ago
  5. Gatgeagent 1 times, last 2 months ago
22 more registered users
65 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.net.ConnectException

    Connection refused

    at java.net.PlainSocketImpl.socketConnect()
  2. Java RT
    Socket.<init>
    1. java.net.PlainSocketImpl.socketConnect(Native Method)
    2. java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    3. java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    4. java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    5. java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    6. java.net.Socket.connect(Socket.java:579)
    7. java.net.Socket.connect(Socket.java:528)
    8. java.net.Socket.<init>(Socket.java:425)
    9. java.net.Socket.<init>(Socket.java:208)
    9 frames
  3. PostgreSQL JDBC Driver
    Driver.connect
    1. org.postgresql.core.PGStream.<init>(PGStream.java:62)
    2. org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:76)
    3. org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
    4. org.postgresql.jdbc2.AbstractJdbc2Connection.<init>(AbstractJdbc2Connection.java:125)
    5. org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
    6. org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
    7. org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
    8. org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
    9. org.postgresql.Driver.makeConnection(Driver.java:393)
    10. org.postgresql.Driver.connect(Driver.java:267)
    10 frames
  4. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:571)
    2. java.sql.DriverManager.getConnection(DriverManager.java:215)
    2 frames
  5. org.apache.manifoldcf
    InitializeAndRegister.main
    1. org.apache.manifoldcf.core.jdbcpool.ConnectionPool.getConnection(ConnectionPool.java:118)
    2. org.apache.manifoldcf.core.database.ConnectionFactory.getConnectionWithRetries(ConnectionFactory.java:120)
    3. org.apache.manifoldcf.core.database.ConnectionFactory.getConnection(ConnectionFactory.java:75)
    4. org.apache.manifoldcf.core.database.Database.executeUncachedQuery(Database.java:784)
    5. org.apache.manifoldcf.core.database.Database$QueryCacheExecutor.create(Database.java:1444)
    6. org.apache.manifoldcf.core.cachemanager.CacheManager.findObjectsAndExecute(CacheManager.java:146)
    7. org.apache.manifoldcf.core.database.Database.executeQuery(Database.java:191)
    8. org.apache.manifoldcf.core.database.DBInterfacePostgreSQL.createUserAndDatabase(DBInterfacePostgreSQL.java:538)
    9. org.apache.manifoldcf.core.system.ManifoldCF.createSystemDatabase(ManifoldCF.java:1005)
    10. org.apache.manifoldcf.crawler.system.ManifoldCF.createSystemDatabase(ManifoldCF.java:126)
    11. org.apache.manifoldcf.crawler.InitializeAndRegister.doExecute(InitializeAndRegister.java:37)
    12. org.apache.manifoldcf.crawler.InitializeAndRegister.main(InitializeAndRegister.java:60)
    12 frames