[GH-ISSUE #3217] [bug]: Error when running pnpm exec prisma migrate deploy #1060

Closed
opened 2026-03-16 18:20:58 +03:00 by kerem · 1 comment
Owner

Originally created by @galaxy78r on GitHub (Jul 27, 2023).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3217

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

I am trying to install selfhosted hoppscotch
I am using the default database that is provided with the docker container and after building the image when I run the commands
docker ps # copy the id of hoppscotch-backend
docker exec -it id bash
pnpm exec prisma migrate deploy

I get the error :

Error: P1001: Can't reach database server at hoppscotch-db:5432
Please make sure your database server is running at hoppscotch-db:5432.

Thanks you in advance for your support

Steps to reproduce

git clone https://github.com/hoppscotch/hoppscotch.git

Copy the contents of .env.example file found in the root directory of cloned repository to .env and add your own values for the environment variables.

pnpm install

docker compose build

docker ps # copy the id of hoppscotch-backend
docker exec -it id bash
pnpm exec prisma migrate deploy

Environment

Production

Version

Cloud

Originally created by @galaxy78r on GitHub (Jul 27, 2023). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/3217 ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior I am trying to install selfhosted hoppscotch I am using the default database that is provided with the docker container and after building the image when I run the commands `docker ps # copy the id of hoppscotch-backend` `docker exec -it id bash` `pnpm exec prisma migrate deploy` I get the error : ----------------------------------- Error: P1001: Can't reach database server at `hoppscotch-db`:`5432` Please make sure your database server is running at `hoppscotch-db`:`5432`. ----------------------------------- Thanks you in advance for your support ### Steps to reproduce git clone https://github.com/hoppscotch/hoppscotch.git Copy the contents of .env.example file found in the root directory of cloned repository to .env and add your own values for the environment variables. pnpm install docker compose build docker ps # copy the id of hoppscotch-backend docker exec -it id bash pnpm exec prisma migrate deploy ### Environment Production ### Version Cloud
kerem 2026-03-16 18:20:58 +03:00
Author
Owner

@galaxy78r commented on GitHub (Jul 27, 2023):

Issue was solved by running
docker compose up

<!-- gh-comment-id:1653966139 --> @galaxy78r commented on GitHub (Jul 27, 2023): Issue was solved by running `docker compose up`
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#1060
No description provided.