Heroku Postgres:“psql:致命:主机没有 pg_hba.conf 条目" [英] Heroku Postgres: "psql: FATAL: no pg_hba.conf entry for host"

查看:28
本文介绍了Heroku Postgres:“psql:致命:主机没有 pg_hba.conf 条目"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有许多 Heroku CLI Postgres 命令都返回相同的错误.例如:

There are a number of Heroku CLI Postgres commands that all return the same error. For example:

$ heroku pg:bloat
psql: FATAL:  no pg_hba.conf entry for host "...", user "...", database "...", SSL off

这些命令中至少有一个在过去有效,但现在无效.

At least one of these commands has worked in the past, but does not now.

否则数据库似乎工作正常.我可以通过我的应用程序的接口访问它.

The database appears to be working fine otherwise. I can access it via my application's interfaces.

我没有看到在 Heroku Postgres 仪表板中切换 SSL 的方法.什么可能导致这种情况,我该如何解决?

I do not see a way to toggle SSL in the Heroku Postgres dashboard. What could be causing this and how could I fix it?

推荐答案

原来像 heroku pg:bloat 这样的命令使用本地安装的 Postgres 和 psql 下引擎盖.我使用 ssl 支持 (--with-openssl) 重新编译了我的 Postgres 安装,一切正常.

It turns out that commands like heroku pg:bloat use the local installation of Postgres and psql under the hood. I recompiled my Postgres installation with ssl support (--with-openssl) and everything worked.

这篇关于Heroku Postgres:“psql:致命:主机没有 pg_hba.conf 条目"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆