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

Kysely migrate fails in a read-only file system #103

Open
shoooe opened this issue Aug 30, 2024 · 0 comments
Open

Kysely migrate fails in a read-only file system #103

shoooe opened this issue Aug 30, 2024 · 0 comments

Comments

@shoooe
Copy link

shoooe commented Aug 30, 2024

Info

Using kysely-ctl v0.9.0.

Issue

I'm trying to run kysely migrate on a deploy command in a read-only file system environment (it's the Digital Ocean PaaS).
I'm getting this error:

[2024-08-30 13:11:37] $ kysely migrate latest
[2024-08-30 13:11:39]
[2024-08-30 13:11:39] ERROR Permission denied
[2024-08-30 13:11:39]
[2024-08-30 13:11:39] at writeFileSync (native)
[2024-08-30 13:11:39] at (node_modules/jiti/dist/jiti.js:1:242785)
[2024-08-30 13:11:39] at transform (node_modules/jiti/dist/jiti.js:1:242836)
[2024-08-30 13:11:39] at evalModule (node_modules/jiti/dist/jiti.js:1:246227)
[2024-08-30 13:11:39] at jiti (node_modules/jiti/dist/jiti.js:1:245240)
[2024-08-30 13:11:39] at (node_modules/c12/dist/shared/c12.cab0c9da.mjs:345:26)
[2024-08-30 13:11:39] at resolveConfig (node_modules/c12/dist/shared/c12.cab0c9da.mjs:279:30)
[2024-08-30 13:11:39] at (node_modules/c12/dist/shared/c12.cab0c9da.mjs:147:29)
[2024-08-30 13:11:39] at processTicksAndRejections (unknown:12:39)
[2024-08-30 13:11:39]
[2024-08-30 13:11:39]
[2024-08-30 13:11:39]
[2024-08-30 13:11:39] ERROR Permission denied
[2024-08-30 13:11:39]
[2024-08-30 13:11:39] error: script "migrate" exited with code 1
[2024-08-30 13:11:39] error: script "start" exited with code 1

Since I'm just trying to run migrations why is the CLI calling writeFileSync? What is it trying to write?
What am I doing wrong?

Thanks ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant