mirror of
https://github.com/elastic/logstash.git
synced 2025-04-24 14:47:19 -04:00
Properly catch connection refused error when installing plugin.
Fixes #7447
This commit is contained in:
parent
aadb1ef007
commit
beb371e79f
1 changed files with 2 additions and 2 deletions
|
@ -36,10 +36,10 @@ module LogStash module PluginManager module PackFetchStrategy
|
||||||
PluginManager.ui.debug("Package not found at: #{uri}")
|
PluginManager.ui.debug("Package not found at: #{uri}")
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
rescue SocketError => e
|
rescue SocketError, Errno::ECONNREFUSED, Errno::EHOSTUNREACH => e
|
||||||
# This probably means there is a firewall in place of the proxy is not correctly configured.
|
# This probably means there is a firewall in place of the proxy is not correctly configured.
|
||||||
# So lets skip this strategy but log a meaningful errors.
|
# So lets skip this strategy but log a meaningful errors.
|
||||||
PluginManager.ui.debug("SocketError, skipping Elastic pack, exception: #{e}")
|
PluginManager.ui.debug("Network error, skipping Elastic pack, exception: #{e}")
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue