medusajs / medusa

The world's most flexible commerce platform.
https://medusajs.com
MIT License
25.93k stars 2.6k forks source link

Server crashes with error #3910

Closed SGFGOV closed 4 months ago

SGFGOV commented 1 year ago

Missing lock for job job_01GYSFN00EESTKD07SVNDJWHFN. failed at Scripts.finishedErrors (/node_modules/bullmq/dist/cjs/classes/scripts.js:214:24) at Job.moveToFailed (/node_modules/bullmq/dist/cjs/classes/job.js:406:32) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async handleFailed (/node_modules/bullmq/dist/cjs/classes/worker.js:331:21)

This occurs randomly, usually after large queries to the database

best regards Govind

olivermrbl commented 1 year ago

@SGFGOV – do you happen to know the characteristics of the job failing i.e. long-running, simple job, etc.?

Also, can you reproduce?

SGFGOV commented 1 year ago

The job doesn't exist in my staged jobs :).. so I don't know where to get this info from

On Tue, 25 Apr, 2023, 12:15 Oliver Windall Juhl, @.***> wrote:

@SGFGOV https://github.com/SGFGOV – do you happen to know the characteristics of the job failing i.e. long-running, simple job, etc.?

— Reply to this email directly, view it on GitHub https://github.com/medusajs/medusa/issues/3910#issuecomment-1521236406, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXEQJHE7MOFBMM55Q55ZU5TXC5XHVANCNFSM6AAAAAAXJNZIHA . You are receiving this because you were mentioned.Message ID: @.***>

--

This message (including any attachments) may contain confidential, proprietary, privileged and/or private information. The information is intended to be for the use of the individual or entity designated above. If you are not the intended recipient of this message, please notify the sender immediately, and delete the message and any attachments. Any disclosure, reproduction, distribution or other use of this message or any attachments by an individual or entity other than the intended recipient is prohibited.   

SGFGOV commented 1 year ago

Hi, Figured out why this happens. It usually happens when the event processing takes longer than expected. In which case the redis queue seems to be removing the job before it is actually . for example if mellisearch is indexing a lot of products.

sradevski commented 4 months ago

Hey, thanks for the report! Since v2 brought a lot of architectural and API changes on the backend, we will be closing this ticket since it no longer applies to our new setup, or the issue has already been fixed. If you are still facing issues with v1, please open a new ticket and we will address it as soon as possible. Thanks! 🙏