socfortress / CoPilot

SOCFortress CoPilot
https://www.socfortress.co
GNU Affero General Public License v3.0
155 stars 25 forks source link

Decommissioning a customer fails with dfir-iris #265

Open KoronGIT opened 3 days ago

KoronGIT commented 3 days ago

If you click on the "Decommission" button, the error message "Failed to delete customer: please remove the user from the iris customer within DFIR-IRIS" appears. This message also appears if you have manually removed the user from DFIR-IRIS. It blocks the entire decommission process.

2024-07-03 06:32:51.823 | INFO | app.connectors.dfir_iris.utils.universal:create_dfir_iris_client:102 - Creating session with DFIR-IRIS. 2024-07-03 06:32:51.847 | INFO | app.connectors.dfir_iris.utils.universal:fetch_and_parse_data:137 - Executing delete_customer... on args: (4,) and kwargs: {} 2024-07-03 06:32:51.859 | ERROR | app.connectors.dfir_iris.utils.universal:fetch_and_parse_data:144 - Failed to execute delete_customer: manage/customers/delete/4?cid=1 - Invalid Customer ID - 2024-07-03 06:32:51.860 | ERROR | app.customer_provisioning.services.dfir_iris:delete_customer:88 - Failed to delete customer: please remove the user from the iris customer within DFIR-IRIS 2024-07-03 06:32:51.860 | ERROR | app.db.db_session:get_db_session:185 - Error during DB session: 2024-07-03 06:32:51.860 | INFO | app.db.db_session:get_db_session:189 - Closing DB session Copy to Local Clipboard Request Remote Clipboard Copy to Remote Clipboard Clear

ZoccoCss commented 2 days ago

I'm having the same issue with one customer.

I decommissioned other customers successfully.

KoronGIT commented 1 day ago

I've tried it several times now with newly created copilots. It seems that the problem always occurs with the customer that is created first.