At present, I have 68k queued bundles, of which <1 are getting processed/sec, as below, which is constant at the moment. In worker and connector logs, whilst some bundles do get processed, there are sporadic connection reset errors, which point to RabbitMQ which is showing as healthy in the stack, as below, with no errors other than the occasional errors below every 5 mins or so. The backend platform does show as unhealthy, with numerous errors, as below at the bottom. Connectors seem to go between active and inactive regularly. I would appreciate some help troubleshooting further please, and especially with Redis/platform if I can try any different configurations. Thanks :)
2024-10-31T11:52:45.939468871Z ERR Update indexing fail | category=APP errors=[{"attributes":{"documentId":"cabc3734-22e5-4ace-8111-202e1b6dc6ae","entityType":"","genre":"TECHNICAL","http_status":500},"message":"Update indexing fail","name":"DATABASE_ERROR","stack":"GraphQLError: Update indexing fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:3431:11\n at async Promise.all (index 0)\n at updateAttributeMetaResolved (/opt/opencti/build/src/database/middleware.js:2136:7)\n at updateManagerConfigurationLastRun (/opt/opencti/build/src/modules/managerConfiguration/managerConfiguration-domain.ts:67:39)\n at fileIndexHandler (/opt/opencti/build/src/manager/fileIndexManager.ts:157:11)\n at /opt/opencti/build/src/manager/fileIndexManager.ts:210:9\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.UpdateApi [as update] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/update.ts:83:10)\n at async Promise.all (index 0)\n at updateAttributeMetaResolved (/opt/opencti/build/src/database/middleware.js:2136:7)\n at updateManagerConfigurationLastRun (/opt/opencti/build/src/modules/managerConfiguration/managerConfiguration-domain.ts:67:39)\n at fileIndexHandler (/opt/opencti/build/src/manager/fileIndexManager.ts:157:11)\n at /opt/opencti/build/src/manager/fileIndexManager.ts:210:9\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"}] manager=FILE_INDEX_MANAGER source=backend timestamp=2024-10-31T11:52:45.939Z version=6.3.6
[2024-10-31T11:52:49.421568603Z {"category":"APP","errors":[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":2,"should":[{"bool":{"minimum_should_match":2,"should":[{"bool":{"minimum_should_match":1,"should":[{"multi_match":{"fields":["entity_type.keyword","parent_types.keyword"],"query":"Note"}}]}},{"bool":{"minimum_should_match":1,"should":[{"multi_match":{"fields":["rel_granted.*.keyword"],"query":"ce4ccae8-a524-45d6-b06e-1fd6469ab31f"}},{"multi_match":{"fields":["rel_granted.*.keyword"],"query":"bfcf2a7e-863b-48a8-a09c-f1876b03f607"}}]}}]}},{"bool":{"minimum_should_match":1,"should":[{"range":{"updated_at":{"lte":"2024-10-01T11:52:19.116Z"}}}]}}]}}],"must_not":[]}},"size":1500,"sort":[{"updated_at":{"missing":0,"order":"asc"}},{"internal_id.keyword":{"missing":"_last","order":"asc"}},{"standard_id.keyword":"asc"}]},"index":["opencti_stix_domain_objects*","opencti_stix_core_relationships*","opencti_stix_sighting_relationships*","opencti_stix_cyber_observables*"],"track_total_hits":true}},"message":"Fail to execute engine pagination","name":"DATABASE_ERROR","stack":"GraphQLError: Fail to execute engine pagination\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:3285:15\n at getElementsToDelete (/opt/opencti/build/src/manager/retentionManager.ts:49:14)\n at executeProcessing (/opt/opencti/build/src/manager/retentionManager.ts:68:18)\n at Object.retentionHandler [as handler] (/opt/opencti/build/src/manager/retentionManager.ts:109:7)\n at cronHandler (/opt/opencti/build/src/manager/managerModule.ts:73:11)\n at /opt/opencti/build/src/manager/managerModule.ts:132:11\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at getElementsToDelete (/opt/opencti/build/src/manager/retentionManager.ts:49:14)\n at executeProcessing (/opt/opencti/build/src/manager/retentionManager.ts:68:18)\n at Object.retentionHandler [as handler] (/opt/opencti/build/src/manager/retentionManager.ts:109:7)\n at cronHandler (/opt/opencti/build/src/manager/managerModule.ts:73:11)\n at /opt/opencti/build/src/manager/managerModule.ts:132:11\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"}],"level":"error","manager":"RETENTION_MANAGER","message":"Fail to execute engine pagination","source":"backend","timestamp":"2024-10-31T11:52:49.420Z","version":"6.3.6"}
2024-10-31T11:52:49.460091385Z ERR Reindexing fail from opencti_stix_cyber_observables-000001 to opencti_deleted_objects | category=APP errors=[{"attributes":{"body":{"dest":{"index":"opencti_deleted_objects"},"script":{"source":"ctx._source.remove('fromType'); ctx._source.remove('toType'); ctx._source.remove('spec_version'); ctx._source.remove('representative'); ctx._source.remove('rel_has-reference'); ctx._source.remove('objectOrganization');"},"source":{"index":"opencti_stix_cyber_observables-000001","query":{"ids":{"values":["ec27a375-6c87-46c7-9099-241425dd86d5"]}}}},"genre":"TECHNICAL","http_status":500},"message":"Reindexing fail from opencti_stix_cyber_observables-000001 to opencti_deleted_objects","name":"DATABASE_ERROR","stack":"GraphQLError: Reindexing fail from opencti_stix_cyber_observables-000001 to opencti_deleted_objects\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:3622:11\n at async Promise.all (index 0)\n at elDeleteElements (/opt/opencti/build/src/database/engine.js:3661:5)\n at internalDeleteElementById (/opt/opencti/build/src/database/middleware.js:3213:7)\n at deleteElementById (/opt/opencti/build/src/database/middleware.js:3235:32)\n at executeDelete (/opt/opencti/build/src/manager/taskManager.js:240:5)\n at executeProcessing (/opt/opencti/build/src/manager/taskManager.js:493:13)\n at taskHandler (/opt/opencti/build/src/manager/taskManager.js:592:22)\n at /opt/opencti/build/src/manager/taskManager.js:622:9\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.ReindexApi [as reindex] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/reindex.ts:79:10)\n at async Promise.all (index 0)\n at elDeleteElements (/opt/opencti/build/src/database/engine.js:3661:5)\n at internalDeleteElementById (/opt/opencti/build/src/database/middleware.js:3213:7)\n at deleteElementById (/opt/opencti/build/src/database/middleware.js:3235:32)\n at executeDelete (/opt/opencti/build/src/manager/taskManager.js:240:5)\n at executeProcessing (/opt/opencti/build/src/manager/taskManager.js:493:13)\n at taskHandler (/opt/opencti/build/src/manager/taskManager.js:592:22)\n at /opt/opencti/build/src/manager/taskManager.js:622:9\n at iit.#runHandlerAndScheduleTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:36:13)\n at Timeout._onTimeout (/opt/opencti/build/node_modules/set-interval-async/dist/set-interval-async-timer.cjs:29:13)"}] source=backend timestamp=2024-10-31T11:52:49.459Z version=6.3.6
2024-10-31T11:52:51.178054994Z ERR Engine unhandled rejection | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"reason":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at listAllEntitiesThroughRelations (/opt/opencti/build/src/database/middleware-loader.ts:420:10)"},"message":"Engine unhandled rejection","name":"UNKNOWN_ERROR","stack":"GraphQLError: Engine unhandled rejection\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at UnknownError (/opt/opencti/build/src/config/errors.js:81:47)\n at process.<anonymous> (/opt/opencti/build/src/boot.js:61:16)\n at process.emit (node:events:519:28)\n at process.emit (/opt/opencti/build/node_modules/source-map-support/source-map-support.js:516:21)\n at emitUnhandledRejection (node:internal/process/promises:250:13)\n at throwUnhandledRejectionsMode (node:internal/process/promises:385:19)\n at processPromiseRejections (node:internal/process/promises:470:17)\n at processTicksAndRejections (node:internal/process/task_queues:96:32)"}] source=backend timestamp=2024-10-31T11:52:51.177Z version=6.3.6
2024-10-31T11:52:51.208704588Z ERR Engine unhandled rejection | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"reason":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at listAllEntitiesThroughRelations (/opt/opencti/build/src/database/middleware-loader.ts:420:10)"},"message":"Engine unhandled rejection","name":"UNKNOWN_ERROR","stack":"GraphQLError: Engine unhandled rejection\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at UnknownError (/opt/opencti/build/src/config/errors.js:81:47)\n at process.<anonymous> (/opt/opencti/build/src/boot.js:61:16)\n at process.emit (node:events:519:28)\n at process.emit (/opt/opencti/build/node_modules/source-map-support/source-map-support.js:516:21)\n at emitUnhandledRejection (node:internal/process/promises:250:13)\n at throwUnhandledRejectionsMode (node:internal/process/promises:385:19)\n at processPromiseRejections (node:internal/process/promises:470:17)\n at processTicksAndRejections (node:internal/process/task_queues:96:32)"}] source=backend timestamp=2024-10-31T11:52:51.208Z version=6.3.6
2024-10-31T11:52:51.234328659Z ERR [OPENCTI-MODULE] INGESTION - Ingestion handlers cannot be started | category=APP source=backend timestamp=2024-10-31T11:52:51.234Z version=6.3.6
2024-10-31T11:52:51.512673420Z ERR [OPENCTI-MODULE] INGESTION - Error with csv handler C2IntelFeeds - domainC2s-30day-filter-abused | category=APP source=backend timestamp=2024-10-31T11:52:51.512Z version=6.3.6
2024-10-31T11:52:52.560640464Z 1970/01/01 09:15AM ERR Find direct ids fail | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"terms":{"internal_id.keyword":["work_a2695e04-6d3d-4496-8ba1-7ed9e13779ea_2024-10-31T11:42:10.327Z"]}},{"terms":{"standard_id.keyword":["work_a2695e04-6d3d-4496-8ba1-7ed9e13779ea_2024-10-31T11:42:10.327Z"]}},{"terms":{"x_opencti_stix_ids.keyword":["work_a2695e04-6d3d-4496-8ba1-7ed9e13779ea_2024-10-31T11:42:10.327Z"]}},{"terms":{"i_aliases_ids.keyword":["work_a2695e04-6d3d-4496-8ba1-7ed9e13779ea_2024-10-31T11:42:10.327Z"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"terms":{"entity_type.keyword":["work"]}},{"terms":{"parent_types.keyword":["work"]}}]}},{"bool":{"should":[{"terms":{"authorized_members.id.keyword":["ALL","84c47805-5b3e-49cf-bb89-f5b66a3f6b5f","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}},{"bool":{"must_not":{"exists":{"field":"authorized_members"}}}},{"terms":{"authorized_authorities.keyword":["84c47805-5b3e-49cf-bb89-f5b66a3f6b5f","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab","KNOWLEDGE_KNUPDATE_KNDELETE","KNOWLEDGE_KNUPLOAD","KNOWLEDGE_KNASKIMPORT","KNOWLEDGE_KNGETEXPORT_KNASKEXPORT","KNOWLEDGE_KNENRICHMENT","MODULES_MODMANAGE","TAXIIAPI","SETTINGS_SETMARKINGS","SETTINGS_SETLABELS","CONNECTORAPI","KNOWLEDGE_KNUPDATE_KNBYPASSREFERENCE","SETTINGS_SECURITYACTIVITY","INGESTION","INGESTION_SETINGESTIONS","SETTINGS_SETPARAMETERS","SETTINGS_SETCUSTOMIZATION","SETTINGS_FILEINDEXING","SETTINGS_SUPPORT","KNOWLEDGE_KNUPDATE_KNBYPASSFIELDS","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"bool":{"must_not":[{"exists":{"field":"rel_object-marking.internal_id.keyword"}}]}},{"bool":{"must_not":[]}}]}}],"must_not":[]}},"sort":[{"created_at":"asc"}]},"index":"opencti_history*","size":5000}},"message":"Find direct ids fail","name":"DATABASE_ERROR","stack":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"}] inner_relation_creation=0 operation=Unspecified query_attributes=[[{"arguments":[],"name":"ping"}]] size=75 source=backend timestamp=2024-10-31T11:52:52.560Z type=WRITE_ERROR user={"group_ids":["0f8e5d31-56b6-4bda-ad97-af81f28c3283"],"ip":"::ffff:172.20.0.8","organization_ids":["8763664e-d84b-4ed1-942d-54891bbba7a8"],"socket":"query","user_id":"84c47805-5b3e-49cf-bb89-f5b66a3f6b5f","user_metadata":{}} version=6.3.6
2024-10-31T11:53:10.099797755Z 1970/01/01 10:10AM ERR Find direct ids fail | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"terms":{"internal_id.keyword":["work_1cb07a10-c686-4113-8701-17eea1977015_2024-10-31T11:27:40.390Z"]}},{"terms":{"standard_id.keyword":["work_1cb07a10-c686-4113-8701-17eea1977015_2024-10-31T11:27:40.390Z"]}},{"terms":{"x_opencti_stix_ids.keyword":["work_1cb07a10-c686-4113-8701-17eea1977015_2024-10-31T11:27:40.390Z"]}},{"terms":{"i_aliases_ids.keyword":["work_1cb07a10-c686-4113-8701-17eea1977015_2024-10-31T11:27:40.390Z"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"terms":{"entity_type.keyword":["work"]}},{"terms":{"parent_types.keyword":["work"]}}]}},{"bool":{"should":[{"terms":{"authorized_members.id.keyword":["ALL","9e63e52f-35e3-4fdd-a379-d0e3420c96f9","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}},{"bool":{"must_not":{"exists":{"field":"authorized_members"}}}},{"terms":{"authorized_authorities.keyword":["9e63e52f-35e3-4fdd-a379-d0e3420c96f9","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab","KNOWLEDGE_KNUPDATE_KNDELETE","KNOWLEDGE_KNUPLOAD","KNOWLEDGE_KNASKIMPORT","KNOWLEDGE_KNGETEXPORT_KNASKEXPORT","KNOWLEDGE_KNENRICHMENT","MODULES_MODMANAGE","TAXIIAPI","SETTINGS_SETMARKINGS","SETTINGS_SETLABELS","CONNECTORAPI","KNOWLEDGE_KNUPDATE_KNBYPASSREFERENCE","SETTINGS_SECURITYACTIVITY","INGESTION","INGESTION_SETINGESTIONS","SETTINGS_SETPARAMETERS","SETTINGS_SETCUSTOMIZATION","SETTINGS_FILEINDEXING","SETTINGS_SUPPORT","KNOWLEDGE_KNUPDATE_KNBYPASSFIELDS","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"bool":{"must_not":[{"exists":{"field":"rel_object-marking.internal_id.keyword"}}]}},{"bool":{"must_not":[]}}]}}],"must_not":[]}},"sort":[{"created_at":"asc"}]},"index":"opencti_history*","size":5000}},"message":"Find direct ids fail","name":"DATABASE_ERROR","stack":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"}] inner_relation_creation=0 operation=Unspecified query_attributes=[[{"arguments":[],"name":"ping"}]] size=75 source=backend timestamp=2024-10-31T11:53:10.095Z type=WRITE_ERROR user={"group_ids":["0f8e5d31-56b6-4bda-ad97-af81f28c3283"],"ip":"::ffff:172.20.0.41","organization_ids":["8763664e-d84b-4ed1-942d-54891bbba7a8"],"socket":"query","user_id":"9e63e52f-35e3-4fdd-a379-d0e3420c96f9","user_metadata":{}} version=6.3.6
2024-10-31T11:53:11.138543826Z 1970/01/01 09:36AM ERR Find direct ids fail | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"terms":{"internal_id.keyword":["work_2a53a279-b03e-4d6c-bcde-eb878d66874a_2024-10-31T11:32:28.198Z"]}},{"terms":{"standard_id.keyword":["work_2a53a279-b03e-4d6c-bcde-eb878d66874a_2024-10-31T11:32:28.198Z"]}},{"terms":{"x_opencti_stix_ids.keyword":["work_2a53a279-b03e-4d6c-bcde-eb878d66874a_2024-10-31T11:32:28.198Z"]}},{"terms":{"i_aliases_ids.keyword":["work_2a53a279-b03e-4d6c-bcde-eb878d66874a_2024-10-31T11:32:28.198Z"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"terms":{"entity_type.keyword":["work"]}},{"terms":{"parent_types.keyword":["work"]}}]}},{"bool":{"should":[{"terms":{"authorized_members.id.keyword":["ALL","a6a4f7c4-4b37-4216-a8c3-7992643e37f6","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}},{"bool":{"must_not":{"exists":{"field":"authorized_members"}}}},{"terms":{"authorized_authorities.keyword":["a6a4f7c4-4b37-4216-a8c3-7992643e37f6","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab","KNOWLEDGE_KNUPDATE_KNDELETE","KNOWLEDGE_KNUPLOAD","KNOWLEDGE_KNASKIMPORT","KNOWLEDGE_KNGETEXPORT_KNASKEXPORT","KNOWLEDGE_KNENRICHMENT","MODULES_MODMANAGE","TAXIIAPI","SETTINGS_SETMARKINGS","SETTINGS_SETLABELS","CONNECTORAPI","KNOWLEDGE_KNUPDATE_KNBYPASSREFERENCE","SETTINGS_SECURITYACTIVITY","INGESTION","INGESTION_SETINGESTIONS","SETTINGS_SETPARAMETERS","SETTINGS_SETCUSTOMIZATION","SETTINGS_FILEINDEXING","SETTINGS_SUPPORT","KNOWLEDGE_KNUPDATE_KNBYPASSFIELDS","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"bool":{"must_not":[{"exists":{"field":"rel_object-marking.internal_id.keyword"}}]}},{"bool":{"must_not":[]}}]}}],"must_not":[]}},"sort":[{"created_at":"asc"}]},"index":"opencti_history*","size":5000}},"message":"Find direct ids fail","name":"DATABASE_ERROR","stack":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at pingWork (/opt/opencti/build/src/domain/work.js:110:23)"}] inner_relation_creation=0 operation=Unspecified query_attributes=[[{"arguments":[],"name":"ping"}]] size=75 source=backend timestamp=2024-10-31T11:53:11.138Z type=WRITE_ERROR user={"group_ids":["0f8e5d31-56b6-4bda-ad97-af81f28c3283"],"ip":"::ffff:172.20.0.54","organization_ids":["8763664e-d84b-4ed1-942d-54891bbba7a8"],"socket":"query","user_id":"a6a4f7c4-4b37-4216-a8c3-7992643e37f6","user_metadata":{}} version=6.3.6
2024-10-31T11:55:27.030540899Z ERR [REDIS] Failed to extend resource | category=APP manager=NOTIFICATION_MANAGER source=backend timestamp=2024-10-31T11:55:27.030Z version=6.3.6
2024-10-31T11:55:28.987924407Z 1970/01/02 09:16PM ERR Find direct ids fail | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"terms":{"internal_id.keyword":["work_22a565c5-6aa4-4064-88d5-c17ab711c994_2024-10-31T11:29:31.533Z"]}},{"terms":{"standard_id.keyword":["work_22a565c5-6aa4-4064-88d5-c17ab711c994_2024-10-31T11:29:31.533Z"]}},{"terms":{"x_opencti_stix_ids.keyword":["work_22a565c5-6aa4-4064-88d5-c17ab711c994_2024-10-31T11:29:31.533Z"]}},{"terms":{"i_aliases_ids.keyword":["work_22a565c5-6aa4-4064-88d5-c17ab711c994_2024-10-31T11:29:31.533Z"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"terms":{"entity_type.keyword":["work"]}},{"terms":{"parent_types.keyword":["work"]}}]}},{"bool":{"should":[{"terms":{"authorized_members.id.keyword":["ALL","21ac7f54-8c20-4524-800e-c7bb4d56d777","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}},{"bool":{"must_not":{"exists":{"field":"authorized_members"}}}},{"terms":{"authorized_authorities.keyword":["21ac7f54-8c20-4524-800e-c7bb4d56d777","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab","KNOWLEDGE_KNUPDATE_KNDELETE","KNOWLEDGE_KNUPLOAD","KNOWLEDGE_KNASKIMPORT","KNOWLEDGE_KNGETEXPORT_KNASKEXPORT","KNOWLEDGE_KNENRICHMENT","MODULES_MODMANAGE","TAXIIAPI","SETTINGS_SETMARKINGS","SETTINGS_SETLABELS","CONNECTORAPI","KNOWLEDGE_KNUPDATE_KNBYPASSREFERENCE","SETTINGS_SECURITYACTIVITY","INGESTION","INGESTION_SETINGESTIONS","SETTINGS_SETPARAMETERS","SETTINGS_SETCUSTOMIZATION","SETTINGS_FILEINDEXING","SETTINGS_SUPPORT","KNOWLEDGE_KNUPDATE_KNBYPASSFIELDS","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"bool":{"must_not":[{"exists":{"field":"rel_object-marking.internal_id.keyword"}}]}},{"bool":{"must_not":[]}}]}}],"must_not":[]}},"sort":[{"created_at":"asc"}]},"index":"opencti_history*","size":5000}},"message":"Find direct ids fail","name":"DATABASE_ERROR","stack":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at updateProcessedTime (/opt/opencti/build/src/domain/work.js:251:23)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at updateProcessedTime (/opt/opencti/build/src/domain/work.js:251:23)"}] inner_relation_creation=0 operation=Unspecified query_attributes=[[{"arguments":[[{"is_empty":true,"name":"message","type":"Variable"}],[{"is_empty":true,"name":"inError","type":"Variable"}]],"name":"toProcessed"}]] size=183 source=backend timestamp=2024-10-31T11:55:28.982Z type=WRITE_ERROR user={"group_ids":["0f8e5d31-56b6-4bda-ad97-af81f28c3283"],"ip":"::ffff:172.20.0.50","organization_ids":["8763664e-d84b-4ed1-942d-54891bbba7a8"],"socket":"query","user_id":"21ac7f54-8c20-4524-800e-c7bb4d56d777","user_metadata":{}} version=6.3.6
2024-10-31T11:55:33.093421716Z 1970/01/02 05:06PM ERR Find direct ids fail | category=APP errors=[{"attributes":{"genre":"TECHNICAL","http_status":500,"query":{"_source":true,"body":{"query":{"bool":{"must":[{"bool":{"minimum_should_match":1,"should":[{"terms":{"internal_id.keyword":["work_11b78342-5026-453e-8c2f-d6209eb0ce28_2024-10-31T11:40:03.142Z"]}},{"terms":{"standard_id.keyword":["work_11b78342-5026-453e-8c2f-d6209eb0ce28_2024-10-31T11:40:03.142Z"]}},{"terms":{"x_opencti_stix_ids.keyword":["work_11b78342-5026-453e-8c2f-d6209eb0ce28_2024-10-31T11:40:03.142Z"]}},{"terms":{"i_aliases_ids.keyword":["work_11b78342-5026-453e-8c2f-d6209eb0ce28_2024-10-31T11:40:03.142Z"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"terms":{"entity_type.keyword":["work"]}},{"terms":{"parent_types.keyword":["work"]}}]}},{"bool":{"should":[{"terms":{"authorized_members.id.keyword":["ALL","95e19279-3f1c-4c66-b5cd-c39d074b1051","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}},{"bool":{"must_not":{"exists":{"field":"authorized_members"}}}},{"terms":{"authorized_authorities.keyword":["95e19279-3f1c-4c66-b5cd-c39d074b1051","8763664e-d84b-4ed1-942d-54891bbba7a8","0f8e5d31-56b6-4bda-ad97-af81f28c3283","65aa1b40-2eae-4576-83b2-5e45afd6e2ab","KNOWLEDGE_KNUPDATE_KNDELETE","KNOWLEDGE_KNUPLOAD","KNOWLEDGE_KNASKIMPORT","KNOWLEDGE_KNGETEXPORT_KNASKEXPORT","KNOWLEDGE_KNENRICHMENT","MODULES_MODMANAGE","TAXIIAPI","SETTINGS_SETMARKINGS","SETTINGS_SETLABELS","CONNECTORAPI","KNOWLEDGE_KNUPDATE_KNBYPASSREFERENCE","SETTINGS_SECURITYACTIVITY","INGESTION","INGESTION_SETINGESTIONS","SETTINGS_SETPARAMETERS","SETTINGS_SETCUSTOMIZATION","SETTINGS_FILEINDEXING","SETTINGS_SUPPORT","KNOWLEDGE_KNUPDATE_KNBYPASSFIELDS","65aa1b40-2eae-4576-83b2-5e45afd6e2ab"]}}]}},{"bool":{"minimum_should_match":1,"should":[{"bool":{"must_not":[{"exists":{"field":"rel_object-marking.internal_id.keyword"}}]}},{"bool":{"must_not":[]}}]}}],"must_not":[]}},"sort":[{"created_at":"asc"}]},"index":"opencti_history*","size":5000}},"message":"Find direct ids fail","name":"DATABASE_ERROR","stack":"GraphQLError: Find direct ids fail\n at error (/opt/opencti/build/src/config/errors.js:7:10)\n at DatabaseError (/opt/opencti/build/src/config/errors.js:57:48)\n at /opt/opencti/build/src/database/engine.js:1574:15\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at updateProcessedTime (/opt/opencti/build/src/domain/work.js:251:23)"},{"message":"Request timed out","name":"TimeoutError","stack":"TimeoutError: Request timed out\n at q7t._request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:630:36)\n at /opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:704:22\n at q7t.request (/opt/opencti/build/node_modules/@elastic/transport/src/Transport.ts:701:14)\n at $$e.SearchApi [as search] (/opt/opencti/build/node_modules/@elastic/elasticsearch/src/api/api/search.ts:96:10)\n at elFindByIds (/opt/opencti/build/src/database/engine.js:1573:20)\n at elLoadById (/opt/opencti/build/src/database/engine.js:1599:16)\n at loadWorkById (/opt/opencti/build/src/domain/work.js:34:18)\n at updateProcessedTime (/opt/opencti/build/src/domain/work.js:251:23)"}] inner_relation_creation=0 operation=Unspecified query_attributes=[[{"arguments":[[{"is_empty":true,"name":"message","type":"Variable"}],[{"is_empty":true,"name":"inError","type":"Variable"}]],"name":"toProcessed"}]] size=170 source=backend timestamp=2024-10-31T11:55:33.092Z type=WRITE_ERROR user={"group_ids":["0f8e5d31-56b6-4bda-ad97-af81f28c3283"],"ip":"::ffff:172.20.0.43","organization_ids":["8763664e-d84b-4ed1-942d-54891bbba7a8"],"socket":"query","user_id":"95e19279-3f1c-4c66-b5cd-c39d074b1051","user_metadata":{}} version=6.3.6
2024-10-31T11:55:34.464179387Z ERR [REDIS] Failed to extend resource | category=APP manager=FILE_INDEX_MANAGER source=backend timestamp=2024-10-31T11:55:34.463Z version=6.3.6
2024-10-31T11:55:34.464502471Z ERR [REDIS] Failed to extend resource | category=APP manager=HISTORY_MANAGER source=backend timestamp=2024-10-31T11:55:34.464Z version=6.3.6
2024-10-31T11:55:34.464781366Z ERR [REDIS] Failed to extend resource | category=APP manager=PUBLISHER_MANAGER source=backend timestamp=2024-10-31T11:55:34.464Z version=6.3.6
2024-10-31T11:55:34.465054014Z ERR [REDIS] Failed to extend resource | category=APP manager=PLAYBOOK_MANAGER source=backend timestamp=2024-10-31T11:55:34.464Z version=6.3.6
2024-10-31T11:55:34.465368339Z ERR [REDIS] Failed to extend resource | category=APP manager=NOTIFICATION_MANAGER source=backend timestamp=2024-10-31T11:55:34.465Z version=6.3.6
2024-10-31T11:56:27.044765790Z ERR [REDIS] Failed to extend resource | category=APP manager=PLAYBOOK_MANAGER source=backend timestamp=2024-10-31T11:56:27.044Z version=6.3.6
I @dominictory.
So your logs show a lot of "TimeoutError: Request timed out" related to elastic. You also have some CONNRESET.
For me it could be a sign of:
Description
At present, I have 68k queued bundles, of which <1 are getting processed/sec, as below, which is constant at the moment. In worker and connector logs, whilst some bundles do get processed, there are sporadic connection reset errors, which point to RabbitMQ which is showing as healthy in the stack, as below, with no errors other than the occasional errors below every 5 mins or so. The backend platform does show as unhealthy, with numerous errors, as below at the bottom. Connectors seem to go between active and inactive regularly. I would appreciate some help troubleshooting further please, and especially with Redis/platform if I can try any different configurations. Thanks :)
My docker-compose setup is as follows:
1x frontend platform (users, internal export/import connectors only, no managers) 1x backend platform (3x workers, connectors, all managers)
VM: Ubuntu 22.04 LTS; 16 cores; 64GB RAM
Current load average: 7.22, 5.52, 4.45 Memory usage: total used free shared buff/cache available Mem: 62Gi 48Gi 4.1Gi 43Mi 10Gi 13Gi Swap: 8.0Gi 5.4Gi 2.6Gi
docker-compose.yml sample:
.env:
RabbitMQ log sample:
Ingestion platform logs: