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

Creating an Engine instance with the Logger and Recovery middleware already attached #1330

Closed
cxk280 opened this issue Apr 23, 2018 · 3 comments
Labels

Comments

@cxk280
Copy link

cxk280 commented Apr 23, 2018

I'm trying to start a Golang/Gin project I wrote a while back on the computer I just bought, and I'm getting the following error:

[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

dial tcp [::1]:5432: connect: connection refused
exit status 1

I've never seen this before. My project was built using this as boilerplate and worked until now.

What does this error even mean? How do I fix it?

@thinkerou
Copy link
Member

Please see here #1115

@appleboy
Copy link
Member

5432? can't connect to postgres. see https://github.com/Massad/gin-boilerplate#installation

@cxk280
Copy link
Author

cxk280 commented Apr 24, 2018

@appleboy: Yep, that was it. I forgot to import the database in my new installation. Thanks!

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

No branches or pull requests

3 participants