gitlab reconfigure does not work in "stopped" state
instructs:
# Prevent users from writing to the repositories while you move them.
sudo gitlab-ctl stop
# Note there is _no_ slash behind 'repositories', but there _is_ a
# slash behind 'git-data'.
sudo rsync -av /var/opt/gitlab/git-data/repositories /mnt/nas/git-data/
# Fix permissions if necessary
sudo gitlab-ctl reconfigure
but that results somewhat errors:
* execute[create gitlab database user] action run
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
[execute] psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
================================================================================
Error executing action `run` on resource 'execute[create gitlab database user]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '2'
---- Begin output of /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" ----
STDOUT:
STDERR: psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
---- End output of /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" ----
Ran /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" returned 2
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb
152: execute "create #{gitlab_sql_user} database user" do
153: command "/opt/gitlab/bin/gitlab-psql -d template1 -c \"CREATE USER #{gitlab_sql_user}\""
154: user postgresql_user
155: # Added retries to give the service time to start on slower systems
156: retries 20
157: not_if { !pg_helper.is_running? || pg_helper.user_exists?(gitlab_sql_user) }
158: end
159:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb:152:in `from_file'
execute("create gitlab database user") do
action [:run]
retries 20
retry_delay 2
default_guard_interpreter :execute
command "/opt/gitlab/bin/gitlab-psql -d template1 -c \"CREATE USER gitlab\""
backup 5
returns 0
user "gitlab-psql"
declared_type :execute
cookbook_name "gitlab"
recipe_name "postgresql"
not_if { #code block }
end
Platform:
---------
x86_64-linux
Recipe: gitlab::gitlab-rails
* execute[clear the gitlab-rails cache] action run
[execute] rake aborted!
Errno::ENOENT: No such file or directory - connect(2) for /var/opt/gitlab/redis/redis.socket
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:209:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:323:in `establish_connection'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:113:in `call'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2408:in `block in _scan'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2407:in `_scan'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2428:in `scan'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:10:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:9:in `loop'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:9:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis.rb:36:in `block in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:in `block (2 levels) in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `handle_interrupt'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `block in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `handle_interrupt'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `with'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis.rb:36:in `with'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:7:in `block (2 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
Tasks: TOP => cache:clear
(See full trace by running task with --trace)
================================================================================
Error executing action `run` on resource 'execute[clear the gitlab-rails cache]'
================================================================================
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/bin/gitlab-rake cache:clear ----
STDOUT:
STDERR: rake aborted!
Errno::ENOENT: No such file or directory - connect(2) for /var/opt/gitlab/redis/redis.socket
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:180:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/connection/ruby.rb:209:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:323:in `establish_connection'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:94:in `block in connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:280:in `with_reconnect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:93:in `connect'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:351:in `ensure_connected'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:208:in `block in process'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:293:in `logging'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:207:in `process'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis/client.rb:113:in `call'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2408:in `block in _scan'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:57:in `block in synchronize'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:57:in `synchronize'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2407:in `_scan'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/redis-3.2.2/lib/redis.rb:2428:in `scan'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:10:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:9:in `loop'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:9:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis.rb:36:in `block in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:in `block (2 levels) in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `handle_interrupt'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `block in with'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `handle_interrupt'
/opt/gitlab/embedded/service/gem/ruby/2.3.0/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `with'
/opt/gitlab/embedded/service/gitlab-rails/lib/gitlab/redis.rb:36:in `with'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/cache.rake:7:in `block (2 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:22:in `load'
/opt/gitlab/embedded/bin/bundle:22:in `<main>'
Tasks: TOP => cache:clear
(See full trace by running task with --trace)
---- End output of /opt/gitlab/bin/gitlab-rake cache:clear ----
Ran /opt/gitlab/bin/gitlab-rake cache:clear returned 1
Resource Declaration:
---------------------
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb
325: execute "clear the gitlab-rails cache" do
326: command "/opt/gitlab/bin/gitlab-rake cache:clear"
327: action :nothing
328: end
329:
Compiled Resource:
------------------
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/gitlab-rails.rb:325:in `from_file'
execute("clear the gitlab-rails cache") do
action [:nothing]
retries 0
retry_delay 2
default_guard_interpreter :execute
command "/opt/gitlab/bin/gitlab-rake cache:clear"
backup 5
returns 0
declared_type :execute
cookbook_name "gitlab"
recipe_name "gitlab-rails"
end
Platform:
---------
x86_64-linux
Recipe: gitlab::unicorn
* service[unicorn] action restart
- restart service service[unicorn]
Recipe: gitlab::sidekiq
* service[sidekiq] action restart
- restart service service[sidekiq]
Running handlers:
Running handlers complete
Chef Client failed. 5 resources updated in 01 minutes 04 seconds
#
i think documentation should be updated to tell "it is ok to get few errors"?