Unable to connect to PostgreSQL
Hey, I'm not able to get GitLab to connect to or see my local Postgres db (I can connect to it with psql). I'm on macOS Mojave.
I've followed all the steps for installing and running it exactly, and even tried the things in the troubleshooting guide for Postgres, and I did find some PG_ env vars but I deleted all of them with no luck. I get an error saying the database doesn't exist. I followed the instructions exactly and I'm running postgres using brew services start postgresql@9.6.
Here is my error log:
❯ gdk run
(in /Users/obahareth/Development/gitlab/gitlab-ce)
` `
:s: :s:
`oso` `oso.
+sss+ +sss+
:sssss: -sssss:
`ossssso` `ossssso`
+sssssss+ +sssssss+
-ooooooooo-++++++++++++++-ooooooooo-
`:/+++++++++osssssssssssso+++++++++/:`
-///+++++++++ssssssssssss+++++++++///-
.//////+++++++osssssssssso+++++++//////.
:///////+++++++osssssssso+++++++///////:
.:///////++++++ssssssss++++++///////:.`
`-://///+++++osssssso+++++/////:-`
`-:////++++osssso++++////:-`
.-:///++osssso++///:-.
`.://++osso++//:.`
`-:/+oo+/:-`
`-++-`
Starting GitLab in /Users/obahareth/Development/gitlab/gitlab-ce on http://localhost:3000/
18:39:04 redis.1 | started with pid 1007
18:39:04 minio.1 | started with pid 1008
18:39:04 postgresql.1 | started with pid 1009
18:39:04 gitaly.1 | started with pid 1010
18:39:04 gitlab-workhorse.1 | started with pid 1011
18:39:04 rails-background-jobs.1 | started with pid 1012
18:39:04 webpack.1 | started with pid 1015
18:39:04 rails-web.1 | started with pid 1017
18:39:04 gitlab-pages.1 | started with pid 1023
18:39:04 registry.1 | started with pid 1025
18:39:04 minio.1 | Object Storage disabled.
18:39:04 registry.1 | Docker registry disabled.
18:39:04 gitlab-pages.1 | time="2018-11-30T18:39:04+03:00" level=info msg="GitLab Pages Daemon" revision=HEAD version=dev
18:39:04 gitlab-pages.1 | time="2018-11-30T18:39:04+03:00" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
18:39:04 gitlab-pages.1 | time="2018-11-30T18:39:04+03:00" level=info msg="Updated all domains" count(domains)=0 duration=0.001243713 hash="<empty>"
18:39:04 gitaly.1 | time="2018-11-30T18:39:04+03:00" level=info msg="Starting Gitaly" version="Gitaly, version 1.2.0-10-gef04aaf5, built 20181129.103130"
18:39:04 gitaly.1 | time="2018-11-30T18:39:04+03:00" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/usr/local/bin/git
18:39:04 gitlab-workhorse.1 | time="2018-11-30T18:39:04+03:00" level=info msg=Starting version="gitlab-workhorse (unknown version)"
18:39:04 gitaly.1 | time="2018-11-30T18:39:04+03:00" level=warning msg="git path not configured. Using default path resolution" resolvedPath=/usr/local/bin/git
18:39:04 gitlab-workhorse.1 | time="2018-11-30T18:39:04+03:00" level=info msg="keywatcher: starting process loop"
18:39:04 gitlab-workhorse.1 | time="2018-11-30T18:39:04+03:00" level=info msg="redis: dialing" address=/Users/obahareth/Development/gitlab/gitlab-ce/redis/redis.socket network=unix
18:39:04 gitlab-workhorse.1 | time="2018-11-30T18:39:04+03:00" level=error msg="unknown error" error="keywatcher: dial unix /Users/obahareth/Development/gitlab/gitlab-ce/redis/redis.socket: connect: no such file or directory"
18:39:04 redis.1 | 1007:C 30 Nov 18:39:04.500 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
18:39:04 redis.1 | 1007:C 30 Nov 18:39:04.501 # Redis version=4.0.8, bits=64, commit=00000000, modified=0, pid=1007, just started
18:39:04 redis.1 | 1007:C 30 Nov 18:39:04.501 # Configuration loaded
18:39:04 redis.1 | 1007:M 30 Nov 18:39:04.504 * Running mode=standalone, port=0.
18:39:04 redis.1 | 1007:M 30 Nov 18:39:04.504 # Server initialized
18:39:04 redis.1 | 1007:M 30 Nov 18:39:04.504 * The server is now ready to accept connections at /Users/obahareth/Development/gitlab/gitlab-ce/redis/redis.socket
18:39:04 gitlab-workhorse.1 | time="2018-11-30T18:39:04+03:00" level=info msg="redis: dialing" address=/Users/obahareth/Development/gitlab/gitlab-ce/redis/redis.socket network=unix
18:39:04 postgresql.1 | LOG: database system was shut down at 2018-11-30 18:19:33 +03
18:39:04 postgresql.1 | LOG: MultiXact member wraparound protections are now enabled
18:39:04 postgresql.1 | LOG: database system is ready to accept connections
18:39:04 postgresql.1 | LOG: autovacuum launcher started
18:39:04 webpack.1 | yarn run v1.12.1
18:39:04 webpack.1 | $ nodemon -w 'config/webpack.config.js' --exec 'webpack-dev-server --config config/webpack.config.js'
18:39:05 gitaly.1 | time="2018-11-30T18:39:05+03:00" level=warning msg=spawned supervisor.args="[bundle exec bin/ruby-cd /Users/obahareth/Development/gitlab/gitlab-ce /Users/obahareth/Development/gitlab/gitlab-ce/gitaly/ruby/bin/gitaly-ruby 1010 /var/folders/1h/ks3h_p7d7jn9trlbbxr67ynm0000gn/T/gitaly-ruby769823826/socket.0]" supervisor.name=gitaly-ruby.0 supervisor.pid=1155
18:39:05 gitaly.1 | time="2018-11-30T18:39:05+03:00" level=warning msg=spawned supervisor.args="[bundle exec bin/ruby-cd /Users/obahareth/Development/gitlab/gitlab-ce /Users/obahareth/Development/gitlab/gitlab-ce/gitaly/ruby/bin/gitaly-ruby 1010 /var/folders/1h/ks3h_p7d7jn9trlbbxr67ynm0000gn/T/gitaly-ruby769823826/socket.1]" supervisor.name=gitaly-ruby.1 supervisor.pid=1156
18:39:05 rails-web.1 | I, [2018-11-30T18:39:05.527171 #1017] INFO -- : Refreshing Gem list
18:39:05 webpack.1 | [nodemon] 1.18.4
18:39:05 webpack.1 | [nodemon] to restart at any time, enter `rs`
18:39:05 webpack.1 | [nodemon] watching: config/webpack.config.js
18:39:05 webpack.1 | [nodemon] starting `webpack-dev-server --config config/webpack.config.js`
18:39:07 webpack.1 | ℹ 「wds」: Project is running at http://localhost:3808/
18:39:07 webpack.1 | ℹ 「wds」: webpack output is served from /assets/webpack/
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 rails-background-jobs.1 | 2018-11-30T15:39:12.918Z 1012 TID-ov72fqwg4 INFO: Booting Sidekiq 5.2.3 with redis options {:path=>"/Users/obahareth/Development/gitlab/gitlab-ce/redis/redis.socket", :namespace=>"resque:gitlab", :id=>"Sidekiq-server-PID-1012", :url=>nil}
18:39:12 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 rails-background-jobs.1 | FATAL: database "gitlabhq_development" does not exist
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:677:in `rescue in connect'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:672:in `connect'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:729:in `new_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:773:in `checkout_new_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:752:in `try_to_checkout_new_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:713:in `acquire_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:490:in `checkout'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:364:in `connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:883:in `retrieve_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_handling.rb:128:in `retrieve_connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_handling.rb:91:in `connection'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/model_schema.rb:462:in `load_schema!'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/attributes.rb:233:in `load_schema!'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/attribute_decorators.rb:28:in `load_schema!'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/model_schema.rb:455:in `block in load_schema'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/monitor.rb:226:in `mon_synchronize'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/model_schema.rb:452:in `load_schema'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/model_schema.rb:343:in `columns_hash'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/inheritance.rb:77:in `descends_from_active_record?'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/inheritance.rb:83:in `finder_needs_type_condition?'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/core.rb:292:in `relation'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/scoping/named.rb:42:in `default_scoped'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/scoping/named.rb:28:in `all'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/querying.rb:10:in `where'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-active_record-0.13.0/lib/flipper/adapters/active_record.rb:77:in `get'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-active_support_cache_store-0.13.0/lib/flipper/adapters/active_support_cache_store.rb:64:in `block in get'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:300:in `block in fetch'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:593:in `block in save_block_result_to_cache'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:562:in `block in instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/notifications.rb:166:in `instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:562:in `instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:592:in `save_block_result_to_cache'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/cache.rb:300:in `fetch'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-active_support_cache_store-0.13.0/lib/flipper/adapters/active_support_cache_store.rb:63:in `get'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/adapters/memoizable.rb:71:in `block in get'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/adapters/memoizable.rb:71:in `fetch'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/adapters/memoizable.rb:71:in `get'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/feature.rb:230:in `gate_values'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/feature.rb:99:in `block in enabled?'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/feature.rb:370:in `block in instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/instrumenters/noop.rb:5:in `instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/feature.rb:367:in `instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/flipper-0.13.0/lib/flipper/feature.rb:98:in `enabled?'
18:39:12 rails-background-jobs.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/lib/feature.rb:52:in `enabled?'
18:39:12 rails-background-jobs.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/config/initializers/sidekiq.rb:42:in `block in <main>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq.rb:73:in `configure_server'
18:39:12 rails-background-jobs.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/config/initializers/sidekiq.rb:16:in `<main>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:50:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:287:in `block in load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:259:in `load_dependency'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/dependencies.rb:287:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/engine.rb:648:in `block in load_config_initializer'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activesupport-5.0.7/lib/active_support/notifications.rb:166:in `instrument'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/engine.rb:647:in `load_config_initializer'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/engine.rb:611:in `each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/engine.rb:611:in `block in <class:Engine>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:30:in `instance_exec'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:30:in `run'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:55:in `block in run_initializers'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:228:in `block in tsort_each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:422:in `block (2 levels) in each_strongly_connected_component_from'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:431:in `each_strongly_connected_component_from'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:421:in `block in each_strongly_connected_component_from'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:44:in `each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:44:in `tsort_each_child'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `call'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:415:in `each_strongly_connected_component_from'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:349:in `block in each_strongly_connected_component'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `call'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:347:in `each_strongly_connected_component'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:226:in `tsort_each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/2.5.0/tsort.rb:205:in `tsort_each'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/initializable.rb:54:in `run_initializers'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/railties-5.0.7/lib/rails/application.rb:352:in `initialize!'
18:39:12 rails-background-jobs.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/config/environment.rb:11:in `<top (required)>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/cli.rb:278:in `require'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/cli.rb:278:in `boot_system'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/lib/sidekiq/cli.rb:53:in `run'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/sidekiq-5.2.3/bin/sidekiq:12:in `<top (required)>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/sidekiq:23:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/sidekiq:23:in `<top (required)>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `load'
18:39:12 rails-background-jobs.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `<main>'
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 postgresql.1 | FATAL: database "gitlabhq_development" does not exist
18:39:13 rails-background-jobs.1 | exited with code 1
18:39:13 system | sending SIGTERM to all processes
18:39:13 redis.1 | 1007:signal-handler (1543592353) Received SIGTERM scheduling shutdown...
18:39:13 postgresql.1 | LOG: received fast shutdown request
18:39:13 postgresql.1 | LOG: aborting any active transactions
18:39:13 postgresql.1 | LOG: autovacuum launcher shutting down
18:39:13 postgresql.1 | LOG: shutting down
18:39:13 postgresql.1 | LOG: database system is shut down
18:39:13 gitaly.1 | time="2018-11-30T18:39:13+03:00" level=warning msg=exited error="signal: killed" supervisor.args="[bundle exec bin/ruby-cd /Users/obahareth/Development/gitlab/gitlab-ce /Users/obahareth/Development/gitlab/gitlab-ce/gitaly/ruby/bin/gitaly-ruby 1010 /var/folders/1h/ks3h_p7d7jn9trlbbxr67ynm0000gn/T/gitaly-ruby769823826/socket.0]" supervisor.name=gitaly-ruby.0
18:39:13 postgresql.1 | Sending INT to 1081
18:39:13 redis.1 | 1007:M 30 Nov 18:39:13.456 # User requested shutdown...
18:39:13 redis.1 | 1007:M 30 Nov 18:39:13.456 * Removing the unix socket file.
18:39:13 redis.1 | 1007:M 30 Nov 18:39:13.456 # Redis is now ready to exit, bye bye...
18:39:13 gitaly.1 | time="2018-11-30T18:39:13+03:00" level=warning msg=exited error="signal: killed" supervisor.args="[bundle exec bin/ruby-cd /Users/obahareth/Development/gitlab/gitlab-ce /Users/obahareth/Development/gitlab/gitlab-ce/gitaly/ruby/bin/gitaly-ruby 1010 /var/folders/1h/ks3h_p7d7jn9trlbbxr67ynm0000gn/T/gitaly-ruby769823826/socket.1]" supervisor.name=gitaly-ruby.1
18:39:13 gitaly.1 | time="2018-11-30T18:39:13+03:00" level=fatal msg="shutting down" error="received signal \"terminated\""
18:39:13 registry.1 | terminated by SIGTERM
18:39:13 gitlab-pages.1 | terminated by SIGTERM
18:39:13 webpack.1 | exited with code 1
18:39:13 gitlab-workhorse.1 | terminated by SIGTERM
18:39:13 gitaly.1 | exited with code 1
18:39:14 postgresql.1 | exited with code 0
18:39:14 minio.1 | terminated by SIGTERM
18:39:14 redis.1 | exited with code 0
18:39:16 rails-web.1 | I, [2018-11-30T18:39:16.624180 #1017] INFO -- : unlinking existing socket=/Users/obahareth/Development/gitlab/gitlab-ce/gitlab.socket
18:39:16 rails-web.1 | I, [2018-11-30T18:39:16.625545 #1017] INFO -- : listening on addr=/Users/obahareth/Development/gitlab/gitlab-ce/gitlab.socket fd=11
18:39:16 rails-web.1 | E, [2018-11-30T18:39:16.628624 #1017] ERROR -- : could not connect to server: No such file or directory
18:39:16 rails-web.1 | Is the server running locally and accepting
18:39:16 rails-web.1 | connections on Unix domain socket "/Users/obahareth/Development/gitlab/gitlab-ce/postgresql/.s.PGSQL.5432"?
18:39:16 rails-web.1 | (PG::ConnectionBad)
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/pg-0.18.4/lib/pg.rb:45:in `initialize'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/pg-0.18.4/lib/pg.rb:45:in `new'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/pg-0.18.4/lib/pg.rb:45:in `connect'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:673:in `connect'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:217:in `initialize'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `new'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/postgresql_adapter.rb:37:in `postgresql_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:729:in `new_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:773:in `checkout_new_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:752:in `try_to_checkout_new_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:713:in `acquire_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:490:in `checkout'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:364:in `connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_adapters/abstract/connection_pool.rb:883:in `retrieve_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_handling.rb:128:in `retrieve_connection'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/activerecord-5.0.7/lib/active_record/connection_handling.rb:91:in `connection'
18:39:16 rails-web.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/config/initializers/active_record_lifecycle.rb:19:in `block in <main>'
18:39:16 rails-web.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/lib/gitlab/cluster/lifecycle_events.rb:58:in `block in do_before_fork'
18:39:16 rails-web.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/lib/gitlab/cluster/lifecycle_events.rb:57:in `each'
18:39:16 rails-web.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/lib/gitlab/cluster/lifecycle_events.rb:57:in `do_before_fork'
18:39:16 rails-web.1 | /Users/obahareth/Development/gitlab/gitlab-ce/gitlab/config/unicorn.rb:26:in `block in reload'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:502:in `spawn_missing_workers'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:132:in `start'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/unicorn-5.1.0/bin/unicorn_rails:209:in `<top (required)>'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/unicorn_rails:23:in `load'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/unicorn_rails:23:in `<top (required)>'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `load'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli/exec.rb:28:in `run'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:463:in `exec'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:27:in `dispatch'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/cli.rb:18:in `start'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:30:in `block in <top (required)>'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/lib/ruby/gems/2.5.0/gems/bundler-1.17.1/exe/bundle:22:in `<top (required)>'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `load'
18:39:16 rails-web.1 | /Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `<main>'
18:39:16 rails-web.1 | exited with code 1
If I cd into the gitlab dir and try to run bundle rake db:create I get this error:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/Users/obahareth/Development/gitlab/gitlab-ce/postgresql/.s.PGSQL.5432"?
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"gitlabhq_development", "host"=>"/Users/obahareth/Development/gitlab/gitlab-ce/postgresql", "port"=>5432, "pool"=>6}
rake 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 "/Users/obahareth/Development/gitlab/gitlab-ce/postgresql/.s.PGSQL.5432"?
/Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `load'
/Users/obahareth/.asdf/installs/ruby/2.5.3/bin/bundle:23:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)