CursorLens icon indicating copy to clipboard operation
CursorLens copied to clipboard

Issue with Dockerfile using older ssl lib

Open ckonkel opened this issue 1 year ago • 0 comments

Fixed by adding openssl to apk in Dockerfile.

RUN apk add --no-cache libc6-compat openssl

app-1 | Error: Could not parse schema engine response: SyntaxError: Unexpected token E in JSON at position 0 app-1 | prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x". app-1 | Please manually install OpenSSL and try installing Prisma again. app-1 | Environment variables loaded from .env app-1 | Running seed command tsx prisma/seed.ts ... app-1 | prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x". app-1 | Please manually install OpenSSL and try installing Prisma again. app-1 | PrismaClientInitializationError: app-1 | Invalid prisma.modelCost.upsert() invocation in app-1 | /app/prisma/seed.ts:16:32 app-1 | app-1 | 13 for (const [provider, models] of Object.entries(modelConfigurations)) { app-1 | 14 for (const [model, config] of Object.entries(models)) { app-1 | 15 if (config && "inputTokenCost" in config && "outputTokenCost" in config) { app-1 | → 16 await prisma.modelCost.upsert( app-1 | Unable to require(/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/.prisma/client/libquery_engine-linux-musl-arm64-openssl-1.1.x.so.node). app-1 | The Prisma engines do not seem to be compatible with your system. Please refer to the documentation about Prisma's system requirements: https://pris.ly/d/system-requirements app-1 | app-1 | Details: Error loading shared library libssl.so.1.1: No such file or directory (needed by /app/node_modules/.pnpm/@[email protected][email protected]/node_modules/.prisma/client/libquery_engine-linux-musl-arm64-openssl-1.1.x.so.node) app-1 | at _n.handleRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:8049) app-1 | at _n.handleAndLogRequestError (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:7057) app-1 | at _n.request (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:121:6741) app-1 | at async l (/app/node_modules/.pnpm/@[email protected][email protected]/node_modules/@prisma/client/runtime/library.js:130:9355) app-1 | at main (/app/prisma/seed.ts:16:9) { app-1 | clientVersion: '5.18.0', app-1 | errorCode: undefined app-1 | }

ckonkel avatar Feb 15 '25 10:02 ckonkel