Unable to configure GitLab on Ubuntu 18.10
Starting Chef Client, version 14.13.11 resolving cookbooks for run list: ["gitlab"] Synchronizing Cookbooks:
- gitlab (0.0.1)
- postgresql (0.1.0)
- package (0.1.0)
- redis (0.1.0)
- monitoring (0.1.0)
- registry (0.1.0)
- mattermost (0.1.0)
- consul (0.1.0)
- gitaly (0.1.0)
- letsencrypt (0.1.0)
- nginx (0.1.0)
- runit (4.3.0)
- acme (4.0.0)
- crond (0.1.0) Installing Cookbook Gems: Compiling Cookbooks... Recipe: gitlab::default
-
directory[/etc/gitlab] action create (up to date) Converging 271 resources
-
directory[/etc/gitlab] action create (up to date)
-
directory[Create /var/opt/gitlab] action create (up to date)
-
directory[/opt/gitlab/embedded/etc] action create (up to date)
-
template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date) Recipe: gitlab::web-server
-
account[Webserver user and group] action create
- group[Webserver user and group] action create (up to date)
- linux_user[Webserver user and group] action create (up to date) (up to date) Recipe: gitlab::users
-
directory[/var/opt/gitlab] action create (up to date)
-
account[GitLab user and group] action create
- group[GitLab user and group] action create (up to date)
- linux_user[GitLab user and group] action create (up to date) (up to date)
-
template[/var/opt/gitlab/.gitconfig] action create (up to date)
-
directory[/var/opt/gitlab/.bundle] action create (up to date) Recipe: gitlab::gitlab-shell
-
storage_directory[/var/opt/gitlab/.ssh] action create
- ruby_block[directory resource: /var/opt/gitlab/.ssh] action run (skipped due to not_if) (up to date)
-
directory[/var/log/gitlab/gitlab-shell/] action create (up to date)
-
directory[/var/opt/gitlab/gitlab-shell] action create (up to date)
-
templatesymlink[Create a config.yml and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-shell/config.yml] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-shell/config.yml to /var/opt/gitlab/gitlab-shell/config.yml] action create (up to date) (up to date)
-
link[/opt/gitlab/embedded/service/gitlab-shell/.gitlab_shell_secret] action create (up to date)
-
execute[/opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions] action run [32m- execute /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-keys check-permissions
-
bash[Set proper security context on ssh files for selinux] action run (skipped due to only_if) Recipe: gitlab::gitlab-rails
-
storage_directory[/var/opt/gitlab/git-data] action create
- ruby_block[directory resource: /var/opt/gitlab/git-data] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/git-data/repositories] action create
- ruby_block[directory resource: /var/opt/gitlab/git-data/repositories] action run (skipped due to not_if) (up to date)
-
directory[/var/log/gitlab] action create (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/artifacts] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/artifacts] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/external-diffs] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/external-diffs] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/lfs-objects] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/lfs-objects] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/packages] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/packages] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/dependency_proxy] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/uploads] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/uploads] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-ci/builds] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-ci/builds] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/cache] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/cache] action run (skipped due to not_if) (up to date)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/tmp] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/tmp] action run (skipped due to not_if) (up to date)
-
storage_directory[/opt/gitlab/embedded/service/gitlab-rails/public] action create (skipped due to only_if)
-
storage_directory[/var/opt/gitlab/gitlab-rails/shared/pages] action create
- ruby_block[directory resource: /var/opt/gitlab/gitlab-rails/shared/pages] action run (skipped due to not_if) (up to date)
-
directory[create /var/opt/gitlab/gitlab-rails/etc] action create (up to date)
-
directory[create /opt/gitlab/etc/gitlab-rails] action create (up to date)
-
directory[create /var/opt/gitlab/gitlab-rails/working] action create (up to date)
-
directory[create /var/opt/gitlab/gitlab-rails/tmp] action create (up to date)
-
directory[create /var/opt/gitlab/gitlab-rails/upgrade-status] action create (up to date)
-
directory[create /var/log/gitlab/gitlab-rails] action create (up to date)
-
storage_directory[/var/opt/gitlab/backups] action create
- ruby_block[directory resource: /var/opt/gitlab/backups] action run (skipped due to not_if) (up to date)
-
directory[/var/opt/gitlab/gitlab-rails] action create (up to date)
-
directory[/var/opt/gitlab/gitlab-ci] action create (up to date)
-
file[/var/opt/gitlab/gitlab-rails/etc/gitlab-registry.key] action create (skipped due to only_if)
-
template[/opt/gitlab/etc/gitlab-rails/gitlab-rails-rc] action create (up to date)
-
file[/opt/gitlab/embedded/service/gitlab-rails/.secret] action delete (up to date)
-
file[/var/opt/gitlab/gitlab-rails/etc/secret] action delete (up to date)
-
templatesymlink[Create a database.yml and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/config/database.yml to /var/opt/gitlab/gitlab-rails/etc/database.yml] action create (up to date) (up to date)
-
templatesymlink[Create a secrets.yml and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/config/secrets.yml to /var/opt/gitlab/gitlab-rails/etc/secrets.yml] action create (up to date) (up to date)
-
templatesymlink[Create a resque.yml and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/config/resque.yml to /var/opt/gitlab/gitlab-rails/etc/resque.yml] action create (up to date) (up to date)
-
templatesymlink[Create a redis.cache.yml and create a symlink to Rails root] action create (skipped due to not_if)
-
templatesymlink[Create a redis.queues.yml and create a symlink to Rails root] action create (skipped due to not_if)
-
templatesymlink[Create a redis.shared_state.yml and create a symlink to Rails root] action create (skipped due to not_if)
-
templatesymlink[Create a smtp_settings.rb and create a symlink to Rails root] action delete
- file[/var/opt/gitlab/gitlab-rails/etc/smtp_settings.rb] action delete (up to date)
- link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/smtp_settings.rb] action delete (up to date) (up to date)
-
templatesymlink[Create a gitlab.yml and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/config/gitlab.yml to /var/opt/gitlab/gitlab-rails/etc/gitlab.yml] action create (up to date) (up to date)
-
templatesymlink[Create a rack_attack.rb and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/config/initializers/rack_attack.rb to /var/opt/gitlab/gitlab-rails/etc/rack_attack.rb] action create (up to date) (up to date)
-
templatesymlink[Create a gitlab_workhorse_secret and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_workhorse_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_workhorse_secret] action create (up to date) (up to date)
-
templatesymlink[Create a gitlab_shell_secret and create a symlink to Rails root] action create
- template[/var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date)
- link[Link /opt/gitlab/embedded/service/gitlab-rails/.gitlab_shell_secret to /var/opt/gitlab/gitlab-rails/etc/gitlab_shell_secret] action create (up to date) (up to date)
-
templatesymlink[Create a gitlab_pages_secret and create a symlink to Rails root] action create (skipped due to only_if)
-
link[/opt/gitlab/embedded/service/gitlab-rails/config/initializers/relative_url.rb] action delete (up to date)
-
file[/var/opt/gitlab/gitlab-rails/etc/relative_url.rb] action delete (up to date)
-
env_dir[/opt/gitlab/etc/gitlab-rails/env] action create
- directory[/opt/gitlab/etc/gitlab-rails/env] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/HOME] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/RAILS_ENV] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/LD_PRELOAD] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/SIDEKIQ_MEMORY_KILLER_MAX_RSS] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/BUNDLE_GEMFILE] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/PATH] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/ICU_DATA] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/PYTHONPATH] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/EXECJS_RUNTIME] action create (up to date)
- file[/opt/gitlab/etc/gitlab-rails/env/TZ] action create (up to date) (up to date)
-
link[/opt/gitlab/embedded/service/gitlab-rails/tmp] action create (up to date)
-
link[/opt/gitlab/embedded/service/gitlab-rails/public/uploads] action create (up to date)
-
link[/opt/gitlab/embedded/service/gitlab-rails/log] action create (up to date)
-
link[/var/log/gitlab/gitlab-rails/sidekiq.log] action create (up to date)
-
file[/opt/gitlab/embedded/service/gitlab-rails/db/schema.rb] action create (up to date)
-
remote_file[/var/opt/gitlab/gitlab-rails/VERSION] action create (up to date)
-
remote_file[/var/opt/gitlab/gitlab-rails/REVISION] action create (up to date)
-
file[/var/opt/gitlab/gitlab-rails/RUBY_VERSION] action create (up to date)
-
execute[clear the gitlab-rails cache] action nothing (skipped due to action :nothing)
-
file[/var/opt/gitlab/gitlab-rails/config.ru] action delete (up to date) Recipe: gitlab::add_trusted_certs
-
directory[/etc/gitlab/trusted-certs] action create (up to date)
-
directory[/opt/gitlab/embedded/ssl/certs] action create (up to date)
-
file[/opt/gitlab/embedded/ssl/certs/README] action create (up to date)
-
ruby_block[Move existing certs and link to /opt/gitlab/embedded/ssl/certs] action run (skipped due to only_if) Recipe: gitlab::default
-
service[create a temporary unicorn service] action nothing (skipped due to action :nothing)
-
service[create a temporary puma service] action nothing (skipped due to action :nothing)
-
service[create a temporary sidekiq service] action nothing (skipped due to action :nothing)
-
service[create a temporary mailroom service] action nothing (skipped due to action :nothing) Recipe: package::runit_systemd
-
directory[/usr/lib/systemd/system] action create (up to date)
-
cookbook_file[/usr/lib/systemd/system/gitlab-runsvdir.service] action create (up to date)
-
file[/etc/systemd/system/default.target.wants/gitlab-runsvdir.service] action delete (up to date)
-
file[/etc/systemd/system/basic.target.wants/gitlab-runsvdir.service] action delete (up to date)
-
execute[systemctl daemon-reload] action nothing (skipped due to action :nothing)
-
execute[systemctl enable gitlab-runsvdir] action nothing (skipped due to action :nothing)
-
execute[systemctl start gitlab-runsvdir] action nothing (skipped due to action :nothing) Recipe: redis::enable
-
account[user and group for redis] action create
- group[user and group for redis] action create (up to date)
- linux_user[user and group for redis] action create (up to date) (up to date)
-
group[Socket group] action create (up to date)
-
directory[/var/opt/gitlab/redis] action create (up to date)
-
directory[/var/log/gitlab/redis] action create (up to date)
-
template[/var/opt/gitlab/redis/redis.conf] action create (up to date) Recipe:
-
service[redis] action nothing (skipped due to action :nothing) Recipe: redis::enable
-
runit_service[redis] action enable
- ruby_block[restart_service] action nothing (skipped due to action :nothing)
- ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- directory[/opt/gitlab/sv/redis] action create (up to date)
- template[/opt/gitlab/sv/redis/run] action create (up to date)
- directory[/opt/gitlab/sv/redis/log] action create (up to date)
- directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
- template[/opt/gitlab/sv/redis/log/run] action create (up to date)
- template[/var/log/gitlab/redis/config] action create (up to date)
- directory[/opt/gitlab/sv/redis/env] action create (up to date)
- ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
- template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
- template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
- directory[/opt/gitlab/sv/redis/control] action create (up to date)
- link[/opt/gitlab/init/redis] action create (up to date)
- file[/opt/gitlab/sv/redis/down] action delete (up to date)
- directory[/opt/gitlab/service] action create (up to date)
- link[/opt/gitlab/service/redis] action create (up to date)
- ruby_block[wait for redis service socket] action run (skipped due to not_if) (up to date)
-
execute[/opt/gitlab/bin/gitlab-ctl start redis] action run [execute] ok: run: redis: (pid 8248) 869s [32m- execute /opt/gitlab/bin/gitlab-ctl start redis Recipe: gitaly::enable
-
directory[/var/opt/gitlab/gitaly] action create (up to date)
-
directory[/var/log/gitlab/gitaly] action create (up to date)
-
env_dir[/opt/gitlab/etc/gitaly/env] action create
- directory[/opt/gitlab/etc/gitaly/env] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/HOME] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/PATH] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/TZ] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/PYTHONPATH] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/ICU_DATA] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/SSL_CERT_DIR] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/GITALY_PID_FILE] action create (up to date)
- file[/opt/gitlab/etc/gitaly/env/WRAPPER_JSON_LOGGING] action create (up to date) (up to date)
-
template[Create Gitaly config.toml] action create (up to date) Recipe:
-
service[gitaly] action nothing (skipped due to action :nothing) Recipe: gitaly::enable
-
runit_service[gitaly] action enable
- ruby_block[restart_service] action nothing (skipped due to action :nothing)
- ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
- ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
- directory[/opt/gitlab/sv/gitaly] action create (up to date)
- template[/opt/gitlab/sv/gitaly/run] action create (up to date)
- directory[/opt/gitlab/sv/gitaly/log] action create (up to date)
- directory[/opt/gitlab/sv/gitaly/log/main] action create (up to date)
- template[/opt/gitlab/sv/gitaly/log/run] action create (up to date)
- template[/var/log/gitlab/gitaly/config] action create (up to date)
- directory[/opt/gitlab/sv/gitaly/env] action create (up to date)
- ruby_block[Delete unmanaged env files for gitaly service] action run (skipped due to only_if)
- template[/opt/gitlab/sv/gitaly/check] action create (skipped due to only_if)
- template[/opt/gitlab/sv/gitaly/finish] action create (skipped due to only_if)
- directory[/opt/gitlab/sv/gitaly/control] action create (up to date)
- link[/opt/gitlab/init/gitaly] action create (up to date)
- file[/opt/gitlab/sv/gitaly/down] action delete (up to date)
- directory[/opt/gitlab/service] action create (up to date)
- link[/opt/gitlab/service/gitaly] action create (up to date)
- ruby_block[wait for gitaly service socket] action run (skipped due to not_if) (up to date)
-
execute[/opt/gitlab/bin/gitlab-ctl start gitaly] action run [execute] ok: run: gitaly: (pid 8555) 824s [32m- execute /opt/gitlab/bin/gitlab-ctl start gitaly
-
file[/var/opt/gitlab/gitaly/VERSION] action create (up to date) Recipe: postgresql::user
-
account[Postgresql user and group] action create
- group[Postgresql user and group] action create (up to date)
- linux_user[Postgresql user and group] action create (up to date) (up to date) Recipe: postgresql::enable
-
directory[/var/opt/gitlab/postgresql] action create (up to date)
-
directory[/var/opt/gitlab/postgresql/data] action create (up to date)
-
directory[/var/log/gitlab/postgresql] action create (up to date)
-
link[/var/opt/gitlab/postgresql/data] action create (skipped due to not_if)
-
file[/var/opt/gitlab/postgresql/.profile] action create (up to date)
-
gitlab_sysctl[kernel.shmmax] action create
- directory[create /etc/sysctl.d for kernel.shmmax] action create (up to date)
- file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmmax.conf kernel.shmmax] action create (up to date)
- link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmmax.conf] action create (up to date)
- execute[load sysctl conf kernel.shmmax] action nothing (skipped due to action :nothing) (up to date)
-
gitlab_sysctl[kernel.shmall] action create
- directory[create /etc/sysctl.d for kernel.shmall] action create (up to date)
- file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.shmall.conf kernel.shmall] action create (up to date)
- link[/etc/sysctl.d/90-omnibus-gitlab-kernel.shmall.conf] action create (up to date)
- execute[load sysctl conf kernel.shmall] action nothing (skipped due to action :nothing) (up to date)
-
gitlab_sysctl[kernel.sem] action create
- directory[create /etc/sysctl.d for kernel.sem] action create (up to date)
- file[create /opt/gitlab/embedded/etc/90-omnibus-gitlab-kernel.sem.conf kernel.sem] action create (up to date)
- link[/etc/sysctl.d/90-omnibus-gitlab-kernel.sem.conf] action create (up to date)
- execute[load sysctl conf kernel.sem] action nothing (skipped due to action :nothing) (up to date)
-
execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] action run [execute] The files belonging to this database system will be owned by user "gitlab-psql". This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english". Data page checksums are disabled. fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... 2019-08-21 02:01:51.581 UTC [12432] FATAL: could not resize shared memory segment "/PostgreSQL.1306003125" to 6928 bytes: No space left on device child process exited with exit code 1 initdb: removing contents of data directory "/var/opt/gitlab/postgresql/data"
run
on resource 'execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8]'Expected process to exit with [0], but received '1' ---- Begin output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ---- STDOUT: The files belonging to this database system will be owned by user "gitlab-psql". This user must also own the server process.
The database cluster will be initialized with locale "en_US.UTF-8". The default text search configuration will be set to "english".
Data page checksums are disabled.
fixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 128MB selecting dynamic shared memory implementation ... posix creating configuration files ... ok running bootstrap script ... STDERR: 2019-08-21 02:01:51.581 UTC [12432] FATAL: could not resize shared memory segment "/PostgreSQL.1306003125" to 6928 bytes: No space left on device child process exited with exit code 1 initdb: removing contents of data directory "/var/opt/gitlab/postgresql/data" ---- End output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ---- Ran /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 returned 1
80: execute "/opt/gitlab/embedded/bin/initdb -D #{node['postgresql']['data_dir']} -E UTF8" do 81: user postgresql_username 82: not_if { pg_helper.bootstrapped? } 83: end 84:
execute("/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8") do action [:run] default_guard_interpreter :execute command "/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8" backup 5 declared_type :execute cookbook_name "postgresql" recipe_name "enable" user "gitlab-psql" domain nil not_if { #code block } end
chef_version=14.13.11 platform=ubuntu platform_version=18.10 ruby=ruby 2.6.3p62 (2019-04-16 revision 67580) [x86_64-linux] program_name=/opt/gitlab/embedded/bin/chef-client executable=/opt/gitlab/embedded/bin/chef-client
Running handlers: Running handlers complete Chef Client failed. 3 resources updated in 16 seconds