API request failed: Stage creation failed. (RestApiResponse.php:113)

Hello,

I have a problem. Since I started the installation of a package, “libnet-ssh2-perl,” and then canceled it, I can no longer deploy the changes I make. Additionally, if I try to restart my Icinga service, it stops working. Here is a screenshot of the error message.

Thank you in advance for your help.

what’s the output of

icinga2 daemon -C

icinga2 daemon -C
-bash: icinga2: command not found

Would Icinga have uninstalled itself?

Yet my Icinga Web is still working.

yes, that means you uninstalled icinga2

icingaweb2 might still access outdated information form the ido/icingadb database.

What could I do to fix this? We have a large database that I don’t want to lose.

make a backup and install icinga2 :slight_smile:

but right now you don’t have any monitoring…
or maybe your icinga2 is on a different server.

It’s strange because I still see consistent monitoring. For example, I’m currently receiving alerts about a machine’s memory, and the figures are accurate. And I don’t have another Icinga server.

Do you use icinga1 ?

No, I don’t use it, but in the end, we reverted to a backup of the Icinga server.

May it be possible that an icinga2 process is still running, while your package manager has already removed the binary? Depending on your operating system, you can try to verify this with something like ps aux | grep icinga.

Otherwise, I would second @moreamazingnick in making a backup of both your configuration and database, reinstall Icinga 2, import your backup and you should be good to go. Maybe perform a reboot after you done your backup to be certain no strange processes are spooking around.

Yes, I think the process was still running while the binary had already been removed. The issue is resolved; we restored from a backup. Otherwise, I think reinstalling Icinga would have been necessary. However, I have an issue with my Dashing Icinga. If you would like to help, I have created a new ticket.