prisma / migrate

Issues for Prisma Migrate are now tracked at prisma/prisma. This repo was used to track issues for Prisma Migrate Experimental and is now deprecated.
https://www.prisma.io/docs/concepts/components/prisma-migrate
Apache License 2.0
766 stars 22 forks source link

Migration don't working #657

Closed michelssousa closed 3 years ago

michelssousa commented 3 years ago

Hi Prisma Team! Prisma Migrate just crashed.

Versions

Name Version
Platform darwin
Node v14.15.0
Prisma CLI 2.11.0
Binary 58369335532e47bdcec77a2f1e7c1fb83a463918

Error

Error: Error in migration engine.
Reason: [migration-engine/connectors/sql-migration-connector/src/sql_migration_persistence.rs:98:76] called `Result::unwrap()` on an `Err` value: ConnectionError { quaint_error: Error { kind: QueryError(Error { kind: Db, cause: Some(DbError { severity: "ERROR", parsed_severity: Some(Error), code: SqlState("XX000"), message: "unexpected data beyond EOF in block 0 of relation base/16384/49367", detail: None, hint: Some("This has been seen to occur with buggy kernels; consider updating your system."), position: None, where_: None, schema: None, table: None, column: None, datatype: None, constraint: None, file: Some("bufmgr.c"), line: Some(825), routine: Some("ReadBuffer_common") }) }), original_code: Some("XX000"), original_message: Some("db error: ERROR: unexpected data beyond EOF in block 0 of relation base/16384/49367") }, connection_info: Postgres(PostgresUrl { url: Url { scheme: "postgresql", host: Some(Domain("localhost")), port: Some(5432), path: "/expensesApi", query: Some("schema=public&statement_cache_size=0"), fragment: None }, query_params: PostgresUrlQueryParams { ssl_params: SslParams { certificate_file: None, identity_file: None, identity_password: <HIDDEN>, ssl_accept_mode: AcceptInvalidCerts }, connection_limit: None, schema: "public", ssl_mode: Prefer, pg_bouncer: false, host: None, socket_timeout: None, connect_timeout: None, statement_cache_size: 0 } }) }

Please create an issue in the migrate repo with
your `schema.prisma` and the prisma command you tried to use 🙏:
https://github.com/prisma/migrate/issues/new
Jolg42 commented 3 years ago

Could you try again with the new Prisma Migrate version 2.13?

https://www.prisma.io/blog/prisma-migrate-preview-b5eno5g08d0b

tomhoule commented 3 years ago

This looks like an internal postgres error. Please open a new issue if it happens with a fresh database. Thanks!