Mattermost error during reconfigure
When attempting to deploy 9.1 RC4 in GKE as part of I2P, I am getting an error during initial reconfigure. It looks like the Chef code assumes a local Postgres server.
2017-04-18T16:08:35.500859564Z Configuring GitLab...
2017-04-18T16:08:40.721407955Z
2017-04-18T16:08:40.721434673Z
2017-04-18T16:08:40.721447758Z * Moving existing certificates found in /opt/gitlab/embedded/ssl/certs
2017-04-18T16:08:40.721690204Z
2017-04-18T16:08:40.721703572Z * Symlinking existing certificates found in /etc/gitlab/trusted-certs
2017-04-18T16:09:16.196955146Z
2017-04-18T16:09:16.197048677Z ================================================================================
2017-04-18T16:09:16.197061923Z Error executing action `run` on resource 'execute[create gitlab_mattermost database user]'
2017-04-18T16:09:16.197126324Z ================================================================================
2017-04-18T16:09:16.197161878Z
2017-04-18T16:09:16.19723343Z Mixlib::ShellOut::ShellCommandFailed
2017-04-18T16:09:16.197333062Z ------------------------------------
2017-04-18T16:09:16.197402816Z Expected process to exit with [0], but received '2'
2017-04-18T16:09:16.197462273Z ---- Begin output of /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" ----
2017-04-18T16:09:16.197489731Z STDOUT:
2017-04-18T16:09:16.197498156Z STDERR: psql: could not connect to server: No such file or directory
2017-04-18T16:09:16.197524605Z Is the server running locally and accepting
2017-04-18T16:09:16.197567611Z connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
2017-04-18T16:09:16.197592854Z ---- End output of /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" ----
2017-04-18T16:09:16.197659865Z Ran /opt/gitlab/embedded/bin/psql --port 5432 -h /var/opt/gitlab/postgresql -d template1 -c "CREATE USER gitlab_mattermost" returned 2
2017-04-18T16:09:16.197729771Z
2017-04-18T16:09:16.197773371Z Resource Declaration:
2017-04-18T16:09:16.197830996Z ---------------------
2017-04-18T16:09:16.19789208Z # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/mattermost.rb
2017-04-18T16:09:16.197977351Z
2017-04-18T16:09:16.198005393Z 78: execute "create #{sql_user} database user" do
2017-04-18T16:09:16.198015477Z 79: command "#{bin_dir}/psql --port #{pg_port} -h #{postgresql_socket_dir} -d template1 -c \"CREATE USER #{sql_user}\""
2017-04-18T16:09:16.198021589Z 80: user pg_user
2017-04-18T16:09:16.198057529Z 81: not_if { mysql_adapter || !pg_helper.is_running? || pg_helper.user_exists?(sql_user) }
2017-04-18T16:09:16.198067413Z 82: end
2017-04-18T16:09:16.198089457Z 83:
2017-04-18T16:09:16.19809829Z
2017-04-18T16:09:16.198181751Z Compiled Resource:
2017-04-18T16:09:16.198236556Z ------------------
2017-04-18T16:09:16.198306979Z # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/mattermost.rb:78:in `from_file'
2017-04-18T16:09:16.198340408Z
2017-04-18T16:09:16.198387765Z execute("create gitlab_mattermost database user") do
2017-04-18T16:09:16.198411288Z action [:run]
2017-04-18T16:09:16.198433377Z retries 0