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

Prisma Warning on Ubuntu 20.04 #22347

Closed
saremeskandary opened this issue Dec 12, 2023 · 2 comments
Closed

Prisma Warning on Ubuntu 20.04 #22347

saremeskandary opened this issue Dec 12, 2023 · 2 comments
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: OS/distro-resolution
Milestone

Comments

@saremeskandary
Copy link

Bug description

When running a Next.js 13 app that utilizes Prisma on an Ubuntu 20.04 environment, a recurring warning is displayed in the console. The warning message is as follows:

prisma:warn Prisma doesn't know which engines to download for the Linux distro "". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.

How to reproduce

  1. Set up a Next.js 13 application with Prisma integration on an Ubuntu 20.04 environment.
  2. Run the development server using the configured Prisma setup.
  3. Observe the console output for the mentioned warning message.

Expected behavior

The Prisma setup should identify the Linux distribution correctly and download the appropriate engines without displaying a warning.

Prisma information

The warning message indicates that Prisma is unable to determine the Linux distribution and falls back to using Prisma engines built for "debian."

Environment & setup

// lib/prisma.ts
import { PrismaClient } from "@prisma/client";

declare global {
let prisma: PrismaClient | undefined;
}

const globalForPrisma = global as unknown as { prisma: PrismaClient };

export const prisma = globalForPrisma.prisma || new PrismaClient();

if (process.env.NODE_ENV !== "production") globalForPrisma.prisma = prisma;

export default prisma;
"@next-auth/prisma-adapter": "^1.0.7",
"@prisma/client": "^5.1.1",
"prisma": "^5.7.0",

Prisma Version

"prisma": "^5.7.0",

@saremeskandary saremeskandary added the kind/bug A reported bug. label Dec 12, 2023
@jkomyno jkomyno added kind/improvement An improvement to existing feature and code. team/schema Issue for team Schema. and removed kind/bug A reported bug. labels Dec 14, 2023
@jkomyno
Copy link
Contributor

jkomyno commented Dec 14, 2023

Hi @saremeskandary, I just wanted to highlight that the warning above doesn't impact Prisma's features: everything you are already familiar with is still available. We will take a look at why that warning appears, and remove it in future versions.

Can you please report back with the output you're getting from cat /etc/os-release?

Thanks!

@janpio janpio added topic: OS/distro-resolution bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. and removed kind/improvement An improvement to existing feature and code. labels Feb 16, 2024
@Jolg42
Copy link
Member

Jolg42 commented Mar 6, 2024

I'll close this, as the fallback/default engine should work as expected, so only a report would be needed if there is an issue, let us know if that's the case.

Note that we changed the message, to make it informational only in #23243
The updated message will be part of the next release 5.11.0, next week.

@Jolg42 Jolg42 closed this as completed Mar 6, 2024
@Jolg42 Jolg42 added this to the 5.11.0 milestone Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug. team/schema Issue for team Schema. topic: OS/distro-resolution
Projects
None yet
Development

No branches or pull requests

4 participants