-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Warn if local clock and host clock are out of sync #1448
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still seeing this in the output:
[default-master-0] Retrying after 2 seconds (#33) ...
[default-master-0] SSL_connect returned=1 errno=0 state=error: certificate verify failed (certificate is not yet valid) (OpenSSL::SSL::SSLError) Unable to verify certificate. This may be an issue with the remote host or with Excon. Excon has certificates bundled, but these can be customized:
[default-master-0]
[default-master-0] `Excon.defaults[:ssl_ca_path] = path_to_certs`
[default-master-0] `ENV['SSL_CERT_DIR'] = path_to_certs`
[default-master-0] `Excon.defaults[:ssl_ca_file] = path_to_file`
[default-master-0] `ENV['SSL_CERT_FILE'] = path_to_file`
[default-master-0] `Excon.defaults[:ssl_verify_callback] = callback`
[default-master-0] (see OpenSSL::SSL::SSLContext#verify_callback)
[default-master-0] or:
[default-master-0] `Excon.defaults[:ssl_verify_peer] = false` (less secure).
Can we format it better (without excon stuff)?
Now it should only display |
…luster into feature/clock_sync_warn
@@ -17,7 +17,11 @@ def self.format_exception(exc, severity = "ERROR") | |||
backtrace = "\n #{exc.backtrace.join("\n ")}" | |||
end | |||
|
|||
"Error: #{exc.message.strip}#{backtrace}" | |||
if exc.is_a?(Excon::Errors::CertificateError) | |||
"Error: #{exc.message.lines.first[/(.+?\))/, 1]}#{backtrace}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this really safe? Does excon always have (something)
in place that we can use for search?
Shows a warning if localhost and host clocks are more than 60 seconds apart.