Skip to content

Bug - GraphQLError: Execution timeout, too many concurrent call on the same entities / File not found or restricted #9401

Description

Description

Since the 6.4.3 version i got some problems of concurrent call on the same entities, or missing file not found or restricted error.

Environment

  1. OS (where OpenCTI server runs): { e.g. Mac OS 10, Windows 10, Ubuntu 16.4, etc. } RHEL8 (Cluster)
  2. OpenCTI version: { e.g. OpenCTI 1.0.2 } 6.4.4
  3. OpenCTI client: { e.g. frontend or python }
  4. Other environment details:

Reproducible Steps

Steps to create the smallest reproducible scenario:

  1. { e.g. Run ... }
  2. { e.g. Click ... }
  3. { e.g. Error ... }

Expected Output

Actual Output

"category":"APP","errors":[{"attributes":{"filename":"import/Artifact/e9359d18-6203-40a1-83b8-2847099b9b88/file","genre":"BUSINESS","http_status":400},"message":"File not found or restricted","name":"FUNCTIONAL_ERROR","stack":"GraphQLError: File not found or restricted\n    at error (/opt/opencti/build/src/config/errors.js:7:10)\n    at FunctionalError (/opt/opencti/build/src/config/errors.js:94:50)\n    at loadFile (/opt/opencti/build/src/database/file-storage.js:276:15)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at deleteFile (/opt/opencti/build/src/database/file-storage.js:118:14)\n    at deleteFiles (/opt/opencti/build/src/database/file-storage.js:145:5)\n    at processDeleteOperation (/opt/opencti/build/src/modules/deleteOperation/deleteOperation-domain.ts:256:7)\n    at confirmDelete (/opt/opencti/build/src/modules/deleteOperation/deleteOperation-domain.ts:271:12)\n    at Object.garbageCollectionHandler [as handler] (/opt/opencti/build/src/manager/garbageCollectionManager.ts:25:7)\n    at cronHandler (/opt/opencti/build/src/manager/managerModule.ts:75:11)\n    at /opt/opencti/build/src/manager/managerModule.ts:132:11\n    at zit.#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)"}],"id":"a8f42f5a-9fce-4649-a07b-9b2feb03dcfe","level":"warn","manager":"GARBAGE_COLLECTION_MANAGER","message":"File not found or restricted","source":"backend","timestamp":"2024-12-18T16:16:50.602Z","version":"6.4.4"}
"category":"APP","errors":[{"attributes":{"genre":"BUSINESS","http_status":500,"participantIds":["relationship------ etc etc "]},"message":"Execution timeout, too many concurrent call on the same entities","name":"LOCK_ERROR","stack":"GraphQLError: Execution timeout, too many concurrent call on the same entities\n    at error (/opt/opencti/build/src/config/errors.js:7:10)\n    at LockTimeoutError (/opt/opencti/build/src/config/errors.js:109:51)\n    at createRelationRaw (/opt/opencti/build/src/database/middleware.js:2882:13)\n    at processTicksAndRe

Additional information

Screenshots (optional)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugType: something isn't working (fix:).solvedResolved (should be linked to the solving PR).

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions