Open examplecode opened 6 years ago
Starting homeland_postgresql ... Starting homeland_postgresql ... done Starting homeland_elasticsearch ... done Starting homeland_postgresql ... Starting homeland_postgresql ... done Starting homeland_elasticsearch ... done rails aborted! PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in initialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:innew' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in connect' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:684:inconnect' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:215:in initialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:40:innew' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:40:in postgresql_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:809:innew_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:in checkout_new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:832:intry_to_checkout_new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:793:in acquire_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:521:incheckout' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:380:in connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1008:inretrieve_connection'
initialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in
connect' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:684:in
initialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:40:in
postgresql_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:809:in
checkout_new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:832:in
acquire_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:521:in
connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1008:in
亲测把版本切换到下面的分支可以正常安装部署
commit 5d9cdb300e99d0374611a370d93a85cbd5ced836 Author: Jason Lee <huacnlee@gmail.com> Date: Mon Apr 9 10:23:20 2018 +0800 Ruby 2.5.1
Starting homeland_postgresql ... Starting homeland_postgresql ... done Starting homeland_elasticsearch ... done Starting homeland_postgresql ... Starting homeland_postgresql ... done Starting homeland_elasticsearch ... done rails aborted! PG::ConnectionBad: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"? /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in
initialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:in
new' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/pg-1.0.0/lib/pg.rb:56:inconnect' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:684:in
connect' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:215:ininitialize' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:40:in
new' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:40:inpostgresql_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:809:in
new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:853:incheckout_new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:832:in
try_to_checkout_new_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:793:inacquire_connection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:521:in
checkout' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:380:inconnection' /home/app/homeland/vendor/bundle/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:1008:in
retrieve_connection'