Secretless Broker: 'psql: FATAL: dial tcp 127.0.0.1:5436: connect: connection refused' or 'psql: FATAL: dial tcp: missing address' when starting Secretless Broker

Secretless Broker: 'psql: FATAL: dial tcp 127.0.0.1:5436: connect: connection refused' or 'psql: FATAL: dial tcp: missing address' when starting Secretless Broker

92
Created On 11/10/26 11:00 AM - Last Modified 11/10/26 15:55 PM


Symptom


When starting secretless broker, the broker fails to start. The following appears in the logs: 

2019/05/29 12:32:45 Secretless starting up...
2019/05/29 12:32:45 Loading internal plugins...
2019/05/29 12:32:45 - ConfigurationManagers: [configfile k8s/crd]
2019/05/29 12:32:45 - ConnectionManagers: []
2019/05/29 12:32:45 - Providers: [literal vault aws conjur env file keychain kubernetes]
2019/05/29 12:32:45 - Handlers: [http/basic_auth http/conjur mysql pg ssh sshagent http/aws]
2019/05/29 12:32:45 - Listeners: [pg ssh ssh-agent http mysql]
2019/05/29 12:32:45 Completed loading internal plugins.
2019/05/29 12:32:45 Loading external library plugins...
2019/05/29 12:32:45 open /usr/local/lib/secretless: no such file or directory
2019/05/29 12:32:45 Registering shutdown signal listeners...
2019/05/29 12:32:45 Initializing configuration manager 'configfile'...
2019/05/29 12:32:45 Trying to load ./secretless.yml...
2019/05/29 12:32:45 Configuration file ./secretless.yml loaded
2019/05/29 12:32:45 Configuration manager 'configfile' initialized (configSpec: '').
2019/05/29 12:32:45 Initializing connection managers...
2019/05/29 12:32:45 Configuration manager 'configfile' provided new configuration...
2019/05/29 12:32:45 Reloading...
2019/05/29 12:32:45 Initialization of plugins done.
2019/05/29 12:32:45 Initializing the proxy...
2019/05/29 12:32:45 ----------------------------
2019/05/29 12:32:45 Registering reload signal listeners...
2019/05/29 12:32:45 Initializing health check on :5335...
2019/05/29 12:32:45 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/29 12:32:45 Starting all listeners and handlers...
2019/05/29 12:32:45 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:32:45 Shutting down 'pg' listener...
2019/05/29 12:32:45 Shutting down listener's handlers...
2019/05/29 12:32:45 Starting all listeners and handlers...
2019/05/29 12:32:45 pg listener 'pg_listener' listening at: [::]:5555
2019/05/29 12:32:52 Handling connection &{{0xc000285680}}
2019/05/29 12:32:52 h.Client version : 196608, (SSL mode: false)
2019/05/29 12:32:52 Instantiating provider 'literal'
2019/05/29 12:32:52 pg_handler backend connection parameters: [sslmode address username password]

The client output log may also contain one of the following:

psql: FATAL:  dial tcp 127.0.0.1:5436: connect: connection refused
psql: FATAL:  dial tcp: missing address


Environment


Secretless Broker 1.0

Cause


Connections to the server specified in the address field of the secretless configuration file are being blocked

Resolution


  • Ensure that address field in Secretless configuration points to a reachable server by connecting directly to it.
  • Ensure that Secretless outgoing connections are not blocked


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000000xszCAA&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail