PG::ConnectionBad: FATAL: 生产服务器上用户“postgres”的密码验证失败

哈迪克·普罗希特

我正在使用 capistrano gem 进行部署,当我部署应用程序时,我的迁移运行成功。但是当我尝试运行种子文件时,它给了我错误。以下是我的 databse.yml 文件:

default: &default
  adapter: postgresql
  encoding: unicode
  pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
  timeout: 5000
  username: postgres
  password: 12345678
  host: localhost

development:
  <<: *default
  database: db_development

test:
  <<: *default
  database: db_test

production:
  <<: *default
  database: db_production
  username: postgres
  password: 12345678
哈迪克·普罗希特

我有 LINODE 服务器并且正面临这个问题。

我注意到当我rails c使用 ssh 登录到服务器后在当前目录中运行时,它会加载开发环境,这就是为什么它给我身份验证错误。

我们必须运行bundle exec rails console production它才能加载生产环境并且它正在工作

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

PG :: ConnectionBad:fe_sendauth:未提供密码

Heroku + Rails + PG:ActiveRecord :: StatementInvalid(PG :: ConnectionBad:PQconsumeInput()SSL连接已意外关闭

PG :: ConnectionBad:严重:用户“ alphauser”的密码身份验证失败

Heroku:PG :: ConnectionBad:无法连接到服务器:连接被拒绝

PG :: ConnectionBad:运行导出DATABASE_URL = postgres:// $(whoami)后无法翻译主机名错误

无法连接到服务器:没有这样的文件或目录(PG :: ConnectionBad)

具有PG :: ConnectionBad“ /var/run/postgresql/.s.PGSQL.5432”的Rails,Postgres和Docker?

Rails无法将主机名“ postgres”转换为地址:名称或服务未知(PG :: ConnectionBad)

保留作业时出错:PG :: ConnectionBad:PQconsumeInput()服务器意外关闭了连接

Rails Capistrano部署PG :: ConnectionBad:严重:密码验证失败

AWS RDS:FATAL:用户“ postgres”的密码身份验证失败

尝试从活动的Rails服务器执行PG转储并获得密码身份验证失败

PG :: ConnectionBad严重:角色“ Myname”不存在

PG :: ConnectionBad:无法连接到服务器:连接被拒绝

PG :: ConnectionBad fe_sendauth:未提供密码

PostgreSQL数据库迁移错误:PG :: ConnectionBad:fe_sendauth:未提供密码

耙子流产了!PG :: ConnectionBad:fe_sendauth:未提供密码sinatra

capistrano,rails,PG :: ConnectionBad:fe_sendauth:未提供密码

PG :: ConnectionBad错误

生产中的 Rails 5:PG::ConnectionBad:致命:用户“postgres”与 Docker 的密码身份验证失败

PG::ConnectionBad:致命:用户“rails_dev”的身份验证失败

Rails 在 Mac OS X / PG::ConnectionBad 上找不到我的 Postgres 服务器:无法连接到服务器

Rails 每当 rake 中止时!PG::ConnectionBad: fe_sendauth: 没有提供密码

Heroku rake 中止(PG::ConnectionBad:无法连接到服务器:没有这样的文件或目录)

Heroku PG::ConnectionBad: FATAL: 不允许角色“xxxxxxxxxxx”登录

耙子中止!PG::ConnectionBad: fe_sendauth: 没有提供密码

fe_sendauth:未提供密码 (PG::ConnectionBad) Docker 容器

Rails Postgres Github 操作错误:PG::ConnectionBad:fe_sendauth:未提供密码

耙子中止!PG::ConnectionBad: 无法连接到服务器:连接被拒绝