I’m getting this error most times I make a change from the GUI.
“reload failed because retrieve_conf encountered an error 255
exit: 1
Unable to continue. SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘hooks-noid’ for key ‘uniqueindex’ in /var/www/html/admin/libraries/BMO/DB_Helper.class.php on line 268
#0 /var/www/html/admin/libraries/BMO/DB_Helper.class.php(268): PDOStatement->execute(Array)
#1 /var/www/html/admin/libraries/BMO/Hooks.class.php(117): FreePBX\DB_Helper->setConfig(‘hooks’, Array)
#2 /var/lib/asterisk/bin/retrieve_conf(81): FreePBX\Hooks->updateBMOHooks()
#3 {main}”
Running this fixes it: rm /var/lib/asterisk/bin/{licinfo,storage.php,register_serial,check_portal.php,activate_existing,register_new,update} && fwconsole reload
Any ideas why it is happening so often?