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

tcp 127.0.0.1:5432: connect: connection refused #4

Open
rajdeep617 opened this issue Sep 25, 2019 · 0 comments
Open

tcp 127.0.0.1:5432: connect: connection refused #4

rajdeep617 opened this issue Sep 25, 2019 · 0 comments

Comments

@rajdeep617
Copy link

I am not able to start hospital and surgeon container when I tried to run hospital with following commands got connection refus error on port 5432, Looks like it is expecting a Postgres database:

docker run -itd -p 8080:8080 --name hospital hospital ./hospital runserver
tcp 127.0.0.1:5432: connect: connection refused

When I tried running surgeon got the bellow error:

./hospital startsurgeon
Started Surgeon...
panic: strconv.Atoi: parsing "": invalid syntax

goroutine 1 [running]:
hospital/surgeon.LongPolling()
/hospital/surgeon/surgeon.go:25 +0x3ff
main.commands.func4(0xc0000e09a0)
/hospital/hospital.go:59 +0x7b
github.com/urfave/cli.HandleAction(0x7ff5e0, 0x8b9c60, 0xc0000e09a0, 0xc00005e300, 0x0)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:492 +0x7c
github.com/urfave/cli.Command.Run(0x89ec37, 0xc, 0x0, 0x0, 0xc000050ff0, 0x1, 0x1, 0x8a5998, 0x1b, 0x0, ...)
/go/pkg/mod/github.com/urfave/[email protected]/command.go:210 +0x996
github.com/urfave/cli.(*App).Run(0xc00008a820, 0xc00000e080, 0x2, 0x2, 0x0, 0x0)
/go/pkg/mod/github.com/urfave/[email protected]/app.go:255 +0x6af
main.main()
/hospital/hospital.go:68 +0xfc

I would suggest adding a guide about how to run server and surgeon.

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

1 participant