Ahoj, neni tu nekdo vetsi expert na icingu?
Nejak zahadou mam urcitou dezintegraci db directoru (icinga 2.6,x) , a zrejmne by pomohlo rucni rollback cele kofigurace... rucni odmazani radku kvuli coinstraints se nepodarilo(a nedohalil jsem jak to rucne poresit)
SQLSTATE[21000]: Cardinality violation: 1242 Subquery returns more than 1 row, query was: SELECT COUNT(*) FROM director_activity_log WHERE id > COALESCE(( SELECT id FROM director_activity_log WHERE checksum = ( SELECT last_activity_checksum FROM director_generated_config WHERE checksum = ( SELECT config_checksum FROM director_deployment_log ORDER by id desc limit 1 ) )), 0) AND object_type = 'icinga_user' AND object_name = 'xxxx'
obecne jde o veskere objekty host user atd , problem je zde:
SELECT id FROM director_activity_log WHERE checksum = ( SELECT last_activity_checksum FROM director_generated_config WHERE checksum = ( SELECT config_checksum FROM director_deployment_log ORDER by id desc limit 1 ) )
resp. asi v duplicite zaznamu s dvema ID a stejnym checksum v tabulce director_activity_log
Pokus o odstraneni duplicitniho radku:
[Content]
SQL chyba (1451): Cannot delete or update a parent row: a foreign key constraint fails (`director`.`director_generated_config`, CONSTRAINT `director_generated_config_activity` FOREIGN KEY (`last_activity_checksum`) REFERENCES `director_activity_log` (`checksum`))