Secretless Broker: 'ERROR: MySQL Error 2000 (HY000): #HY000dial tcp: lookup localhosts: no such host' when starting secretless broker

Secretless Broker: 'ERROR: MySQL Error 2000 (HY000): #HY000dial tcp: lookup localhosts: no such host' when starting secretless broker

99
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:06 PM


Symptom


When starting secretless broker, the broker fails to start. The following appears in the logs: 
 
2019/05/29 14:02:22 Secretless starting up...
2019/05/29 14:02:22 Loading internal plugins...
2019/05/29 14:02:22 - ConfigurationManagers: [configfile k8s/crd]
2019/05/29 14:02:22 - ConnectionManagers: []
2019/05/29 14:02:22 - Providers: [literal vault aws conjur env file keychain kubernetes]
2019/05/29 14:02:22 - Handlers: [http/basic_auth http/conjur mysql pg ssh sshagent http/aws]
2019/05/29 14:02:22 - Listeners: [http mysql pg ssh ssh-agent]
2019/05/29 14:02:22 Completed loading internal plugins.
2019/05/29 14:02:22 Loading external library plugins...
2019/05/29 14:02:22 open /usr/local/lib/secretless: no such file or directory
2019/05/29 14:02:22 Registering shutdown signal listeners...
2019/05/29 14:02:22 Initializing configuration manager 'configfile'...
2019/05/29 14:02:22 Trying to load ./secretless.yml...
2019/05/29 14:02:22 Configuration file ./secretless.yml loaded
2019/05/29 14:02:22 Configuration manager 'configfile' initialized (configSpec: '?watch=true').
2019/05/29 14:02:22 Initializing connection managers...
2019/05/29 14:02:22 Configuration manager 'configfile' provided new configuration...
2019/05/29 14:02:22 Reloading...
2019/05/29 14:02:22 Initialization of plugins done.
2019/05/29 14:02:22 Initializing the proxy...
2019/05/29 14:02:22 ----------------------------
2019/05/29 14:02:22 Initializing health check on :5335...
2019/05/29 14:02:22 Attaching filesystem notifier onto ./secretless.yml
2019/05/29 14:02:22 Initialization of health check done. You can access the endpoint at `/live` and `/ready`.
2019/05/29 14:02:22 Starting all listeners and handlers...
2019/05/29 14:02:22 Registering reload signal listeners...
2019/05/29 14:02:22 mysql listener 'mysql_listener' listening at: [::]:3307
2019/05/29 14:02:22 Shutting down 'mysql' listener...
2019/05/29 14:02:22 Shutting down listener's handlers...
2019/05/29 14:02:22 Starting all listeners and handlers...
2019/05/29 14:02:22 mysql listener 'mysql_listener' listening at: [::]:3307
2019/05/29 14:02:24 Instantiating provider 'literal'

The client output log may also contain one of the following:
 
ERROR: MySQL Error 2000 (HY000): #HY000dial tcp: lookup localhosts: no such host

ERROR: MySQL Error 2000 (HY000): #HY000dial tcp 127.0.0.1:5433: connect: connection refused


Environment


Secretless Broker 1.0

Cause


Secretless broker is unable to contact SQL

Resolution


  • Ensure that host and port fields in Secretless configuration point 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=kA1hj0000001Ls7CAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail