Hello. I want to use the gitlab docker, but cannot get it started. It will start up and try to configure but shuts down a few minutes later. The log looks like this:
[0m
================================================================================[0m
[31mError executing action `run` on resource 'execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8]'[0m
================================================================================[0m
[0mMixlib::ShellOut::ShellCommandFailed[0m
------------------------------------[0m
Expected process to exit with [0], but received '1'
[0m---- Begin output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
[0mSTDOUT: The files belonging to this database system will be owned by user "gitlab-psql".
[0mThis user must also own the server process.
[0m
[0mThe database cluster will be initialized with locale "C.UTF-8".
[0mThe default text search configuration will be set to "english".
[0m
[0mfixing permissions on existing directory /var/opt/gitlab/postgresql/data ... ok
[0mcreating subdirectories ... ok
[0mselecting default max_connections ... 100
[0mselecting default shared_buffers ... 32MB
[0mcreating configuration files ... ok
[0mcreating template1 database in /var/opt/gitlab/postgresql/data/base/1 ...
[0mSTDERR: FATAL: could not open file "pg_xlog/000000010000000000000001" (log file 0, segment 1): No such file or directory
[0mchild process exited with exit code 1
[0minitdb: removing contents of data directory "/var/opt/gitlab/postgresql/data"
[0m---- End output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
[0mRan /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 returned 1[0m
[0mResource Declaration:[0m
---------------------[0m
# In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb
[0m
[0m 84: execute "/opt/gitlab/embedded/bin/initdb -D #{postgresql_data_dir} -E UTF8" do
[0m 85: user postgresql_user
[0m 86: not_if { File.exists?(File.join(postgresql_data_dir, "PG_VERSION")) }
[0m 87: end
[0m 88:
[0m
[0mCompiled Resource:[0m
------------------[0m
# Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb:84:in `from_file'
[0m
[0mexecute("/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8") do
[0m action [:run]
[0m retries 0
[0m retry_delay 2
[0m default_guard_interpreter :execute
[0m command "/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8"
[0m backup 5
[0m returns 0
[0m user "gitlab-psql"
[0m declared_type :execute
[0m cookbook_name "gitlab"
[0m recipe_name "postgresql"
[0m not_if { #code block }
[0mend
[0m
[0mPlatform:[0m
---------[0m
x86_64-linux[0m
[0m
I assume there is something in the gitlab.rb file I need to change, but I do not even know where to begin. Thanks in advance for any help with this.