Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqlite: show better error when a permission denied error occurs #13991

Closed
jkomyno opened this issue Jun 24, 2022 · 2 comments · Fixed by prisma/prisma-engines#3196
Closed

sqlite: show better error when a permission denied error occurs #13991

jkomyno opened this issue Jun 24, 2022 · 2 comments · Fixed by prisma/prisma-engines#3196
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. tech/engines Issue for tech Engines. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: error topic: sqlite
Milestone

Comments

@jkomyno
Copy link
Contributor

jkomyno commented Jun 24, 2022

Command: prisma migrate reset
Version: 3.15.0
Binary Version: b9297dc3a59307060c1c39d7e4f5765066f38372
Report: https://prisma-errors.netlify.app/report/14081
OS: x64 linux 5.4.0-1018-aws

JS Stacktrace:

Error: Error in migration engine.
Reason: [migration-engine/connectors/sql-migration-connector/src/flavour/sqlite.rs:194:46] failed to truncate sqlite file: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }

Please create an issue with your `schema.prisma` at
https://github.com/prisma/prisma/issues/new

    at handlePanic (/home/../app/node_modules/prisma/build/index.js:93373:25)
    at ChildProcess.<anonymous> (/home/../app/node_modules/prisma/build/index.js:93382:15)
    at ChildProcess.emit (node:events:390:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12)

Rust Stacktrace:

Starting migration engine RPC server
[migration-engine/connectors/sql-migration-connector/src/flavour/sqlite.rs:194:46] failed to truncate sqlite file: Os { code: 13, kind: PermissionDenied, message: "Permission denied" }
@jkomyno jkomyno added kind/bug A reported bug. topic: sqlite tech/engines Issue for tech Engines. topic: error reporting Issues created via Prisma's CLI Crash Reporting team/schema Issue for team Schema. labels Jun 24, 2022
@janpio janpio added topic: error bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. labels Jun 24, 2022
@jkomyno
Copy link
Contributor Author

jkomyno commented Jul 29, 2022

We have another reproduction of the same issue here, on WSL2.

@janpio
Copy link
Member

janpio commented Sep 16, 2022

Another duplicate here: #15352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. tech/engines Issue for tech Engines. topic: error reporting Issues created via Prisma's CLI Crash Reporting topic: error topic: sqlite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants