Schema generation freezed after bitbucket OS upgrade (FlatCarOS upgrade 2605.12.0 to 2765.2.2 (kernel move from 5.4.92 directly to 5.10.25))
See original GitHub issueBug description
Bitbucket have upgraded CI pipeline platform https://support.atlassian.com/bitbucket-cloud/docs/infrastructure-changes-in-bitbucket-pipelines/
Since 4 may all ours builds, including previous in success, stay freeze on this step
npm install prisma@2.22.1 @prisma/client@2.22.1
Logs with DEBUG=“prisma:*” here
> prisma@2.22.1 preinstall /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/prisma
> node scripts/preinstall-entry.js
> sq-native@1.0.7 install /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/sq-native
> node ./install.js
> prisma@2.22.1 install /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/prisma
> node scripts/install-entry.js
> core-js@3.7.0 postinstall /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
> @apollo/protobufjs@1.0.5 postinstall /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@apollo/protobufjs
> node scripts/postinstall
> @prisma/engines@2.22.0-21.60cc71d884972ab4e897f0277c4b84383dddaf6c postinstall /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines
> node download/index.js
2021-05-11T15:35:31.966Z prisma:download file /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x does not exist and must be downloaded
2021-05-11T15:35:31.967Z prisma:download file /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x does not exist and must be downloaded
2021-05-11T15:35:31.967Z prisma:download file /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x does not exist and must be downloaded
2021-05-11T15:35:31.968Z prisma:download file /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x does not exist and must be downloaded
2021-05-11T15:35:31.969Z prisma:download Downloading https://binaries.prisma.sh/all_commits/60cc71d884972ab4e897f0277c4b84383dddaf6c/debian-openssl-1.1.x/query-engine.gz to /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x
2021-05-11T15:35:31.986Z prisma:download Downloading https://binaries.prisma.sh/all_commits/60cc71d884972ab4e897f0277c4b84383dddaf6c/debian-openssl-1.1.x/migration-engine.gz to /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x
2021-05-11T15:35:31.987Z prisma:download Downloading https://binaries.prisma.sh/all_commits/60cc71d884972ab4e897f0277c4b84383dddaf6c/debian-openssl-1.1.x/introspection-engine.gz to /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x
2021-05-11T15:35:31.988Z prisma:download Downloading https://binaries.prisma.sh/all_commits/60cc71d884972ab4e897f0277c4b84383dddaf6c/debian-openssl-1.1.x/prisma-fmt.gz to /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x
> @prisma/client@2.22.1 postinstall /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/@prisma/client
> node scripts/postinstall.js
2021-05-11T15:35:33.839Z prisma:loadEnv project root found at /opt/atlassian/pipelines/agent/build/packages/api.promtime/package.json
2021-05-11T15:35:33.854Z prisma:tryLoadEnv Environment variables not found at null
2021-05-11T15:35:33.854Z prisma:tryLoadEnv Environment variables not found at undefined
2021-05-11T15:35:33.854Z prisma:tryLoadEnv No Environment variables loaded
2021-05-11T15:35:33.855Z prisma:engines using NAPI: false
2021-05-11T15:35:33.856Z prisma:engines binaries to download query-engine, migration-engine, introspection-engine, prisma-fmt
Prisma schema loaded from schema.prisma
2021-05-11T15:35:34.798Z prisma:download copying /root/.cache/prisma/master/60cc71d884972ab4e897f0277c4b84383dddaf6c/debian-openssl-1.1.x/query-engine to /opt/atlassian/pipelines/agent/build/packages/api.promtime/node_modules/prisma/query-engine-debian-openssl-1.1.x
How to reproduce
Use a bitbucket pipeline on new infra S Kubernetes FlatcarOS to v2765.2.2 run npm install prisma with a schema file available
Expected behavior
Schema generation on premium or business infra
Prisma information
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}
model Admin {
id String @id @default(uuid())
userId String @unique // ...via foreigne key.
createdAt DateTime @default(now())
updatedAt DateTime @default(now()) @updatedAt
}
Environment & setup
- OS: Debian docker cypress/base:14.16.0
- Database: Postgres docker postgres:12.5-alpine
- Node.js version: 14.16.0
- Prisma version: 2.22.1
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:15 (8 by maintainers)
Top Results From Across the Web
Troubleshooting Installation | Bitbucket Data Center and ...
Bitbucket Data Center or Bitbucket Server fails to start after upgrade, because required plugins cannot be loaded. Bitbucket fails to start up ...
Read more >prisma/prisma 2.24.0 on GitHub - NewReleases.io
You can now view your project's schema in order to better understand your ... upgrade 2605.12.0 to 2765.2.2 (kernel move from 5.4.92 directly...
Read more >Releases | Flatcar Container Linux
Versions of Flatcar Container Linux have been tested as they move through Alpha and Beta channels before being promoted to stable. containerd -...
Read more >PSA: don't upgrade to linux kernel 5.19.12
11-200.fc36 for me), and hit enter. Your system will boot like normal. Now the trick is going to be making your previous kernel...
Read more >BitBucket Mercurial Repository Support Ended | What to Do
* New Mercurial repositories couldn't be created after February 1, 2020. * Date was amended April 24, 2020 to reflect the 30-day extension...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Someone could try this integration release
prisma@2.24.0-integration-docker-workaround.1
for the CLI, based on https://github.com/prisma/prisma/pull/7222 that I quickly hacked together based on @leomao10 's comment: https://github.com/prisma/prisma/issues/7037#issuecomment-846370629 Let me know if this fixes the problem and we could merge this workaround into our next release to unblock all of you.You can actually see more details from here regarding the ruby related issue: https://github.com/docker/for-linux/issues/1015
In this comment, @ZimbiX managed to figure out the main issue is from
copy_file_range
syscall.So I did a bit of digging and found that
fs.copyFile
will get affected, so I made an POC (which is the nodeJS copy of @pedantic-git 's reproduce-copystream)And you will see the script hang indefinitely in docker the OS kernal is higher than 5.6
Given that in #5304, @JacobMuchow found that it hangs in:
which is calling fs.copyFile
I think it is very likely that it is the same cause as docker/for-linux#1015
For the impact, it seems to affect all nodeJS versions that is using libuv > 1.38.0, with kernal version > 5.6.