AgentGPT icon indicating copy to clipboard operation
AgentGPT copied to clipboard

npx prisma db push, throw error?

Open lddlww opened this issue 2 years ago • 3 comments

npx prisma db push
> Downloading Prisma engines for Node-API for rhel-openssl-1.1.x [                    ] 0%Error: request to https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/migration-engine.gz.sha256 failed, reason: connect EINVAL 0.0.254.149:80 - Local (0.0.0.0:0)

what's wrong with it?

lddlww avatar Apr 14 '23 03:04 lddlww

That sounds like an internet, dns, or firewall issue. Have you denied any prompts for firewall access? Depending on OS.

APiTJLillo avatar Apr 15 '23 18:04 APiTJLillo

Hey are you still experiencing this issue?

asim-shrestha avatar Apr 23 '23 23:04 asim-shrestha

yes,it's always throw error,and i used follow steps to solve the issue

1、download component by manual(yes, wget is ok)

wget  https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/libquery_engine.so.gz
wget  https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/migration-engine.gz
wget  https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/prisma-fmt.gz
wget  https://binaries.prisma.sh/all_commits/659ef412370fa3b41cd7bf6e94587c1dfb7f67e7/rhel-openssl-1.1.x/query-engine.gz

2、set environment

vim ~./bash_profile
ENGINE_DIR="${WGET_DIR}"
export PRISMA_QUERY_ENGINE_LIBRARY="${WGET_DIR}/libquery_engine.so.node"
export PRISMA_QUERY_ENGINE_BINARY="${WGET_DIR}/query-engine"
export PRISMA_MIGRATION_ENGINE_BINARY="${WGET_DIR}/migration-engine"
export PRISMA_FMT_BINARY="${WGET_DIR}/prisma-fmt"

then, run npx prisma db push is ok now

lddlww avatar Apr 24 '23 01:04 lddlww

Awesome :) closing

asim-shrestha avatar May 10 '23 23:05 asim-shrestha