-
-
Notifications
You must be signed in to change notification settings - Fork 898
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
error happened when run wasp db migrate-dev #347
Comments
Maybe @martinovicdev, our resident WSL hacker, or @Martinsos know what to do here? |
This could have been caused by the incomplete Docker Desktop installation. Here is a step by step guide based on official Docker guide https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user:
|
oh nice thanks for this @martinovicdev! @feitian124 let us know if this solves your issue! |
sorry for delay, i tried today, it report the same error: 2025-01-19 22:34:56 ⌚ ming-r7000 in ~/github/feitian124/open-saas-demo/app
○ → wasp start db
✨ Starting a PostgreSQL dev database (based on your Wasp config) ✨
Additional info:
ℹ Connection URL, in case you might want to connect with external tools:
postgresql://postgresWaspDevUser:postgresWaspDevPass@localhost:5432/OpenSaaS-f3fba5c43c
ℹ Database data is persisted in a docker volume with the following name (useful to know if you will want to delete it at some point):
wasp-dev-db-OpenSaaS-f3fba5c43c
...
docker: Error response from daemon: Ports are not available: exposing port TCP 0.0.0.0:5432 -> 0.0.0.0:0: listen tcp 0.0.0.0:5432: bind: Only one usage of each socket address (protocol/network address/port) is normally permitted.
wasp-bin: callCommand: docker run --name wasp-dev-db-OpenSaaS-f3fba5c43c --rm --publish 5432:5432 -v wasp-dev-db-OpenSaaS-f3fba5c43c:/var/lib/postgresql/data --env POSTGRES_PASSWORD=postgresWaspDevPass --env POSTGRES_USER=postgresWaspDevUser --env POSTGRES_DB=OpenSaaS-f3fba5c43c postgres (exit 125): failed @martinovicdev what the step 3 purpose?
it also report error. and thank you for help, you can close this issue since i know this is mainly a enviroment issue, not really close related to wasp, i will try use a real linux desktop instead of wsl2. |
i am running postgre by WSL2 in ubuntu 24.04, and i am using docker desktop for windows.
when i run
wasp start db
, it report below error. but i do not on any process on wsl2 or windows for port 5432.i try run bare docker command directly, it works this time.
but later steps report error too:
i run
wasp db studio
, i can see my database are runing and can see studio page,obviously my database is running on 5432, not sure why
wasp db migrate-dev
andwasp start
not work.does anyone met same problem?
and also, does this repo support sqlite?
thank you.
The text was updated successfully, but these errors were encountered: