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

hub: Change Docker setup for Prisma #3500

Merged
merged 5 commits into from
Dec 15, 2022
Merged

hub: Change Docker setup for Prisma #3500

merged 5 commits into from
Dec 15, 2022

Conversation

backspace
Copy link
Contributor

@backspace backspace commented Dec 15, 2022

Prisma queries were failing with errors like this:

Error: 
Invalid `prisma.$queryRaw()` invocation:


Unable to load Node-API Library from /workspace/node_modules/.prisma/client/libquery_engine-linux-musl.so.node, Library may be corrupt

The culprit was that the node:14-alpine Docker image that Hub runs on was updated and OpenSSL 3.0 became the default. This adapts a fix mentioned here, but we wanted to be able to stay on node:14-alpine (latest) vs having to pin to an older version (3.16 was the working one).

This also updates @prisma/client to match the prisma version to bypass this error.

There’s a warning about the mismatch, might it explain
the periodic errors in deployment?

https://github.com/cardstack/cardstack/actions/runs/3704795929/jobs/6278311091#step:6:20
@backspace backspace added bug hub dependencies Pull requests that update a dependency file labels Dec 15, 2022
@backspace backspace self-assigned this Dec 15, 2022
@github-actions
Copy link

github-actions bot commented Dec 15, 2022

ssr-web test results

178 tests   178 ✔️  10s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit acd698c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Dec 15, 2022

web-client test results

528 tests   528 ✔️  1m 12s ⏱️
    1 suites      0 💤
    1 files        0

Results for commit acd698c.

♻️ This comment has been updated with latest results.

@backspace backspace changed the title hub: Change @prisma/client to match prisma version hub: Change Docker setup for Prisma Dec 15, 2022
@backspace backspace marked this pull request as ready for review December 15, 2022 21:59
@backspace backspace merged commit d7be8de into main Dec 15, 2022
@delete-merged-branch delete-merged-branch bot deleted the hub/prisma-client-4.7.1 branch December 15, 2022 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file hub
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants