Skip to content

Deadlock error #8

@RowanG1Bilue

Description

@RowanG1Bilue

When I run the server, the tables are created in my local Mac MySQL database, but then I get this error:

SequelizeDatabaseError: Deadlock found when trying to get lock; try restarting transaction
    at Query.formatError (/Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/dialects/mysql/query.js:265:16)
    at Query.run (/Users/rowan/Documents/cookbook-github/node_modules/sequelize/lib/dialects/mysql/query.js:77:18)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at /Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/sequelize.js:619:16
    at Function.sync (/Users/rowang/Documents/cookbook-github/node_modules/sequelize/lib/model.js:1349:11)
    at async Promise.all (index 2)

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions