rivet-gg / opengb

Open Game Backend: Open-source modular backend for all games and tools. Works with Godot, Unity, Unreal Engine, and HTML5.
https://opengb.dev
Apache License 2.0
75 stars 5 forks source link

`prisma generate` sporadically fails #293

Open NathanFlurry opened 1 month ago

NathanFlurry commented 1 month ago

Symptoms

Unable to reproduce consistently

When running opengb dev (I think always it's for the first time off of a clean build), it produces this error:

    error: Failed to run: prisma generate

    stdout: Prisma schema loaded from schema.prisma
    Prisma schema loaded from schema.prisma
    stderr: node:events:497
    throw er; // Unhandled 'error' event
    ^

    Error: ENOENT: no such file or directory, open '/prisma/node_modules/prisma/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node'
    Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: '/prisma/node_modules/prisma/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node'
    }

    Node.js v21.7.3
    node:events:497
    throw er; // Unhandled 'error' event
    ^

    Error: ENOENT: no such file or directory, open '/prisma/node_modules/prisma/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node'
    Emitted 'error' event on ReadStream instance at:
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at emitErrorCloseNT (node:internal/streams/destroy:128:3)
    at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'open',
    path: '/prisma/node_modules/prisma/libquery_engine-linux-musl-arm64-openssl-3.0.x.so.node'
    }

    Node.js v21.7.3

Solution

Running opengb dev again works the second time.

linear[bot] commented 1 month ago

OGBE-108 `prisma generate` sporadically fails