Api Listener : Deadline has expired

Hi everyone,

When I am trying to use icinga api to execute command , I receive an error like this,
Deadline has expired .

[2024-03-11 09:52:53 +0100] notice/ApiListener: Sending message 'event::CheckResult' to 'MyHostName'
[2024-03-11 09:52:53 +0100] notice/JsonRpcConnection: Received 'event::ExecuteCommand' message from identity 'MyHostName'.
[2024-03-11 09:52:53 +0100] notice/ApiListener: Discarding 'ExecuteCheckFromQueue' event for checkable 'MyHostName!Swap' from 'MyHostName': Deadline has expired.
[2024-03-11 09:52:53 +0100] notice/JsonRpcConnection: Received 'log::SetLogPosition' message from identity 'MyHostName'.

This is my command
image

This is how I send curl request.

curl -k -s -S -i -u root:password-H 'Accept: application/json' -X POST 'https://MyIp:5665/v1/actions/execute-command' -d '{"type": "Service", "service": "MyHostName!Swap", "ttl": 15, "macros": { "commad_endpoint": "MyHostName", "ls_dir": "/tmp/foo" }, "command": "process-test", "command_type": "EventCommand" }'

Does anyone have any idea what could be the reason ?

Hello @gurhan and thanks for reporting!

Looks like a bug, please open an issue on GitHub.

Best,
A/K

Icinga APİ execution command bug · Issue #10026 · Icinga/icinga2 (github.com)

After when I increased ttl value inside curl request . My problem has fixed.
I increased the value to 60 .