You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I install and configure an agent to speak with his satellite, I'm facing an issue with the CSR.
Ramdomly (sometimes it work on first try) the CSR is not waiting for validation on master, so the agent enrollment end but there is no communication between agent and satellite.
NB : Before writing here, I opened a topic on community forum : https://community.icinga.com/t/question-about-csr-auto-signing/14403
NB2 : I thought that the version 2.14.5 might fix my issue regarding this pull : #10337
Expected behavior
Enrollement succes with secure communication between agent and satellite.
No visible error during the installation process but there is no communication between agent and satellite.
On GUI I can see : Remote Icinga instance '[agent_fqdn]' is not connected to '[stallite_fqdn]'
On satellite log : information/ApiListener: New client connection for identity '[agent_fqdn]' from [::ffff:xxx.xxx.xxx.xxx]:52882 (certificate validation failed: code 18: self-signed certificate)
I enabled debuglog feature on agent, satellites and master and I found those messages in logs :
On agent :
notice/JsonRpcConnection: Received 'icinga::Hello' message from identity '[satellite_fqdn_1]'.
debug/JsonRpcConnection: Error while reading JSON-RPC message for identity '[satellite_fqdn_1]': Error: End of file
Stacktrace:
0# __cxa_throw in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
1# 0x00005AE3823B6241 in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
2# icinga::NetString::ReadStringFromStream(boost::intrusive_ptr<icinga::Shared<icinga::AsioTlsStream> > const&, boost::asio::basic_yield_context<boost::asio::executor_binder<void (*)(), boost::asio::executor> >, long) in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
3# icinga::JsonRpcConnection::HandleIncomingMessages(boost::asio::basic_yield_context<boost::asio::executor_binder<void (*)(), boost::asio::executor> >) in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
4# 0x00005AE3826540FF in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
5# 0x00005AE382691035 in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
6# make_fcontext in /lib/x86_64-linux-gnu/libboost_context.so.1.74.0
warning/JsonRpcConnection: API client disconnected for identity '[satellite_fqdn_1]'
notice/JsonRpcConnection: Received 'icinga::Hello' message from identity '[satellite_fqdn_2]'.
debug/JsonRpcConnection: Processed JSON-RPC 'icinga::Hello' message for identity '[satellite_fqdn_2]' (took total 0ms).
notice/JsonRpcConnection: Error while reading JSON-RPC message for identity '[satellite_fqdn_2]': Error: End of file
Stacktrace:
0# __cxa_throw in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
1# 0x00005AE3823B6241 in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
2# icinga::NetString::ReadStringFromStream(boost::intrusive_ptr<icinga::Shared<icinga::AsioTlsStream> > const&, boost::asio::basic_yield_context<boost::asio::executor_binder<void (*)(), boost::asio::executor> >, long) in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
3# icinga::JsonRpcConnection::HandleIncomingMessages(boost::asio::basic_yield_context<boost::asio::executor_binder<void (*)(), boost::asio::executor> >) in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
4# 0x00005AE3826540FF in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
5# 0x00005AE382691035 in /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2
6# make_fcontext in /lib/x86_64-linux-gnu/libboost_context.so.1.74.0
notice/JsonRpcConnection: Disconnecting API client for identity '[satellite_fqdn_1]'
On satellites
notice/JsonRpcConnection: Error while reading JSON-RPC message for identity '[agent_fqdn]': Error: End of file [asio.misc:2]
notice/JsonRpcConnection: Error while reading JSON-RPC message for identity '[agent_fqdn]': Error: stream truncated [asio.ssl.stream:1]
debug/JsonRpcConnection: Error while reading JSON-RPC message for identity '[agent_fqdn]': Error: Operation canceled [system:125 at /usr/include/boost/asio/detail/reactive_socket_recv_op.hpp:134 in function 'do_complete']
Your Environment
Version used (icinga2 --version): r2.14.5-1
Operating System and version:
Master : Linux Ubuntu 22.04
Satellites : Linux Ubuntu 24.04
Agents : Linux Ubuntu 22.04 / Ubuntu 24.04 / Debian 12 / Rocky Linux 9
Enabled features (icinga2 feature list): api checker icingadb mainlog
Icinga Web 2 version and modules (System - About):
so the agent enrollment end but there is no communication between agent and satellite.
What does no communication exactly mean? If the icinga2 node setup ... command finished without errors then your actual issue shouldn’t be related to the agent enrolment process. Can you please share the logs with timestamps from both of your satellites and your agent?
Apart from that, the zone configuration of your satellites does not seem to be consistent. It looks like this on your masters, ...
Describe the bug
Hello,
When I install and configure an agent to speak with his satellite, I'm facing an issue with the CSR.
Ramdomly (sometimes it work on first try) the CSR is not waiting for validation on master, so the agent enrollment end but there is no communication between agent and satellite.
NB : Before writing here, I opened a topic on community forum : https://community.icinga.com/t/question-about-csr-auto-signing/14403
NB2 : I thought that the version 2.14.5 might fix my issue regarding this pull : #10337
Expected behavior
Enrollement succes with secure communication between agent and satellite.
To Reproduce
Actual behavior
No visible error during the installation process but there is no communication between agent and satellite.
On GUI I can see :
Remote Icinga instance '[agent_fqdn]' is not connected to '[stallite_fqdn]'
On satellite log :
information/ApiListener: New client connection for identity '[agent_fqdn]' from [::ffff:xxx.xxx.xxx.xxx]:52882 (certificate validation failed: code 18: self-signed certificate)
I enabled debuglog feature on agent, satellites and master and I found those messages in logs :
On agent :
On satellites
Your Environment
icinga2 --version
): r2.14.5-1icinga2 feature list
): api checker icingadb mainlogicinga2 daemon -C
):satellite 1
satellite 2
master1
master2
zones.conf
satellite1 :
Satellite2
The text was updated successfully, but these errors were encountered: