Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[dev.icinga.com #7426] Cli command: pki request throws exception on connection failure #2091

Closed
icinga-migration opened this issue Oct 21, 2014 · 3 comments
Labels
area/cli Command line helpers bug Something isn't working
Milestone

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/7426

Created by mfriedrich on 2014-10-21 19:07:21 +00:00

Assignee: mfriedrich
Status: Resolved (closed on 2014-10-23 14:10:02 +00:00)
Target Version: 2.2.0
Last Update: 2014-10-23 14:10:02 +00:00 (in Redmine)

Icinga Version: v2.1.1-136-g69bf146

Missing try catch block.

[2014-10-21 21:05:44 +0200] critical/TcpSocket: Invalid socket: Connection refused
Caught unhandled exception.
Current time: 2014-10-21 21:05:44 +0200

Application information:
  Application version: v2.1.1-136-g69bf146
  Installation root: /usr
  Sysconf directory: /etc
  Run directory: /var/run
  Local state directory: /var
  Package data directory: /usr/share/icinga2
  State path: /var/lib/icinga2/icinga2.state
  Objects path: /var/cache/icinga2/icinga2.debug
  Vars path: /var/cache/icinga2/icinga2.vars
  PID path: /var/run/icinga2/icinga2.pid
  Application type: icinga/IcingaApplication

/home/michi/coding/icinga/icinga2/lib/base/tcpsocket.cpp(209): Throw in function void icinga::TcpSocket::Connect(const icinga::String &, const icinga::String &)
Dynamic exception type: boost::exception_detail::clone_impl
std::exception::what: std::exception
[icinga::StackTrace*] = 
    (0) libbase.so: void boost::throw_exception(icinga::socket_error const&) (+0x78) [0x7ff65ada8f28]
    (1) libbase.so: void boost::exception_detail::throw_exception_(icinga::socket_error const&, char const*, char const*, int) (+0xb3) [0x7ff65ada84d3]
    (2) libbase.so: icinga::TcpSocket::Connect(icinga::String const&, icinga::String const&) (+0x58f) [0x7ff65adc269f]
    (3) libcli.so: icinga::PkiUtility::RequestCertificate(icinga::String const&, icinga::String const&, icinga::String const&, icinga::String const&, icinga::String const&, icinga::String const&, icinga::String const&) (+0x6a) [0x7ff65a41e63a]
    (4) libcli.so: icinga::AgentSetupCommand::SetupAgent(boost::program_options::variables_map const&, std::vector > const&) (+0x16f1) [0x7ff65a3b7041]
    (5) libcli.so: icinga::AgentSetupCommand::Run(boost::program_options::variables_map const&, std::vector > const&) const (+0x27a) [0x7ff65a3b440a]
    (6) icinga2: Main() (+0x4959) [0x423529]
    (7) icinga2: main (+0x2a) [0x42386a]
    (8) libc.so.6: __libc_start_main (+0xf5) [0x3090a21d65]
    (9) icinga2() [0x41eb05]


[icinga::ContextTrace*] = 

111, "Connection refused"[boost::errinfo_api_function_*] = connect

***
* This would indicate a runtime problem or configuration error. If you believe this is a bug in Icinga 2
* please submit a bug report at https://dev.icinga.org/ and include this stack trace as well as any other
* information that might be useful in order to reproduce this problem.
***
Abgebrochen

Changesets

2014-10-23 14:07:48 +00:00 by (unknown) 339d060

Cli: Catch ssl errors in pki request command

fixes #7426

Relations:

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-10-21 19:07:31 +00:00

  • Relates set to 7423

@icinga-migration
Copy link
Author

Updated by mfriedrich on 2014-10-23 14:08:28 +00:00

  • Category set to CLI
  • Status changed from New to Assigned
  • Assigned to set to mfriedrich
  • Estimated Hours set to 1

@icinga-migration
Copy link
Author

Updated by Anonymous on 2014-10-23 14:10:03 +00:00

  • Status changed from Assigned to Resolved
  • Done % changed from 0 to 100

Applied in changeset 339d060.

@icinga-migration icinga-migration added bug Something isn't working area/cli Command line helpers labels Jan 17, 2017
@icinga-migration icinga-migration added this to the 2.2.0 milestone Jan 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli Command line helpers bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant