Actions
Bug #5903
closedDeleting smart proxy from GUI fails
Status:
Duplicate
Priority:
Low
Assignee:
-
Category:
-
Target version:
-
Description
A proper error message should be generated instead, saying that an existing hostgroup is using the proxy.
Oops, we're sorry but something went wrong
Warning! ERROR: update or delete on table "smart_proxies" violates foreign key constraint "hostgroups_puppet_ca_proxy_id_fk" on table "hostgroups" DETAIL: Key (id)=(2) is still referenced from table "hostgroups".
If you feel this is an error with Foreman itself, please open a new issue with Foreman ticketing system, You would probably need to attach the Full trace and relevant log entries.
PG::ForeignKeyViolation ERROR: update or delete on table "smart_proxies" violates foreign key constraint "hostgroups_puppet_ca_proxy_id_fk" on table "hostgroups" DETAIL: Key (id)=(2) is still referenced from table "hostgroups". app/controllers/smart_proxies_controller.rb:51:in `destroy' app/models/concerns/foreman/thread_session.rb:33:in `clear_thread' lib/middleware/catch_json_parse_errors.rb:9:in `call'
Actions