Error when restoring a basket snapshot

Hello all,
I am in the process of setting up Icinga for Windows for our monitoring environment. Everything is working very well so far. Now I have exported the check commands as a basket for Icinga Director and am trying to restore them in Director.
I get the following error message when I try to restore the snapshot.

SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '310-496' for key 'PRIMARY', query was: INSERT INTO icinga_command_field (command_id, datafield_id, is_required, var_filter) VALUES (?, ?, ?, ?) (Pdo.php:225) 

Does anyone have any idea why this error occurs?

Best regards


  • Director version: master
  • Icinga Web 2 version: 2.8.2
  • Icinga 2 version: 2.12.4-1
  • Operating System and version: Centos 7
  • PHP versions: 7.1.30

It’s done. I was able to solve the problem by re-exporting the configuration baskets from Icinga for Windows.