简体   繁体   English

耙终止:PG :: ConnectionBad:fe_sendauth:未提供密码

[英]rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied

I'm on Cloud9 Ubuntu Template and I installed postgres. 我在Cloud9 Ubuntu模板上,并安装了postgres。 I'm getting an error when I try to do a "rake db:migrate". 尝试执行“ rake db:migrate”时出现错误。

rake aborted:PG::ConnectionBad: fe_sendauth: no password supplied

Related settings in my database.yml file 我的database.yml文件中的相关设置

default: &default
      adapter: postgresql
      encoding: unicode
      pool: 5
      username: <%= ENV['USERNAME'] %>
      password: <%= ENV['PASSWORD'] %>
      host:     <%= ENV['IP'] %>

development:
  <<: *default
  database: app_development

It seems like Cloud9 issue. 似乎是Cloud9问题。 I refer https://community.c9.io/t/fe-sendauth-no-password-supplied-error-after-setting-up-postgrsql-on-rails/2206/2 我指的是https://community.c9.io/t/fe-sendauth-no-password-supplied-error-after-setting-up-postgrsql-on-rails/2206/2

Run below commands on your c9 terminal. 在c9终端上运行以下命令。

$ source ~/.profile
$ rake db:create
$ rake db:migrate

It works for me. 这个对我有用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 耙子流产了! PG :: ConnectionBad:fe_sendauth:没有提供密码 - rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied Rails 每当 rake 中止时! PG::ConnectionBad: fe_sendauth: 没有提供密码 - Rails Whenever rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied PG :: ConnectionBad fe_sendauth:未提供密码 - PG::ConnectionBad fe_sendauth: no password supplied PG::ConnectionBad: fe_sendauth: 未提供密码 - PG::ConnectionBad: fe_sendauth: no password supplied 耙子流产了! PG :: ConnectionBad:fe_sendauth:没有提供密码任务:TOP =&gt; db:migrate(通过使用--trace运行任务来查看完整跟踪) - rake aborted! PG::ConnectionBad: fe_sendauth: no password supplied Tasks: TOP => db:migrate (See full trace by running task with --trace) 修复方法:PG :: ConnectionBad:fe_sendauth:未提供密码 - how to fix: PG::ConnectionBad: fe_sendauth: no password supplied Rails / PostgreSQL问题:PG :: ConnectionBad:fe_sendauth:未提供密码 - Rails/PostgreSQL problem: PG::ConnectionBad: fe_sendauth: no password supplied &#39;initialize&#39;:fe_sendauth:不提供密码(PG :: ConnectionBad) - `initialize': fe_sendauth: no password supplied (PG::ConnectionBad) capistrano,rails,PG :: ConnectionBad:fe_sendauth:没有提供密码 - capistrano, rails, PG::ConnectionBad: fe_sendauth: no password supplied Rails 控制台导致 PG::ConnectionBad: fe_sendauth: 没有提供密码 - Rails Console results in PG::ConnectionBad: fe_sendauth: no password supplied
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM