Advertisement
Guest User

GL-CE

a guest
Jul 24th, 2016
479
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. Thank you for using GitLab Docker Image!
  2. Current version: gitlab-ce=8.10.0-ce.1
  3.  
  4. Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
  5. And restart this container to reload settings.
  6. To do it use docker exec:
  7.  
  8. docker exec -it gitlab vim /etc/gitlab/gitlab.rb
  9. docker restart gitlab
  10.  
  11. For a comprehensive list of configuration options please see the Omnibus GitLab readme
  12. https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
  13.  
  14. If this container fails to start due to permission problems try to fix it by executing:
  15.  
  16. docker exec -it gitlab update-permissions
  17. docker restart gitlab
  18.  
  19. Preparing services...
  20. Starting services...
  21. Configuring GitLab package...
  22. Configuring GitLab...
  23. 
  24. ================================================================================
  25. Error executing action `run` on resource 'execute[create gitlab database user]'
  26. ================================================================================
  27.  
  28. Mixlib::ShellOut::ShellCommandFailed
  29. ------------------------------------
  30. Expected process to exit with [0], but received '2'
  31. ---- Begin output of /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" ----
  32. STDOUT:
  33. STDERR: psql: FATAL: the database system is starting up
  34. ---- End output of /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" ----
  35. Ran /opt/gitlab/bin/gitlab-psql -d template1 -c "CREATE USER gitlab" returned 2
  36.  
  37. Resource Declaration:
  38. ---------------------
  39. # In /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb
  40. 
  41. 152: execute "create #{gitlab_sql_user} database user" do
  42. 153: command "/opt/gitlab/bin/gitlab-psql -d template1 -c \"CREATE USER #{gitlab_sql_user}\""
  43. 154: user postgresql_user
  44. 155: # Added retries to give the service time to start on slower systems
  45. 156: retries 20
  46. 157: not_if { !pg_helper.is_running? || pg_helper.user_exists?(gitlab_sql_user) }
  47. 158: end
  48. 159:
  49. 
  50. Compiled Resource:
  51. ------------------
  52. # Declared in /opt/gitlab/embedded/cookbooks/cache/cookbooks/gitlab/recipes/postgresql.rb:152:in `from_file'
  53. 
  54. execute("create gitlab database user") do
  55.  action [:run]
  56.  retries 20
  57.  retry_delay 2
  58.  default_guard_interpreter :execute
  59.  command "/opt/gitlab/bin/gitlab-psql -d template1 -c \"CREATE USER gitlab\""
  60.  backup 5
  61.  returns 0
  62.  user "gitlab-psql"
  63.  declared_type :execute
  64.  cookbook_name "gitlab"
  65.  recipe_name "postgresql"
  66.  not_if { #code block }
  67. end
  68. 
  69. Platform:
  70. ---------
  71. x86_64-linux
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement