Comments (17)
Well...
Weirdly enough it seems to work now, on an automated run. Same docker image, same environment... I had it scheduled in the night and was surprised to find it working in the morning.
I will close this for now. Thank you for support :)
from prisma-client-rust.
The CLI likely isn't distributed for arm64 linux, though I'd have to confirm with the Prisma team. I'd suggest generating the client outside of docker in an x86 environment, and copying it in. What docker image are you building inside of?
from prisma-client-rust.
The CLI likely isn't distributed for arm64 linux, though I'd have to confirm with the Prisma team. I'd suggest generating the client outside of docker in an x86 environment, and copying it in. What docker image are you building inside of?
I'm using the normal rust:latest image. The problem is, that I need to run the CLI within the docker image, since I'm using it for the migrations as well.
from prisma-client-rust.
I'm using the normal rust:latest image. The problem is, that I need to run the CLI within the docker image, since I'm using it for the migrations as well.
Do you plan on applying the migrations at build time or run time? It's generally recommended to do so at run time before your application starts, since usually your database won't be located inside the docker image or be available at build time
from prisma-client-rust.
I'm using the normal rust:latest image. The problem is, that I need to run the CLI within the docker image, since I'm using it for the migrations as well.
Do you plan on applying the migrations at build time or run time? It's generally recommended to do so at run time before your application starts, since usually your database won't be located inside the docker image or be available at build time
Yep, at runtime. I have a multi-stage dockerfile, with one stage building the application and the runtime stage copying the target folder and then running the executables
from prisma-client-rust.
Yep, at runtime. I have a multi-stage dockerfile, with one stage building the application and the runtime stage copying the target folder and then running the executables
Would you mind sharing your dockerfile? I'm confused as to why this would be failing
from prisma-client-rust.
Sure
FROM rust:latest AS maker
RUN cargo install --no-default-features --force cargo-make
FROM maker AS chef
RUN cargo install cargo-chef --locked
FROM chef AS planner
WORKDIR /app
COPY . .
RUN cargo chef prepare --recipe-path recipe.json
FROM chef AS builder
WORKDIR /app
COPY --from=planner /app/recipe.json recipe.json
# Build dependencies - this is the caching Docker layer!
RUN cargo chef cook --release --recipe-path recipe.json
COPY . .
RUN cargo build --release
FROM maker as runner
WORKDIR /app
COPY . .
COPY --from=builder /app/target/release ./target/release
# RUN cargo build --release
CMD ["cargo", "make", "migrate-run-prod"]
The Make task that is being run:
[tasks.migrate-run-prod]
script = ["./target/release/prisma-cli migrate deploy --schema=./packages/prisma/schema.prisma", "./target/release/seed", "./target/release/service"]
from prisma-client-rust.
Look like it's not an issue with your Dockerfile 😄
arm64 builds of the Prisma engines are available, but builds of the CLI are only available for 3.13.0, with the naming scheme of the CLI download urls set to change (steebchen/prisma-client-go#717). This should be fixed in conjunction with #52 when Prisma 3.13.0 is supported. For now I don't have a solution for you except to use x64 machines.
from prisma-client-rust.
@John0x Can you try installing prisma_client_rust
and primsa_client_rust_cli
from rev = "cfeed593903e59fe6690879197065369d4bbad98"
instead of tag = "0.4.1"
?
from prisma-client-rust.
@John0x Can you try installing
prisma_client_rust
andprimsa_client_rust_cli
fromrev = "cfeed593903e59fe6690879197065369d4bbad98"
instead oftag = "0.4.1"
?
Thanks for your effort :)
It works locally on my mac m1, but not on the AWS m6g.medium instance. (Worked on my mac before as well tho)
Error:
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| timestamp | message |
|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1651695736413 | [cargo-make] INFO - cargo make 0.35.11 |
| 1651695741553 | [cargo-make] INFO - Build File: Makefile.toml |
| 1651695741553 | [cargo-make] INFO - Task: migrate-run-prod |
| 1651695741553 | [cargo-make] INFO - Profile: development |
| 1651695741553 | [cargo-make] INFO - Running Task: legacy-migration |
| 1651695741564 | [cargo-make] INFO - Running Task: migrate-run-prod |
| 1651695741587 | Downloading https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-3.13.0-linux.gz to /root/.cache/prisma/binaries/cli/3.13.0/prisma-cli-linux-arm64 |
| 1651695746676 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/query-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-query-engine-linux-arm64-openssl-1.1.x |
| 1651695747743 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/migration-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-migration-engine-linux-arm64-openssl-1.1.x |
| 1651695747990 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/introspection-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-introspection-engine-linux-arm64-openssl-1.1.x |
| 1651695748213 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/prisma-fmt.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-prisma-fmt-linux-arm64-openssl-1.1.x |
| 1651695748302 | thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 8, kind: Uncategorized, message: "Exec format error" }', /usr/local/cargo/git/checkouts/prisma-client-rust-fa967aa5ad0ec391/cfeed59/cli/src/prisma_cli.rs:40:18 |
| 1651695748302 | stack backtrace: |
| 1651695748302 | 0: 0xaaaabca7c8b4 - std::backtrace_rs::backtrace::libunwind::trace::hb72fa83b7a29f1a7 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 |
| 1651695748302 | 1: 0xaaaabca7c8b4 - std::backtrace_rs::backtrace::trace_unsynchronized::hbfda2dacac316277 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 |
| 1651695748302 | 2: 0xaaaabca7c8b4 - std::sys_common::backtrace::_print_fmt::hbdc981bfed4ce765 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:66:5 |
| 1651695748302 | 3: 0xaaaabca7c8b4 - <std::sys_common::backtrace::_print::DisplayBacktrace as core::fmt::Display>::fmt::h0ee8113e53dd9501 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:45:22 |
| 1651695748302 | 4: 0xaaaabca9f1d4 - core::fmt::write::hfeafa1b3f4cde44b |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/fmt/mod.rs:1190:17 |
| 1651695748302 | 5: 0xaaaabca76478 - std::io::Write::write_fmt::h8e498245d185b12b |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/io/mod.rs:1657:15 |
| 1651695748302 | 6: 0xaaaabca7eb84 - std::sys_common::backtrace::_print::hfb8a354270630015 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:48:5 |
| 1651695748302 | 7: 0xaaaabca7eb84 - std::sys_common::backtrace::print::h0f1c3f701be8c977 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:35:9 |
| 1651695748302 | 8: 0xaaaabca7eb84 - std::panicking::default_hook::{{closure}}::hcaba4274d385417f |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:295:22 |
| 1651695748302 | 9: 0xaaaabca7e7cc - std::panicking::default_hook::h89cecd906305ec2a |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:314:9 |
| 1651695748302 | 10: 0xaaaabca7f204 - std::panicking::rust_panic_with_hook::haded46e2df0f4fd6 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:698:17 |
| 1651695748302 | 11: 0xaaaabca7ef70 - std::panicking::begin_panic_handler::{{closure}}::he5e693fe5e4ac6b4 |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:588:13 |
| 1651695748302 | 12: 0xaaaabca7cd6c - std::sys_common::backtrace::__rust_end_short_backtrace::hc44d591e7ee285ad |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/sys_common/backtrace.rs:138:18 |
| 1651695748302 | 13: 0xaaaabca7eca8 - rust_begin_unwind |
| 1651695748302 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:584:5 |
| 1651695748302 | 14: 0xaaaabc7ba634 - core::panicking::panic_fmt::hb04515a4b04219bf |
| 1651695748303 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/panicking.rs:143:14 |
| 1651695748304 | 15: 0xaaaabc7ba6d8 - core::result::unwrap_failed::hf84f08a5e231dad5 |
| 1651695748304 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/result.rs:1749:5 |
| 1651695748306 | 16: 0xaaaabc7f2888 - prisma_client_rust_cli::prisma_cli::main::h7122ddbd9e7b0666 |
| 1651695748306 | 17: 0xaaaabc7bdb68 - prisma_client_rust_cli::run::h5d8df653dd21d947 |
| 1651695748306 | 18: 0xaaaabc7bae00 - std::sys_common::backtrace::__rust_begin_short_backtrace::h5e611b9f00cba9d4 |
| 1651695748306 | 19: 0xaaaabc7badbc - std::rt::lang_start::{{closure}}::h6d4af5e7ad6e2d00 |
| 1651695748306 | 20: 0xaaaabca7c0bc - core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once::hdb45ce9c36440355 |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/core/src/ops/function.rs:259:13 |
| 1651695748306 | 21: 0xaaaabca7c0bc - std::panicking::try::do_call::h7e8bb9a5488c007b |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 |
| 1651695748306 | 22: 0xaaaabca7c0bc - std::panicking::try::hcc55e9ed15610d77 |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 |
| 1651695748306 | 23: 0xaaaabca7c0bc - std::panic::catch_unwind::hcf59f097cd8ee652 |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 |
| 1651695748306 | 24: 0xaaaabca7c0bc - std::rt::lang_start_internal::{{closure}}::h8fbfb8ff9e6d08fc |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:48 |
| 1651695748306 | 25: 0xaaaabca7c0bc - std::panicking::try::do_call::hb9473916547b0c2e |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:492:40 |
| 1651695748306 | 26: 0xaaaabca7c0bc - std::panicking::try::hfd0be8714fe2c175 |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panicking.rs:456:19 |
| 1651695748306 | 27: 0xaaaabca7c0bc - std::panic::catch_unwind::hd13ef362c9d4275f |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/panic.rs:137:14 |
| 1651695748306 | 28: 0xaaaabca7c0bc - std::rt::lang_start_internal::hb2f3ce624f838b60 |
| 1651695748306 | at /rustc/7737e0b5c4103216d6fd8cf941b7ab9bdbaace7c/library/std/src/rt.rs:128:20 |
| 1651695748306 | 29: 0xaaaabc7badf0 - main |
| 1651695748306 | 30: 0xffffaa2e7218 - __libc_start_main |
| 1651695748306 | 31: 0xaaaabc7bacb4 - <unknown> |
| 1651695748316 | [cargo-make] ERROR - Error while executing command, exit code: 101 |
| 1651695748316 | [cargo-make] WARN - Build Failed. |
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
from prisma-client-rust.
@John0x Ah, I can see what's going on there. Try rev = "8429dc60ad6854a60397a43374917dcb4f59e455"
. It works on your mac since prisma-cli-3.13.0-darwin
can run on M1 through Rosetta, but prisma-cli-3.13.0-linux
is x64 only. I've made the architecture be specified so that prisma-cli-3.13.0-linux-arm64
should be downloaded on the AWS machine now.
from prisma-client-rust.
@John0x Ah, I can see what's going on there. Try
rev = "8429dc60ad6854a60397a43374917dcb4f59e455"
. It works on your mac sinceprisma-cli-3.13.0-darwin
can run on M1 through Rosetta, butprisma-cli-3.13.0-linux
is x64 only. I've made the architecture be specified so thatprisma-cli-3.13.0-linux-arm64
should be downloaded on the AWS machine now.
That worked. Thank you very much :)
from prisma-client-rust.
Ah, sorry, that might have been too soon 😃
Looks like it did download correctly but didn't execute the migrate command (specified by the make task). The "&operation = Read(
" output comes from the seed command, which should be executed after the migrations have been applied.
Btw. the connection string is currently being logged in cleartext, which probably should be changed :)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| message |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [cargo-make] INFO - cargo make 0.35.11 |
| [cargo-make] INFO - Build File: Makefile.toml |
| [cargo-make] INFO - Task: migrate-run-prod |
| [cargo-make] INFO - Profile: development |
| [cargo-make] INFO - Running Task: legacy-migration |
| [cargo-make] INFO - Running Task: migrate-run-prod |
| Downloading https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-3.13.0-linux-arm64.gz to /root/.cache/prisma/binaries/cli/3.13.0/prisma-cli-linux-arm64 |
| Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/query-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-query-engine-linux-arm64-openssl-1.1.x |
| Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/migration-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-migration-engine-linux-arm64-openssl-1.1.x |
| Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/introspection-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-introspection-engine-linux-arm64-openssl-1.1.x |
| Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/prisma-fmt.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-prisma-fmt-linux-arm64-openssl-1.1.x |
| �[2m2022-05-04T23:30:15.232055Z�[0m �[32m INFO�[0m �[1;32mquaint::pooled�[0m�[32m: �[32mStarting a postgresql pool with 3 connections.�[0m |
| �[2;3mat�[0m /usr/local/cargo/git/checkouts/quaint-9f01e008b9a89c14/a0722f2/src/pooled.rs:322 |
| �[2;3min�[0m query_core::executor::loader::�[1mexec_loader�[0m �[2;3mwith�[0m �[1mfeatures�[0m: [], �[1murl�[0m: "redacted connection string" |
| [/usr/local/cargo/git/checkouts/prisma-client-rust-fa967aa5ad0ec391/8429dc6/src/query.rs:27] &operation = Read( |
| Selection { |
| name: "redacted", |
| alias: Some( |
| "result", |
| ), |
| arguments: [ |
| ( |
| "where", |
| Object( |
| { |
| "name": String( |
| "redacted", |
| ), |
| }, |
| ), |
| ), |
| ], |
| nested_selections: [ |
| Selection { |
| name: "name", |
| alias: None, |
| arguments: [], |
| nested_selections: [], |
| }, |
| ], |
| }, |
| ) |
| Error: Error executing query: Error occurred during query execution: |
| ConnectorError(ConnectorError { user_facing_error: Some(KnownError { message: "The table `public.redacted` does not exist in the current database.", meta: Object({"table": String("public.redacted")}), error_code: "P2021" }), kind: TableDoesNotExist { table: "public.redacted" } }) |
| Caused by: |
| Error occurred during query execution: |
| ConnectorError(ConnectorError { user_facing_error: Some(KnownError { message: "The table `public.redacted` does not exist in the current database.", meta: Object({"table": String("public.redacted")}), error_code: "P2021" }), kind: TableDoesNotExist { table: "public.redacted" } }) |
| [cargo-make] ERROR - Error while executing command, exit code: 1 |
| [cargo-make] WARN - Build Failed. |
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
from prisma-client-rust.
If migrate deploy
isn't applying the migrations, are you sure that your migrations are up to date by running migrate dev
? Seems strange that it would download the CLI, and then end. The CLI shouldn't just fail silently like that. If that is the case though, then I've got some investigation to do 😅
from prisma-client-rust.
If
migrate deploy
isn't applying the migrations, are you sure that your migrations are up to date by runningmigrate dev
? Seems strange that it would download the CLI, and then end. The CLI shouldn't just fail silently like that. If that is the case though, then I've got some investigation to do 😅
Yep, pretty sure they are up-to-date. Works fine on my machine 😃 (using the same Dockerfile). The prisma schema points to the same env var for the connection string as the seeding package, therefore it should be able to connect to the db, since the seeding package is able to do it.
I ran the aws instance again and got an additional error message this time "Pkg: Error reading from file.".
Which, as far as I know, sometimes happens on corrupt executables. I removed the rest of the logs, since it's exactly the same as the previous run.
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| timestamp | message |
|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| 1651749838753 | [cargo-make] INFO - cargo make 0.35.11 |
| 1651749842180 | [cargo-make] INFO - Build File: Makefile.toml |
| 1651749842180 | [cargo-make] INFO - Task: migrate-run-prod |
| 1651749842180 | [cargo-make] INFO - Profile: development |
| 1651749842181 | [cargo-make] INFO - Running Task: legacy-migration |
| 1651749842191 | [cargo-make] INFO - Running Task: migrate-run-prod |
| 1651749842213 | Downloading https://prisma-photongo.s3-eu-west-1.amazonaws.com/prisma-cli-3.13.0-linux-arm64.gz to /root/.cache/prisma/binaries/cli/3.13.0/prisma-cli-linux-arm64 |
| 1651749846487 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/query-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-query-engine-linux-arm64-openssl-1.1.x |
| 1651749846826 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/migration-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-migration-engine-linux-arm64-openssl-1.1.x |
| 1651749847072 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/introspection-engine.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-introspection-engine-linux-arm64-openssl-1.1.x |
| 1651749847291 | Downloading https://binaries.prisma.sh/all_commits/efdf9b1183dddfd4258cd181a72125755215ab7b/linux-arm64-openssl-1.1.x/prisma-fmt.gz to /root/.cache/prisma/binaries/cli/3.13.0/efdf9b1183dddfd4258cd181a72125755215ab7b/prisma-prisma-fmt-linux-arm64-openssl-1.1.x |
| 1651749848531 | Pkg: Error reading from file. |
| 1651749848545 | �[2m2022-05-05T11:24:08.545091Z�[0m �[32m INFO�[0m �[1;32mquaint::pooled�[0m�[32m: �[32mStarting a postgresql pool with 3 connections.�[0m |
| 1651749848545 | �[2;3mat�[0m /usr/local/cargo/git/checkouts/quaint-9f01e008b9a89c14/a0722f2/src/pooled.rs:322 |
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
from prisma-client-rust.
I fired up an arm64 EC2 instance with Amazon Linux and managed to run cargo prisma generate
, cargo prisma migrate dev
and cargo prisma migrate deploy
with no troubles. Honestly not sure why it's not working in your docker image. Don't really have any other advice than using rev = "8429dc60ad6854a60397a43374917dcb4f59e455"
and making sure that all the migration SQL is being generated, included in your docker image and detected by cargo prisma migrate push
.
from prisma-client-rust.
I fired up an arm64 EC2 instance with Amazon Linux and managed to run
cargo prisma generate
,cargo prisma migrate dev
andcargo prisma migrate deploy
with no troubles. Honestly not sure why it's not working in your docker image. Don't really have any other advice than usingrev = "8429dc60ad6854a60397a43374917dcb4f59e455"
and making sure that all the migration SQL is being generated, included in your docker image and detected bycargo prisma migrate push
.
Thanks for trying :)
I'll look into it more tomorrow. I didn't run it via cargo, maybe that's the problem. I'm building it and then running the built executables
from prisma-client-rust.
Related Issues (20)
- Unique array error HOT 2
- [Build from Git + prisma_client_rust_cli] Error compiling rust-postgres (tokio-postgres) HOT 2
- Can not download query engine for openssl 3.2 HOT 3
- PrismaClient set log level HOT 2
- Include schema by relative path. HOT 3
- Abstracting over fetching relations
- Build for Docker HOT 2
- Support --generator option to generate cmd HOT 2
- Future incompatibility Report HOT 1
- Feat: Code Generate Split Demo
- connection-string: code will be rejected by a future version of Rust
- Upgrade to Prisma 5.9 to improve join performance HOT 2
- MySQL Bad Handshake when using sslcert
- Relation-Count (equivalent to _count) HOT 2
- Cargo check causes entire project to rebuild when run but only when Prisma crates are dependencies HOT 1
- Add optional utoipa to generated prisma macro HOT 1
- Unique constraints with composite type fields HOT 3
- Feedback for “Mocking” HOT 1
- Proper way to cache "prisma generate" command HOT 2
- alpine prisma client generate error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prisma-client-rust.