Skip to content
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

Running make sihl migrate #13

Open
idkjs opened this issue Aug 19, 2021 · 1 comment
Open

Running make sihl migrate #13

idkjs opened this issue Aug 19, 2021 · 1 comment

Comments

@idkjs
Copy link
Contributor

idkjs commented Aug 19, 2021

Hey folks. Trying to run this not with the devcontainer. After make switch and make db with docker running, make sihl migrate produces the following output

~/Github/sihl-demo main !1 ?1                                                                                                               
❯ open -a Docker.app

~/Github/sihl-demo main !1 ?1                                                                                                              
❯ make db
Starting docker_database_1 ... done
Starting docker_adminer_1  ... done

~/Github/sihl-demo main !1 ?1                                                                                                                3.0.1
❯ make sihl migrate
2021-08-19T14:13:26-00:00 [INFO] [sihl.core.app]: Setting up...
2021-08-19T14:13:26-00:00 [INFO] [sihl.core.configuration]: SIHL_ENV: development
2021-08-19T14:13:26-00:00 [INFO] [sihl.service.database]: Create pool with size 10
2021-08-19T14:13:26-00:00 [ERROR] [sihl.service.database]: Failed to connect to <postgres://admin:[email protected]:5432/dev>: Connection failure: FATAL:  database "dev" does not exist

Command 'migrate' aborted after 86.474ms: 'Sihl__Contract_database.Exception("Failed to connect to <postgres://admin:[email protected]:5432/dev>: Connection failure: FATAL:  database \"dev\" does not exist\n")'
Raised at Stdlib__map.Make.find in file "map.ml", line 136, characters 10-25
Called from Sexplib0__Sexp_conv.Exn_converter.find_auto in file "src/sexp_conv.ml", line 156, characters 10-37


~/Github/sihl-demo main !1 ?1   

I suspect it has something to do with there being no volumes in the docker file and no init script therin creating the db?

Thank you for updating this to sihl@rc, by the way!

@aronerben
Copy link
Contributor

Thanks for the report! Unfortunately, I was not able to replicate this problem on my machine. Are the two containers running after make db? Could you post the output of docker ps -a?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants