Skip to content

bug: Prisma Migration fails to execute on self-hosted due to inaccessible registry.npmjs.org #2178

Closed
@kirse

Description

@kirse

Provide environment information

Receiving the error below when trying to docker compose up -d on a self-hosted v4 setup.

Tried to solve it with a custom .npmrc mounted inside the webapp docker-compose.yml (to point to an internal NPM registry), but no dice.

Any reason why executing the migrations tries to reach out to the NPM Registry? And thoughts on a fix / workaround?

node@6478ec4b17a8:~$ pnpm --filter @trigger.dev/database db:migrate:deploy
Internal Error: Error when performing the request to https://registry.npmjs.org/pnpm; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at ClientRequest.<anonymous> (/usr/local/lib/node_modules/corepack/dist/lib/corepack.cjs:42195:14)
    at ClientRequest.emit (node:events:518:28)
    at TLSSocket.socketErrorListener (node:_http_client:495:9)
    at TLSSocket.emit (node:events:518:28)
    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)

Describe the bug

Expecting webapp to startup without having to reach out to NPM Registry to run DB migrations for node_modules that already exist on disk in the container.

Reproduction repo

N/A

To reproduce

Follow the basic Trigger.dev v4 guide inside a network-limited WSL2 Ubuntu vanilla install.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions