Giter VIP home page Giter VIP logo

installation-guide-for-gitlab-on-os-x's People

Contributors

bitdeli-chef avatar bovi avatar citronak avatar glendc avatar jacopotarantino avatar jshawl avatar mainframer avatar moortaube avatar nick-lavrik avatar outcoldman avatar raldred avatar ritave avatar scottcc avatar simonweil avatar tonsilver avatar zshannon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

installation-guide-for-gitlab-on-os-x's Issues

Gitlab loading is too slow

I install the gitlab 7.7 on os X 10.10 successfully.
but gitlab is too slow to connect browser

Can I need any different setting?

about Unicorn server can't run

qq20161228-1 2x

I was success one day ago .but today can not be run :(

here is my env:

bash-3.2$ bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:
Current User:	git
Using RVM:	yes
RVM Version:	1.28.0
Ruby Version:	2.3.3p222
Gem Version:	2.6.8
Bundler Version:1.13.7
Rake Version:	10.5.0
Sidekiq Version:4.2.7

GitLab information
Version:	8.15.1
Revision:	1119c1f656
Directory:	/Users/git/gitlab
DB Adapter:	mysql2
URL:		http://192.168.31.88:8080
HTTP Clone URL:	http://192.168.31.88:8080/some-group/some-project.git
SSH Clone URL:	[email protected]:some-group/some-project.git
Using LDAP:	no
Using Omniauth:	no

GitLab Shell
Version:	4.1.1
Repository storage paths:
- default: 	/Users/git/repositories/
Hooks:		/Users/git/gitlab-shell/hooks/
Git:		/usr/local/bin/git

Yesterday I could see the log, not today

stderr_path "/Users/git/gitlab/log/unicorn.stderr.log"

posix_spawn seg faulting

I've followed the instructions precisely, with no errors up until sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production', where it seg faults. Any idea what could cause this / how to fix it?

$ sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production'
Password:
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/posix-spawn-0.3.6/lib/posix_spawn_ext.bundle: [BUG] Segmentation fault
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-darwin13.0.0]

-- Crash Report log information --------------------------------------------
   See Crash Report log file under the one of following:
     * ~/Library/Logs/CrashReporter
     * /Library/Logs/CrashReporter
     * ~/Library/Logs/DiagnosticReports
     * /Library/Logs/DiagnosticReports
   the more detail of.

-- Control frame information -----------------------------------------------
c:0049 p:-17579291306458 s:0172 e:000171 TOP    [FINISH]
c:0048 p:---- s:0170 e:000169 CFUNC  :require
c:0047 p:0010 s:0166 e:000165 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0046 p:0054 s:0164 e:000163 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236
c:0045 p:0015 s:0159 e:000158 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0044 p:0021 s:0154 e:000153 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:2 [FINISH]
c:0043 p:---- s:0152 e:000151 CFUNC  :require
c:0042 p:0010 s:0148 e:000147 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0041 p:0054 s:0146 e:000145 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236
c:0040 p:0015 s:0141 e:000140 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0039 p:0007 s:0136 e:000135 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/posix-spawn-0.3.6/lib/posix-spawn.rb:1 [FINISH]
c:0038 p:---- s:0134 e:000133 CFUNC  :require
c:0037 p:0010 s:0130 e:000129 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0036 p:0054 s:0128 e:000127 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236
c:0035 p:0015 s:0123 e:000122 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0034 p:0015 s:0118 e:000117 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab-grit-2.6.1/lib/grit/git.rb:2 [FINISH]
c:0033 p:---- s:0116 e:000115 CFUNC  :require
c:0032 p:0010 s:0112 e:000111 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0031 p:0054 s:0110 e:000109 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236
c:0030 p:0015 s:0105 e:000104 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0029 p:0139 s:0100 e:000099 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab-grit-2.6.1/lib/grit.rb:34 [FINISH]
c:0028 p:---- s:0097 e:000096 CFUNC  :require
c:0027 p:0010 s:0093 e:000092 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0026 p:0054 s:0091 e:000090 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236
c:0025 p:0015 s:0086 e:000085 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251
c:0024 p:0023 s:0081 e:000080 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab_git-3.0.0.rc2/lib/gitlab_git.rb:4 [FINISH]
c:0023 p:---- s:0079 e:000078 CFUNC  :require
c:0022 p:0021 s:0075 e:000074 BLOCK  /usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72 [FINISH]
c:0021 p:---- s:0072 e:000071 CFUNC  :each
c:0020 p:0055 s:0069 e:000068 BLOCK  /usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70 [FINISH]
c:0019 p:---- s:0062 e:000061 CFUNC  :each
c:0018 p:0030 s:0059 e:000058 METHOD /usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59
c:0017 p:0013 s:0055 e:000054 METHOD /usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132
c:0016 p:0063 s:0051 e:000050 TOP    /Users/git/gitlab/config/application.rb:9 [FINISH]
c:0015 p:---- s:0049 e:000048 CFUNC  :require
c:0014 p:0018 s:0045 e:000044 TOP    /Users/git/gitlab/Rakefile:5 [FINISH]
c:0013 p:---- s:0043 e:000042 CFUNC  :load
c:0012 p:0009 s:0039 e:000038 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_module.rb:25
c:0011 p:0176 s:0035 e:000034 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:637
c:0010 p:0007 s:0030 e:000029 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:94
c:0009 p:0006 s:0028 e:000027 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165
c:0008 p:0007 s:0024 e:000023 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:93
c:0007 p:0013 s:0021 e:000020 BLOCK  /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:77
c:0006 p:0006 s:0019 e:000018 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165
c:0005 p:0007 s:0015 e:000014 METHOD /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75
c:0004 p:0040 s:0012 e:000011 TOP    /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/bin/rake:33 [FINISH]
c:0003 p:---- s:0010 e:000009 CFUNC  :load
c:0002 p:0118 s:0006 E:0014f8 EVAL   /Users/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:23 [FINISH]
c:0001 p:0000 s:0002 E:001b58 TOP    [FINISH]

/Users/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:23:in `<main>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/bin/rake:23:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:77:in `block in run'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:93:in `load_rakefile'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:94:in `block in load_rakefile'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/application.rb:637:in `raw_load_rakefile'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load_rakefile'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/rake-10.1.0/lib/rake/rake_module.rb:25:in `load'
/Users/git/gitlab/Rakefile:5:in `<top (required)>'
/Users/git/gitlab/Rakefile:5:in `require'
/Users/git/gitlab/config/application.rb:9:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/usr/local/rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab_git-3.0.0.rc2/lib/gitlab_git.rb:4:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab-grit-2.6.1/lib/grit.rb:34:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/gitlab-grit-2.6.1/lib/grit/git.rb:2:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/posix-spawn-0.3.6/lib/posix-spawn.rb:1:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/posix-spawn-0.3.6/lib/posix/spawn.rb:2:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'

...
(Remainder of output at: https://gist.github.com/zshannon/7595974)

Backgrounds jobs & Web Daemons don't start

Hi,

Links broken

The links of scripts background_jobs and web are broken. I think the are :
- background_jobs : https://github.com/gitlabhq/gitlabhq/blob/master/bin/background_jobs
- web : https://github.com/gitlabhq/gitlabhq/blob/master/bin/web

Daemons doesn't start

The gitlab.web & gitlab.backgrounds_jobs doesn't start. When I load & unload gitlab.web I have this error :

Jul 8 00:26:51 as05715297 com.apple.xpc.launchd1: Service could not initialize: 14E46: xpcproxy + 13421 [1402][7D917364-B96E-3F93-B923-A89B5BF5736D]: 0x2
Jul 8 00:26:51 as05715297 com.apple.xpc.launchd1: Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

& the same for backgound_jobs :

Jul 8 00:30:42 as05715297 com.apple.xpc.launchd1: Service could not initialize: 14E46: xpcproxy + 13421 [1402][7D917364-B96E-3F93-B923-A89B5BF5736D]: 0x2
Jul 8 00:30:42 as05715297 com.apple.xpc.launchd1: Service only ran for 0 seconds. Pushing respawn out by 10 seconds.

If I try in command line all works perfectly :

$ sudo su git
$ cd /Users/git/gitlab
$ bundle exec sidekiq -q post_receive -q mailer -q system_hook -q project_web_hook -q gitlab_shell -q common -q default -e production -P tmp/pids/sidekiq.pid

& in another tab :


$ sudo su git
$ cd /Users/git/gitlab
$ bundle exec unicorn_rails -c config/unicorn.rb -E production

Stdout :
capture d ecran 2015-07-08 a 09 37 15

Need informations

I don't understand what does it mean :

ProgramArguments arrays in these plists should be in sync with start functions in scripts background_jobs and web.

Can you help a little please.

Thanks in advance

NoMethodError: undefined method `container_registry_enabled=' for #<Project:0x007fbd0b9c2af0>'`

Hi there, I was trying to upgrade gitlab from 8-5 to 8-8 today, after running bundle exec rake gitlab:env:info RAILS_ENV=production, I've got an error :

System information
System:
Current User:   git
Using RVM:      no
Ruby Version:   2.1.8p440
Gem Version:    2.6.4
Bundler Version:.
Rake Version:   10.5.0
Sidekiq Version:4.1.2
rake aborted!
NoMethodError: undefined method `container_registry_enabled=' for #<Project:0x007fbd0b9c2af0>
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activemodel-4.2.6/lib/active_model/attribute_methods.rb:433:in `method_missing'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.1/lib/default_value_for.rb:178:in `block in set_default_values'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.1/lib/default_value_for.rb:154:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.1/lib/default_value_for.rb:154:in `set_default_values'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:228:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:228:in `block in halting_and_conditional'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:506:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:506:in `block in call'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:506:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:506:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in `_run_initialize_callbacks'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/core.rb:284:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/default_value_for-3.0.1/lib/default_value_for.rb:142:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/state_machines-activerecord-0.3.0/lib/state_machines/integrations/active_record.rb:454:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/inheritance.rb:61:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/inheritance.rb:61:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/reflection.rb:141:in `build_association'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/associations/association.rb:250:in `build_record'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/associations/collection_association.rb:146:in `build'
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.6/lib/active_record/associations/collection_proxy.rb:259:in `build'
/Users/git/gitlab/lib/tasks/gitlab/info.rake:33:in `block (3 levels) in <top (required)>'
/Users/git/.rbenv/versions/2.1.8/bin/bundle:22:in `load'
/Users/git/.rbenv/versions/2.1.8/bin/bundle:22:in `<main>'
Tasks: TOP => gitlab:env:info
(See full trace by running task with --trace)
'

I'm not familiar with ruby on rails, I've tried to remove all gems and reinstall them, but there's still this error, and I can not get a solution from google. Do you have ideas to solve this error? Thanks a lot in advance!

bundle install error -- "Could not locate Gemfile"

Hi there. I'm guessing this might be more of a support request, but as one line of the walkthrough isn't working for me, I thought I'd ask. In case it's relevant, I am also running OS X Server and using Postgres.app as the database on this machine.

Since I'm installing for use with with Postgres, I get to this line under the Install Gems section:

sudo -u git -H -i bundle install --deployment --without development test mysql aws

It returns the error Could not locate Gemfile

I am in the /Users/git/gitlab directory, so I've gotten this far successfully. I am running it from the directory with the Gemfile in it. โ€œItโ€™s right there!โ€ I shout at the computer.

If I try to force it to locate the Gemfile with:

sudo -u git -H -i BUNDLE_GEMFILE="Gemfile" bundle install --deployment --without development test mysql aws

It then returns the error, The --deployment flag requires a Gemfile.lock. Please make sure you have checked your Gemfile.lock into version control before deploying.

In an effort to comply, I ran:

$ sudo -u git git add Gemfile
$ sudo -u git git add Gemfile.lock
$ sudo -u git git commit -m "Updated Gemfile and Gemfile.lock after changes"

[7-12-stable bf9c135] Updated Gemfile and Gemfile.lock after changes
 Committer: Git Lab <[email protected]>
[โ€ฆ]
 2 files changed, 4 insertions(+), 4 deletions(-)

โ€ฆbut alas, after running the bundle install command after this, I still get the same error.

Is there a workaround to resolve this? Unfortunately, I do not know enough about the process to offer a PR. Thanks for any help!

Redis is not starting

When i run the following command - launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
redis does not start. I came to know about this as there is no processes which is running.

Also, when I try to check the application using bundle exec rake gitlab:env:info RAILS_ENV=production

it throws me the following error - /var/run/redis/redis.sock: No such file or directory

Can you let me know what I am doing wrong. I am running Mac OS X El Capitan. I need to install Gitlab urgently.

Error pushing to GitLab

After setting a project up in GitLab I'm unable to push. When i try, I get the error:

fatal: unable to access 'http://site.com/corydorning/gxl-ng.git/': The requested URL returned error: 503

I'm assuming this is the same issue that returns a 500 page when i try to upload a new avatar under my profile as well. Is this a permissions issue? or something else?

Check Installation errors

I'm stumbling through this and finally have the gitlab shell configuration working properly, but when I run the following command sudo -u git -H bash -l -c 'bundle exec rake gitlab:check RAILS_ENV=production' i still have some issues.

It is telling me Git configured for git user? ... no despite running through all the steps and even after rerunning:

sudo -u git -H git config --global user.name  "GitLab"
sudo -u git -H git config --global user.email "[email protected]"

Also getting some no project errors:
update hooks in repos are links: ... can't check, you have no projects

As well as some init errors:
Init script exists? ... no

Full output

$ sudo -u git -H bash -l -c 'bundle exec rake gitlab:check RAILS_ENV=production'
Instance method "lock!" is already defined in ActiveRecord::Base, use generic helper instead or set StateMachine::Machine.ignore_method_conflicts = true.
Checking Environment ...

Git configured for git user? ... no
  Try fixing it:
  sudo -u git -H git config --global user.name  "GitLab"
  sudo -u git -H git config --global user.email "[email protected]"
  For more information see:
  doc/install/installation.md in section "GitLab"
  Please fix the error above and rerun the checks.

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.9.6 ? ... OK (1.9.6)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
Satellites access is drwxr-x---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... can't check, you have no projects
Running /Users/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files: 
    /Users/git/repositories: OK
    /Users/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.8.12
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned UsersGroups? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... no
  Try fixing it:
  Install the init script
  For more information see:
  doc/install/installation.md in section "Install Init Script"
  Please fix the error above and rerun the checks.
Init script up-to-date? ... can't check because of previous errors
projects have namespace: ... can't check, you have no projects
Projects have satellites? ... can't check, you have no projects
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/local/bin/git"
Git version >= 1.7.10 ? ... yes (2.0.1)

Checking GitLab ... Finished

Login users page doesn't load

Hello,
Followed the procedure from A to Z as a charm, everything is up and running but when opening in web browser, it's seems loading the page users/sign_in but nothing comes ... ? Any Idea
Configuration: OS x Maverick 10.6.9.1 + server 3
capture decran 2014-01-09 a 11 47 35
Here are my results from checking ..

Checking Environment ...

Git configured for git user? ... no
Try fixing it:
sudo -u git -H git config --global user.name "GitLab"
sudo -u git -H git config --global user.email "[email protected]:8080"
For more information see:
doc/install/installation.md in section "GitLab"
Please fix the error above and rerun the checks.
Has python2? ... yes
python2 is supported version? ... yes

Checking Environment ... Finished

Checking GitLab Shell ...

GitLab Shell version >= 1.7.9 ? ... OK (1.7.9)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
update hook up-to-date? ... yes
update hooks in repos are links: ... can't check, you have no projects
Running /Users/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/Users/git/repositories: OK
/Users/git/.ssh/authorized_keys: OK
/usr/local/bin/redis-cli: OK
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking GitLab ...

Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Init script exists? ... yes
Init script up-to-date? ... no
Try fixing it:
Redownload the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
projects have namespace: ... can't check, you have no projects
Projects have satellites? ... can't check, you have no projects
Redis version >= 2.0.0? ... yes
Your git bin path is "/usr/local/bin/git"
Git version >= 1.7.10 ? ... yes (1.8.5)

Checking GitLab ... Finished

sudo -u git -H bash -l -c 'bundle exec rake gitlab:env:info RAILS_ENV=production'

System information
System: Mac OS X 10.9.1
Current User: git
Using RVM: no
Ruby Version: 2.0.0p247
Gem Version: 2.0.3
Bundler Version:1.5.1
Rake Version: 10.1.0

GitLab information
Version: 6.3.1
Revision: 779b4dc
Directory: /Users/git/gitlab
DB Adapter: mysql2
URL: http://server.gitlab.private:8080
HTTP Clone URL: http://server.gitlab.private:8080/some-project.git
SSH Clone URL: [email protected]:some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version: 1.7.9
Repositories: /Users/git/repositories/
Hooks: /Users/git/gitlab-shell/hooks/
Git: /usr/local/bin/git
MacBook-Pro-de-Michel:gitlab mcp$

I cant push new file .....:) but can push a exist git lib ....

qq20161229-0 2x

qq20161229-1 2x

Thank you

when i push a new file

something error like this

** [Raven] Raven 2.0.2 configured not to capture errors.
Started GET "/Cooliean/gittest.git/info/refs?service=git-receive-pack" for 10.1.1.1 at 2016-12-29 17:28:55 +0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-receive-pack", "namespace_id"=>"Cooliean", "project_id"=>"gittest.git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 158ms (Views: 18.7ms | ActiveRecord: 3.6ms)
Started GET "/Cooliean/gittest.git/info/refs?service=git-receive-pack" for 10.1.1.1 at 2016-12-29 17:28:56 +0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-receive-pack", "namespace_id"=>"Cooliean", "project_id"=>"gittest.git"}
Filter chain halted as :authenticate_user rendered or redirected
Completed 401 Unauthorized in 82ms (Views: 0.3ms | ActiveRecord: 2.2ms)
Started GET "/Cooliean/gittest.git/info/refs?service=git-receive-pack" for 10.1.1.1 at 2016-12-29 17:28:56 +0800
Processing by Projects::GitHttpController#info_refs as */*
  Parameters: {"service"=>"git-receive-pack", "namespace_id"=>"Cooliean", "project_id"=>"gittest.git"}
Completed 200 OK in 365ms (Views: 0.5ms | ActiveRecord: 11.0ms)
Started POST "/Cooliean/gittest.git/git-receive-pack" for 10.1.1.1 at 2016-12-29 17:28:56 +0800
Processing by Projects::GitHttpController#git_receive_pack as application/x-git-receive-pack-result
  Parameters: {"namespace_id"=>"Cooliean", "project_id"=>"gittest.git"}
Completed 200 OK in 140ms (Views: 0.2ms | ActiveRecord: 4.6ms)
Started POST "/api/v3/internal/allowed" for 192.168.31.88 at 2016-12-29 17:28:57 +0800

RuntimeError (Got a non-zero exit code while calling out to `git rev-list` in the force-push check.):
  /Users/git/gitlab/lib/gitlab/checks/force_push.rb:16:in `force_push?'
  /Users/git/gitlab/lib/gitlab/checks/change_access.rb:72:in `forced_push?'
  /Users/git/gitlab/lib/gitlab/checks/change_access.rb:30:in `protected_branch_checks'
  /Users/git/gitlab/lib/gitlab/checks/change_access.rb:15:in `exec'
  /Users/git/gitlab/lib/gitlab/git_access.rb:107:in `change_access_check'
  /Users/git/gitlab/lib/gitlab/git_access.rb:98:in `block in user_push_access_check'
  /Users/git/gitlab/lib/gitlab/changes_list.rb:12:in `each'
  /Users/git/gitlab/lib/gitlab/changes_list.rb:12:in `each'
  /Users/git/gitlab/lib/gitlab/git_access.rb:97:in `user_push_access_check'
  /Users/git/gitlab/lib/gitlab/git_access.rb:57:in `push_access_check'
  /Users/git/gitlab/lib/gitlab/git_access.rb:39:in `check'
  /Users/git/gitlab/lib/api/internal.rb:42:in `block (2 levels) in <class:Internal>'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:59:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:59:in `block (2 levels) in generate_api_method'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:58:in `block in generate_api_method'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:264:in `block in run'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications.rb:166:in `instrument'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:238:in `run'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:310:in `block in build_stack'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/base.rb:30:in `call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/base.rb:23:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/base.rb:30:in `call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/base.rb:23:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-oauth2-1.2.3/lib/rack/oauth2/server/resource.rb:20:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-oauth2-1.2.3/lib/rack/oauth2/server/resource/bearer.rb:8:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/error.rb:34:in `block in call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/error.rb:33:in `catch'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/error.rb:33:in `call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/middleware/base.rb:23:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:222:in `call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/endpoint.rb:216:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router/route.rb:68:in `exec'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:71:in `block in identity'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:92:in `transaction'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:67:in `identity'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:52:in `block in call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:115:in `with_optimization'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/router.rb:51:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/api.rb:119:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/api.rb:45:in `call!'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/grape-0.18.0/lib/grape/api.rb:40:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/journey/router.rb:30:in `each'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/journey/router.rb:30:in `serve'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/routing/route_set.rb:817:in `call'
  /Users/git/gitlab/lib/gitlab/middleware/multipart.rb:93:in `call'
  /Users/git/gitlab/lib/gitlab/request_profiler/middleware.rb:15:in `call'
  /Users/git/gitlab/lib/gitlab/middleware/go.rb:16:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-cors-0.4.0/lib/rack/cors.rb:80:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-attack-4.4.1/lib/rack/attack.rb:107:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/etag.rb:24:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/conditionalget.rb:38:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/head.rb:13:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:225:in `context'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/session/abstract/id.rb:220:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/query_cache.rb:36:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:38:in `call_app'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:20:in `block in call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:26:in `tagged'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/tagged_logging.rb:68:in `tagged'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/rack/logger.rb:20:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/actionpack-4.2.7.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/methodoverride.rb:22:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/runtime.rb:18:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/lock.rb:17:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/sendfile.rb:113:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/sentry-raven-2.0.2/lib/raven/integrations/rack.rb:50:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/engine.rb:518:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/application.rb:165:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `public_send'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/railties-4.2.7.1/lib/rails/railtie.rb:194:in `method_missing'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:66:in `block in call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:50:in `each'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rack-1.6.5/lib/rack/urlmap.rb:50:in `call'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:562:in `process_client'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-worker-killer-0.4.4/lib/unicorn/worker_killer.rb:52:in `process_client'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:658:in `worker_loop'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:508:in `spawn_missing_workers'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/lib/unicorn/http_server.rb:132:in `start'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/unicorn-5.1.0/bin/unicorn_rails:209:in `<top (required)>'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/bin/unicorn_rails:22:in `load'
  /Users/git/gitlab/vendor/bundle/ruby/2.3.0/bin/unicorn_rails:22:in `<top (required)>'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
  /Users/git/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'
  /Users/git/.rbenv/versions/2.3.3/bin/bundle:22:in `load'
  /Users/git/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'

gitlab check fail for upload directory and init script

when i run bundle exec rake gitlab:check RAILS_ENV=production

i got the following error

`
Checking GitLab Shell ...

GitLab Shell version >= 2.6.10 ? ... OK (2.6.10)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
hooks directories in repos are links: ...
minal / ebs ... repository is empty
Running /Users/git/gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files:
/Users/git/repositories/: OK
/Users/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 3.0.7
Send ping to redis server: PONG
gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes
Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... no
Try fixing it:
Redownload the init script
For more information see:
doc/install/installation.md in section "Install Init Script"
Please fix the error above and rerun the checks.
projects have namespace: ...

Redis version >= 2.8.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.8)
Your git bin path is "/usr/local/bin/git"
Git version >= 1.7.10 ? ... yes (2.7.2)
Active users: 4

Checking GitLab ... Finished`

please help me, i get the commit log in dashboard but cannot found the pushed content in the repo

GitLab Shell check failing - Connection Refused

Any insight as to why my connection is being refused?

$ sudo -u git /Users/git/gitlab-shell/bin/check
Check GitLab API access: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `initialize': Connection refused - connect(2) (Errno::ECONNREFUSED)
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `open'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:878:in `block in connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/timeout.rb:52:in `timeout'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:877:in `connect'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:862:in `do_start'
    from /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/net/http.rb:851:in `start'
    from /Users/git/gitlab-shell/lib/gitlab_net.rb:76:in `get'
    from /Users/git/gitlab-shell/lib/gitlab_net.rb:43:in `check'
    from /Users/git/gitlab-shell/bin/check:11:in `<main>'

Error 502 (Whoops, GitLab is taking too much time to respond.)

Dear all,
caught error 502(Whoops, GitLab is taking too much time to respond.)
Please give me some advice. thanks.

env:
bash-3.2$ bundle exec rake gitlab:env:info RAILS_ENV=production

System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.1.6p336
Gem Version: 2.2.3
Bundler Version:1.10.6
Rake Version: 10.4.2
Sidekiq Version:3.3.0

GitLab information
Version: 8.1.4
Revision: 4d7216a
Directory: /Users/git/gitlab
DB Adapter: postgresql
URL: http://localhost
HTTP Clone URL: http://localhost/some-group/some-project.git
SSH Clone URL: git@localhost:some-group/some-project.git
Using LDAP: no
Using Omniauth: no

GitLab Shell
Version: 2.6.5
Repositories: /Users/git/repositories/
Hooks: /Users/git/gitlab-shell/hooks/
Git: /usr/local/bin/git

bash-3.2$ bundle exec rake gitlab:check RAILS_ENV=production
Checking GitLab Shell ...

GitLab Shell version >= 2.6.5 ? ... OK (2.6.5)
Repo base directory exists? ... yes
Repo base directory is a symlink? ... no
Repo base owned by git:git? ... yes
Repo base access is drwxrws---? ... yes
hooks directories in repos are links: ... can't check, you have no projects
Running /Users/git/gitlab-shell/bin/check
Check GitLab API access: FAILED: Failed to connect to internal API
gitlab-shell self-check failed
Try fixing it:
Make sure GitLab is running;
Check the gitlab-shell configuration file:
sudo -u git -H editor /Users/git/gitlab-shell/config.yml
Please fix the error above and rerun the checks.

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... no
Try fixing it:
sudo -u git -H RAILS_ENV=production bin/background_jobs start
For more information see:
doc/install/installation.md in section "Install Init Script"
see log/sidekiq.log for possible errors
Please fix the error above and rerun the checks.

Checking Sidekiq ... Finished

Checking Reply by email ...

Reply by email is disabled in config/gitlab.yml

Checking Reply by email ... Finished

Checking LDAP ...

LDAP is disabled in config/gitlab.yml

Checking LDAP ... Finished

Checking GitLab ...

Git configured with autocrlf=input? ... yes
Database config exists? ... yes
Database is SQLite ... no
All migrations up? ... yes
Database contains orphaned GroupMembers? ... no
GitLab config exists? ... yes
GitLab config outdated? ... no
Log directory writable? ... yes
Tmp directory writable? ... yes
Uploads directory setup correctly? ... skipped (no tmp uploads folder yet)
Init script exists? ... yes
Init script up-to-date? ... yes
projects have namespace: ... can't check, you have no projects
Redis version >= 2.4.0? ... yes
Ruby version >= 2.1.0 ? ... yes (2.1.6)
Your git bin path is "/usr/local/bin/git"
Git version >= 1.7.10 ? ... yes (2.6.1)
Active users: 1

Checking GitLab ... Finished

Installation fails: nokogiri / libiconv

Thanks so much for putting this together. Using the fully released/GM of 10.10 here with Server 4.

I too get the error around nokogiri. Can do these:

brew install libxml2 libxslt
brew link libxml2 libxslt

However, I had to add --force to the link command as they're keg-only:

Warning: libxml2 is keg-only and must be linked with --force
Note that doing so can interfere with building software.
Warning: libxslt is keg-only and must be linked with --force
Note that doing so can interfere with building software.
devXserve:~ binnjadmin$ brew link --force libxml2 libxslt
Linking /usr/local/Cellar/libxml2/2.9.1... 16 symlinks created
Linking /usr/local/Cellar/libxslt/1.1.28... 22 symlinks created

A minor note that most people will catch is that continuation/breaks are needed here, i.e.:

  sudo bundle install --deployment --without development test mysql aws -- \
    --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib \
    --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include  

But even so, after installing libiconv from source (worked), I get this chunk of error still. It's as though the --with-iconv-lib parameters aren't making it through to the bundler?

devXserve:libiconv-1.13.1 binnjadmin$ sudo bundle install --deployment --without development test mysql aws -- --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include 
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on
this machine.
Fetching source index from https://rubygems.org/
Using rake 10.3.2
Using RedCloth 4.2.9
Using ace-rails-ap 2.0.1
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.3.5
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.1
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.1
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.1
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.1.1
Using activemodel 4.1.1
Using arel 5.0.1.20140414130214
Using activerecord 4.1.1
Using bundler 1.7.4
Using thor 0.19.1
Using railties 4.1.1
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.1.3
Using rails 4.1.1
Using acts-as-taggable-on 2.4.1
Using asciidoctor 0.1.4
Using descendants_tracker 0.0.3
Using ice_nine 0.10.0
Using axiom-types 0.0.5
Using bcrypt 3.1.7
Using sass 3.2.19
Using bootstrap-sass 3.0.3.0
Using carrierwave 0.9.0
Using timers 1.1.0
Using celluloid 0.15.2
Using charlock_holmes 0.7.2
Using coercible 1.0.0
Using coffee-script-source 1.6.3
Using execjs 2.0.2
Using coffee-script 2.2.0
Using coffee-rails 4.0.1
Using colored 1.2
Using connection_pool 1.2.0
Using creole 0.3.8
Using d3_rails 3.1.10
Using default_value_for 3.0.0
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.2.4
Using devise-async 0.9.0
Using diff-lcs 1.2.5
Using diffy 3.0.3
Using dotenv 0.9.0
Using dropzonejs-rails 0.4.14
Using emoji 1.0.1
Using enumerize 0.7.0
Using equalizer 0.0.8
Using escape_utils 0.2.4
Using eventmachine 1.0.3
Using excon 0.32.1
Using expression_parser 0.9.0
Using multipart-post 1.2.0
Using faraday 0.8.9
Using faraday_middleware 0.9.0
Using formatador 0.2.4
Using net-ssh 2.8.0
Using net-scp 1.1.2
Using fog-core 1.21.1
Using fog-json 1.0.0
Using fog-brightbox 0.0.1
Using mini_portile 0.6.0
Building nokogiri using packaged libraries.

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
Building nokogiri using packaged libraries.
-----
libiconv is missing.  please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.
-----
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --help
    --clean
    --use-system-libraries
    --enable-static
    --disable-static
    --with-zlib-dir
    --without-zlib-dir
    --with-zlib-include
    --without-zlib-include=${zlib-dir}/include
    --with-zlib-lib
    --without-zlib-lib=${zlib-dir}/lib
    --enable-cross-build
    --disable-cross-build


Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.2.1 for inspection.
Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.2.1/ext/nokogiri/gem_make.out
An error occurred while installing nokogiri (1.6.2.1), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.6.2.1'` succeeds before bundling.

Would be very grateful for any suggestions you might have here. Thanks!

./scc

Issues with GitLab 6.x after upgrading to Mac OS X 10.10.5

I recently upgraded from 10.8 to 10.10 and it hosed our entire GitLab setup on our Mac Mini Server. I walked back through the GitLab 6.x guide and managed to get everything setup again under 10.10. After stumbling through various issues, I got it to were it says GitLab is running.

However, when I try and pull it up in the browser, I get a 502 Proxy Error:

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /.

Reason: Error reading from remote server

When I run the command:

sudo -u git /Users/git/gitlab-shell/bin/check

It returns:

Check GitLab API access: FAILED. code: 302

Anyone have any ideas as to what might be causing this?

Initialize Database and Activate Advanced Features

I've followed the installation procedure at each step exactly as suggested to the best of my knowledge. I however land in problems at the "Initialize Database and Activate Advanced Features" stage.

Executing : bundle exec rake gitlab:setup RAILS_ENV=production, I get the following error message, which looks like a permission issue for creating a postgresql database. However, I passed the sudo -u git -H psql -d gitlabhq_production step fine and the postgresql prompt opened up with gitlabhq_production. What might be going wrong here?

PS : Apologies for any missing info. I've been stuck with getting the installation working for over 6 hours now its starting to get really frustrating. ๐Ÿ˜ž Please comment below with any more info that might help better analyse the situation.

PG::InsufficientPrivilege: ERROR:  permission denied to create database
: CREATE DATABASE "gitlabhq_production" ENCODING = 'unicode'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `async_exec'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:155:in `block in execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract_adapter.rb:478:in `log'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:154:in `execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:78:in `create_database'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/postgresql_database_tasks.rb:15:in `create'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:93:in `create'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:107:in `block in create_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:276:in `block in each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:106:in `create_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:17:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:201:in `block in invoke_prerequisites'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:199:in `invoke_prerequisites'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:178:in `block in invoke_with_call_chain'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:142:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:17:in `setup_db'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:240:in `block in execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:235:in `execute'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:179:in `block in invoke_with_call_chain'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/2.3.0/monitor.rb:214:in `mon_synchronize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:172:in `invoke_with_call_chain'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/task.rb:165:in `invoke'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:150:in `invoke_task'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:106:in `block in top_level'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:100:in `top_level'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:78:in `block in run'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:176:in `standard_exception_handling'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/lib/rake/application.rb:75:in `run'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rake-10.5.0/bin/rake:33:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:23:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/bin/rake:23:in `<top (required)>'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/Users/git/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"gitlabhq_production", "pool"=>10, "username"=>"git"}
-- enable_extension("plpgsql")
rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  database "gitlabhq_production" does not exist
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:661:in `rescue in connect'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:87:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:648:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:664:in `block in method_missing'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `block in say_with_time'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `say_with_time'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:654:in `method_missing'
/Users/git/gitlab/db/schema.rb:17:in `block in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:41:in `instance_eval'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:41:in `define'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:61:in `define'
/Users/git/gitlab/db/schema.rb:14:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:219:in `load_schema_for'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:236:in `block in load_schema_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:276:in `block in each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:235:in `load_schema_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:247:in `block (3 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:251:in `block (3 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:142:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:17:in `setup_db'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
PG::ConnectionBad: FATAL:  database "gitlabhq_production" does not exist
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `connect'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:242:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/postgresql_adapter.rb:44:in `postgresql_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:113:in `retrieve_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_handling.rb:87:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:648:in `connection'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:664:in `block in method_missing'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `block in say_with_time'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:634:in `say_with_time'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/migration.rb:654:in `method_missing'
/Users/git/gitlab/db/schema.rb:17:in `block in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:41:in `instance_eval'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:41:in `define'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/schema.rb:61:in `define'
/Users/git/gitlab/db/schema.rb:14:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `block in load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:240:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.7.1/lib/active_support/dependencies.rb:268:in `load'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:219:in `load_schema_for'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:236:in `block in load_schema_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:276:in `block in each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:275:in `each_current_configuration'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/tasks/database_tasks.rb:235:in `load_schema_current'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:247:in `block (3 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:251:in `block (3 levels) in <top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/railties/databases.rake:142:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:17:in `setup_db'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `load'
/Users/git/.rbenv/versions/2.3.1/bin/bundle:23:in `<main>'
Tasks: TOP => db:schema:load
(See full trace by running task with --trace)

Checking Installation Errors - GitLab Shell

Getting the following error when i run sudo -u git /Users/git/gitlab-shell/bin/check:

Check GitLab API Access: Failed. code 404

My guess is the fact that I don't have a 'domain' set as i was just going to run this off of localhost. not sure how to fix the problem. how do i handle the domain aspect if i'm just running this from a local server on the network?

Homebrew formula

Would it be possible to create a homebrew formula for installing GitLAb?

can not connect via ssh

Thank you very much for writing this for us!
I think i almost there except the ssh connection. After doing step 1-7, I can browse the gitlab website via http. And I have a nginx running on the system already, So I just simply poxy_pass the request to port 8080 :
server { listen 80; server_name git.domain; location / { proxy_pass http://127.0.0.1:8080; } }
I didn't configure ssl yet. The http requests seem be handled well by the nginx and gitlab. However, When I try to test it by create ( success )and clone a repository from it, I got some errors and can not clone the repository.

I have tried to use ssh to connect the git account, and failed(Already add public key to git account's authorized_keys -- connection closed by 192.168......)

I'm not very familiar with os x account settings, Is there something additional steps i should have done?(Since your tutorial do not give a password to git, I didn't set a password to it either.)

These are the error info I got:

(test in localhost)

git clone [email protected]:***/ex.git

The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
ECDSA key fingerprint is SHA256:..................

Are you sure you want to continue connecting (yes/no)?yes
Warning: Permanently added '127.0.0.1' (ECDSA) to the list of known hosts.
Connection closed by 127.0.0.1
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.

(test in remote)

git clone git@domain:***/ex.git
**Cloning into 'ex'...
Connection closed by *****
fatal: Could not read from remote repository.

Please make sure you have the correct access rights

Do you have some ideas about this? Thank you very much in advance!

Can't install pg

Hey there โ˜บ๏ธ

me and my colleague can't install GitLab 7.1 with PostgreSQL on a clean Mac OS X 10.9.4 (installed as an VM). After running the command 'sudo bundle install --deployment --without development test mysql aws' we always get the following error message:

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb 
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --with-pg
    --without-pg
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/
    --with-pg-config
    --without-pg-config
    --with-pg_config
    --without-pg_config
    --with-pqlib
    --without-pqlib
    --with-libpqlib
    --without-libpqlib
    --with-ms/libpqlib
    --without-ms/libpqlib


Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/pg-0.15.1 for inspection.
Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/pg-0.15.1/ext/gem_make.out
An error occurred while installing pg (0.15.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.15.1'` succeeds before bundling.

We also tried this:
http://stackoverflow.com/questions/6209797/cant-find-the-postgresql-client-library-libpq

... because of googling this:
https://www.google.at/#q=mac%20Can't%20find%20the%20PostgreSQL%20client%20library%20(libpq)

But it also don't really seem to work.
Perhaps you can help us solve this Problem. ๐Ÿ‘

Thanks in Advance and sorry for my bad English
Florian Miesenberger

Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).

I did everything to step:

sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production'

and got error:

rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.9/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.9/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.9/lib/active_record/connection_handling.rb:50:in `establish_connection'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.9/lib/active_record/railtie.rb:127:in `block (2 levels) in <class:Railtie>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.9/lib/active_record/railtie.rb:116:in `block in <class:Railtie>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `instance_exec'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:30:in `run'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/initializable.rb:54:in `run_initializers'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:300:in `initialize!'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `public_send'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/railtie.rb:194:in `method_missing'
/Users/git/gitlab/config/environment.rb:5:in `<top (required)>'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `block in require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:232:in `load_dependency'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.9/lib/active_support/dependencies.rb:247:in `require'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:276:in `require_environment!'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/railties-4.1.9/lib/rails/application.rb:405:in `block in run_tasks_blocks'
Tasks: TOP => gitlab:setup => environment
(See full trace by running task with --trace)

OS: Mac OS X 10.10.2. Almost fresh.

Could anybody help me with this problem?

Configuration/redis failure, expecting redis on TCP at 6379

Ah, it now appears that somehow the sidekiq is starting redis expecting to connect via TCP on 6379 instead of the unix socket?

I confirm I stopped/restarted sidekiq to ensure the right startup via

bundle exec rake sidekiq:stop RAILS_ENV=production
bundle exec rake sidekiq:start RAILS_ENV=production

sidekiq.log

2014-10-29T23:52:13Z 51588 TID-ow0z50zfo INFO: Booting Sidekiq 2.17.0 with redis options {:url=>"unix:/tmp/redis.sock", :namespace=>"resque:gitlab"}
2014-10-29T23:52:13Z 51588 TID-ow0z50zfo INFO: Running in ruby 2.0.0p481 (2014-05-08 revision 45883) [universal.x86_64-darwin14]
2014-10-29T23:52:13Z 51588 TID-ow0z50zfo INFO: See LICENSE and the LGPL-3.0 for licensing details.
2014-10-29T23:52:13Z 51588 TID-ow0z50zfo INFO: Starting processing, hit Ctrl-C to stop

I confirm have done the "Edit file and set port 0 (instead of 6379) and uncomment:"

unixsocket /tmp/redis.sock
unixsocketperm 777

And testing the socket also works:

scc: git$ redis-cli -s /tmp/redis.sock ping
PONG

I'd like to keep the unix socket if only I could determine how why production.log is still showing:

Started GET "/" for 127.0.0.1 at 2014-10-29 19:49:28 -0400
Processing by DashboardController#show as HTML
Completed 401 Unauthorized in 1ms

Redis::CannotConnectError (Error connecting to Redis on localhost:6379 (ECONNREFUSED)):
  vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:278:in `rescue in establish_connection'
  vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:273:in `establish_connection'
  vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:69:in `connect'

dyld: lazy symbol binding failed: Symbol not found: _libiconv_open

Now i can visit my gitlab but when i create a git repo .

The following error occurred๏ผš

dyld: lazy symbol binding failed: Symbol not found: _libiconv_open
  Referenced from: /Users/git/gitlab/vendor/bundle/ruby/2.3.0/gems/rugged-0.24.0/lib/rugged/rugged.bundle
  Expected in: flat namespace

i have install libiconv by brew

I can't fixed it ๏ผš๏ผˆ

Any ideas on how to fix /etc/init.d/gitlab?

I think the issue with the startup script is related to environment variables.

Seems like there are some extra (ruby?) environment variables that need to be set up inside the LaunchDaemon plist. I can't seem to nail it down, but I wondered if you'd found a workaround yet.

Sidekiq not runing all jobs

Hi,

i've installed your background jobs but with sidekiq 3.3.0 the parameters separated with , is not working.

I've managed to find a solution by changing separating all the values to separate parameter.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>GroupName</key>
  <string>git</string>
  <key>KeepAlive</key>
  <true/>
  <key>Label</key>
  <string>gitlab.background_jobs</string>
  <key>ProgramArguments</key>
  <array>
    <string>bundle</string>
    <string>exec</string>
    <string>sidekiq</string>

    <string>-q</string>
    <string>post_receive</string>

    <string>-q</string>
    <string>mailer</string>

    <string>-q</string>
    <string>system_hook</string>

    <string>-q</string>
    <string>project_web_hook</string>

    <string>-q</string>
    <string>gitlab_shell</string>

    <string>-q</string>
    <string>common</string>

    <string>-q</string>
    <string>default</string>

    <string>-e</string>
    <string>production</string>

    <string>-P</string>
    <string>tmp/pids/sidekiq.pid</string>
  </array>
  <key>RunAtLoad</key>
  <true/>
  <key>StandardOutPath</key>
  <string>log/sidekiq.log</string>
  <key>UserName</key>
  <string>gitl</string>
  <key>WorkingDirectory</key>
  <string>/Users/gitl/gitlab/</string>
</dict>
</plist>

Help

sudo -u git /Users/git/gitlab-shell/bin/check

sudo -u git -H bash -l -c 'bundle exec rake gitlab:env:info RAILS_ENV=production'

sudo -u git -H bash -l -c 'bundle exec rake gitlab:check RAILS_ENV=production'

All of above are OK!

I want reset.

sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production'

error:

2014-10-30T10:16:08Z 93475 TID-oxnnenreo INFO: Sidekiq client with redis options {:url=>"/tmp/redis.sock", :namespace=>"resque:gitlab"}
rake aborted!
ArgumentError: invalid url
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:46:in `eval'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis/client.rb:59:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:30:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/redis-3.0.6/lib/redis.rb:30:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/redis_connection.rb:31:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/redis_connection.rb:31:in `build_client'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/redis_connection.rb:22:in `block in create'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `block in initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool/timed_stack.rb:9:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool.rb:48:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/connection_pool-1.2.0/lib/connection_pool.rb:48:in `initialize'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/redis_connection.rb:21:in `new'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/redis_connection.rb:21:in `create'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq.rb:66:in `redis'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/client.rb:150:in `raw_push'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/client.rb:50:in `push'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/client.rb:98:in `push'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/worker.rb:83:in `client_push'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/sidekiq-2.17.0/lib/sidekiq/extensions/generic_proxy.rb:19:in `method_missing'
/Users/git/gitlab/app/services/notification_service.rb:110:in `new_user'
/Users/git/gitlab/app/models/user.rb:511:in `post_create_hook'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:424:in `block in make_lambda'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:221:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:221:in `block in halting_and_conditional'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `run_callbacks'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/callbacks.rb:306:in `create_record'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/timestamp.rb:57:in `create_record'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/persistence.rb:482:in `create_or_update'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/callbacks.rb:302:in `block in create_or_update'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:113:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:166:in `block in halting'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:215:in `block in halting_and_conditional'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `call'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.1/lib/active_support/callbacks.rb:86:in `run_callbacks'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/callbacks.rb:302:in `create_or_update'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/persistence.rb:103:in `save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/validations.rb:51:in `save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/attribute_methods/dirty.rb:21:in `save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:268:in `block (2 levels) in save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:208:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:268:in `block in save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:283:in `rollback_active_record_state!'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:267:in `save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:483:in `block in save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:502:in `block (2 levels) in around_save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:150:in `block in run_actions'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:170:in `catch_exceptions'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:148:in `run_actions'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:133:in `run_callbacks'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:212:in `run_callbacks'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `block (2 levels) in perform'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `catch'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:63:in `block in perform'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:186:in `within_transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/transition_collection.rb:62:in `perform'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:502:in `block in around_save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:530:in `block in transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:208:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:529:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:501:in `around_save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/state_machine-1.2.0/lib/state_machine/integrations/active_record.rb:483:in `save'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/persistence.rb:34:in `create'
(eval):7:in `block (2 levels) in run_file'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:46:in `eval'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:46:in `block (2 levels) in run_file'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:58:in `block in open'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:57:in `open'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:57:in `open'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:36:in `block in run_file'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `block in transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:219:in `within_new_transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/connection_adapters/abstract/database_statements.rb:211:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.1/lib/active_record/transactions.rb:208:in `transaction'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:35:in `run_file'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:26:in `block in run'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:25:in `each'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu/runner.rb:25:in `run'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/seed-fu.rb:29:in `seed'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/seed-fu-2.3.1/lib/tasks/seed_fu.rake:36:in `block (2 levels) in <top (required)>'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:19:in `setup_db'
/Users/git/gitlab/lib/tasks/gitlab/setup.rake:4:in `block (2 levels) in <top (required)>'
Tasks: TOP => db:seed_fu

Issue installing Nokogiri

Attempts to install Nokogiri as part of sudo bundle install --deployment --without development test postgres aws results in the error message:

Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.1 for inspection. Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/nokogiri-1.6.1/ext/nokogiri/gem_make.out An error occurred while installing nokogiri (1.6.1), and Bundler cannot continue. Make sure thatgem install nokogiri -v '1.6.1'succeeds before bundling.

To install pg, might need to add environment variable

Your milage may vary, but for me, attempting to run sudo bundle install --deployment --without development test mysql aws failed (see below). I had to run this command: sudo env ARCHFLAGS="-arch x86_64" gem install pg -v '0.15.1', then also this (which both succeeded): sudo env ARCHFLAGS="-arch x86_64" bundle install --deployment --without development test mysql aws

So, we might want to add that blurb in the README.md? Unless there's a better way to deal with it of course.

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine.
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Using RedCloth 4.2.9
Using ace-rails-ap 2.0.1
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.3.5
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.1.9
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.9
Using rack 1.5.2
Using rack-test 0.6.3
Using actionpack 4.1.9
Using mime-types 1.25.1
Using mail 2.6.3
Using actionmailer 4.1.9
Using activemodel 4.1.9
Using arel 5.0.1.20140414130214
Using activerecord 4.1.9
Using rails-observers 0.1.2
Using activeresource 4.0.0
Using acts-as-taggable-on 3.5.0
Using addressable 2.3.5
Using asana 0.0.6
Using asciidoctor 0.1.4
Using encryptor 1.3.0
Using attr_encrypted 1.3.4
Using attr_required 1.0.0
Using execjs 2.5.2
Using autoprefixer-rails 5.1.11
Using descendants_tracker 0.0.3
Using ice_nine 0.10.0
Using axiom-types 0.0.5
Using bcrypt 3.1.7
Using sass 3.2.19
Using bootstrap-sass 3.3.4.1
Using browser 0.7.2
Using cal-heatmap-rails 0.0.1
Using carrierwave 0.9.0
Using hitimes 1.2.2
Using timers 4.0.1
Using celluloid 0.16.0
Using charlock_holmes 0.7.2
Using coercible 1.0.0
Using coffee-script-source 1.6.3
Using coffee-script 2.2.0
Using thor 0.19.1
Using railties 4.1.9
Using coffee-rails 4.0.1
Using colored 1.2
Using connection_pool 2.1.0
Using creole 0.3.8
Using d3_rails 3.5.5
Using default_value_for 3.0.0
Using orm_adapter 0.5.0
Using warden 1.2.3
Using devise 3.2.4
Using devise-async 0.9.0
Using bundler 1.10.3
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.2.4
Using rails 4.1.9
Using rotp 1.6.1
Using devise-two-factor 1.0.1
Using diff-lcs 1.2.5
Using diffy 3.0.3
Using doorkeeper 2.1.3
Using dotenv 0.9.0
Using dropzonejs-rails 0.4.14
Using enumerize 0.7.0
Using equalizer 0.0.8
Using escape_utils 0.2.4
Using eventmachine 1.0.4
Using excon 0.32.1
Using expression_parser 0.9.0
Using multipart-post 1.2.0
Using faraday 0.8.9
Using faraday_middleware 0.9.0
Using formatador 0.2.4
Using net-ssh 2.8.0
Using net-scp 1.1.2
Using fog-core 1.21.1
Using fog-json 1.0.0
Using fog-brightbox 0.0.1
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using fog 1.21.0
Using font-awesome-rails 4.2.0.0
Using foreman 0.63.0
Using rugged 0.22.2
Using gemnasium-gitlab-service 0.2.6
Using gemojione 2.0.0
Using posix-spawn 0.3.9
Using github-markup 1.3.1
Using gitlab-grit 2.7.2
Using gitlab-flowdock-git-hook 0.4.2.2
Using gitlab-grack 2.0.2
Using gitlab-linguist 3.0.1
Using gitlab_emoji 0.1.0
Using gitlab_git 7.1.13
Using gitlab_meta 7.0
Using net-ldap 0.11
Using hashie 2.1.2
Using omniauth 1.2.2
Using pyu-ruby-sasl 0.0.3.3
Using rubyntlm 0.5.0
Using gitlab_omniauth-ldap 1.2.1
Using gollum-grit_adapter 0.1.3
Using rouge 1.7.7
Using sanitize 2.1.0
Using stringex 2.5.2
Using gollum-lib 4.0.2
Using gon 5.0.1
Using multi_xml 0.5.5
Using rack-accept 0.4.5
Using rack-mount 0.8.3
Using virtus 1.0.1
Using grape 0.6.1
Using grape-entity 0.4.2
Using haml 4.0.5
Using haml-rails 0.5.3
Using httparty 0.13.3
Using mimemagic 0.3.0
Using hipchat 1.5.0
Using html-pipeline 1.11.0
Using http_parser.rb 0.5.3
Using httpauth 0.2.1
Using httpclient 2.5.3.3
Using ice_cube 0.11.1
Using jquery-atwho-rails 1.0.1
Using jquery-rails 3.1.0
Using jquery-scrollto-rails 1.4.3
Using turbolinks 2.0.0
Using jquery-turbolinks 2.0.1
Using jquery-ui-rails 4.2.1
Using jwt 0.1.13
Using kaminari 0.15.1
Using kgio 2.9.2
Using mousetrap-rails 1.4.6
Using newrelic_rpm 3.9.4.245
Using nprogress-rails 0.1.2.3
Using oauth 0.4.7
Using oauth2 0.8.1
Using sawyer 0.6.0
Using octokit 3.7.0
Using omniauth-oauth 1.0.1
Using omniauth-bitbucket 0.0.2
Using omniauth-oauth2 1.1.1
Using omniauth-github 1.1.1
Using omniauth-gitlab 1.0.0
Using omniauth-google-oauth2 0.2.5
Using omniauth-multipassword 0.4.1
Using timfel-krb5-auth 0.8.3
Using omniauth-kerberos 0.2.0
Using omniauth-shibboleth 1.1.1
Using omniauth-twitter 1.0.1
Using rubypants 0.2.0
Using org-ruby 0.9.12
with native extensions 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby extconf.rb
checking for pg_config... yes
Using config values from /usr/local/bin/pg_config
checking for libpq-fe.h... yes
checking for libpq/libpq-fs.h... yes
checking for pg_config_manual.h... yes
checking for PQconnectdb() in -lpq... no
checking for PQconnectdb() in -llibpq... no
checking for PQconnectdb() in -lms/libpq... no
Can't find the PostgreSQL client library (libpq)
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby
    --with-pg
    --without-pg
    --with-pg-dir
    --without-pg-dir
    --with-pg-include
    --without-pg-include=${pg-dir}/include
    --with-pg-lib
    --without-pg-lib=${pg-dir}/
    --with-pg-config
    --without-pg-config
    --with-pg_config
    --without-pg_config
    --with-pqlib
    --without-pqlib
    --with-libpqlib
    --without-libpqlib
    --with-ms/libpqlib
    --without-ms/libpqlib


Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/pg-0.15.1 for inspection.
Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/pg-0.15.1/ext/gem_make.out
An error occurred while installing pg (0.15.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.15.1'` succeeds before bundling.

permission denied when accsessing through Apache after setup

Hi there,
first of all many thanks for your installation guide. I have been using gitlab for about 18 months, but installation is still daunting. Now I need to setup a new server. I followed your instructions to the dot and can access the gitlab instance on 127.0.0.1:8080, but not through the front-facing Apache instance. I have no idea how to debug this and what could be wrong, so any help would be greatly appreciated.

Chris

use of rbenv causes init.d/gitlab to error bundle: command not found

The rbenv steps create bundle in the /Users/git/.rbenv/shims/bundle which is not a valid path for root inside of /etc/init.d/gitlab. See here:

msiss-MacBook-Pro:gitlab gears$ sudo /etc/init.d/gitlab start
Starting the GitLab Unicorn web server...
/etc/init.d/gitlab: line 132: bundle: command not found
Starting the GitLab Sidekiq event dispatcher...
/etc/init.d/gitlab: line 140: bundle: command not found
GitLab is not running.

I'm not sure how to address this. I would rather not make the newer homebrew Ruby be the default for the system (root).
These are my ideas:
editting /etc/init.d/gitlab and appending sudo git for bundle lines
editting /etc/init.d/gitlab and appending full path to /Users/git/.rbenv/shims for bundle and rake

Rake aborted when 'bundle exec rake gitlab:setup ...'

Dear all,

First thank you for managing this installation guide on Mac. I encountered an error when running

wabteam:gitlab dongli$ sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production'

The error is:

This will create the necessary database tables and seed the database.
You will lose any previous data stored in the database.
Do you want to continue (yes/no)? yes

gitlabhq_production already exists
-- enable_extension("plpgsql")
   -> 0.0012s
...
-- create_table("taggings", {:force=>true})
   -> 0.1548s
-- add_index("taggings", ["tag_id"], {:name=>"index_taggings_on_tag_id", :using=>:btree})
rake aborted!
undefined method `each' for nil:NilClass
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/mysql2_adapter.rb:58:in `each_hash'
/Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.3/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:440:in `block in indexes'
...

What should I do?

BTW: The redis-server needs to be ran manually.

therubyracer Install Fails

I'm getting this error when I go to bundle.

Installing therubyracer (0.12.0) 
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

    /Users/zcs/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb 
checking for main() in -lpthread... yes
checking for main() in -lobjc... yes
checking for v8.h... yes
creating Makefile

make "DESTDIR="
compiling accessor.cc
clang: warning: argument unused during compilation: '-rdynamic'
In file included from accessor.cc:1:
./rr.h:462:14: error: no type named 'AccessorGetter' in namespace 'v8'
  inline v8::AccessorGetter accessorGetter() {return &AccessorGetter;}
         ~~~~^
./rr.h:463:14: error: no type named 'AccessorSetter' in namespace 'v8'
  inline v8::AccessorSetter accessorSetter() {return RTEST(set) ? &AccessorSetter : 0;}
         ~~~~^
./rr.h:465:14: error: no type named 'NamedPropertyGetter' in namespace 'v8'
  inline v8::NamedPropertyGetter namedPropertyGetter() {return &NamedPropertyGetter;}
         ~~~~^
./rr.h:466:14: error: no type named 'NamedPropertySetter' in namespace 'v8'
  inline v8::NamedPropertySetter namedPropertySetter() {return RTEST(set) ? &NamedPropertySetter : 0;}
         ~~~~^
./rr.h:467:14: error: no type named 'NamedPropertyQuery' in namespace 'v8'
  inline v8::NamedPropertyQuery namedPropertyQuery() {return RTEST(query) ? &NamedPropertyQuery : 0;}
         ~~~~^
./rr.h:468:14: error: no type named 'NamedPropertyDeleter' in namespace 'v8'
  inline v8::NamedPropertyDeleter namedPropertyDeleter() {return RTEST(deleter) ? &NamedPropertyDeleter : 0;}
         ~~~~^
./rr.h:469:14: error: no type named 'NamedPropertyEnumerator' in namespace 'v8'
  inline v8::NamedPropertyEnumerator namedPropertyEnumerator() {return RTEST(enumerator) ? &NamedPropertyEnumerator : 0;}
         ~~~~^
./rr.h:471:14: error: no type named 'IndexedPropertyGetter' in namespace 'v8'
  inline v8::IndexedPropertyGetter indexedPropertyGetter() {return &IndexedPropertyGetter;}
         ~~~~^
./rr.h:472:14: error: no type named 'IndexedPropertySetter' in namespace 'v8'
  inline v8::IndexedPropertySetter indexedPropertySetter() {return RTEST(set) ? &IndexedPropertySetter : 0;}
         ~~~~^
./rr.h:473:14: error: no type named 'IndexedPropertyQuery' in namespace 'v8'
  inline v8::IndexedPropertyQuery indexedPropertyQuery() {return RTEST(query) ? &IndexedPropertyQuery : 0;}
         ~~~~^
./rr.h:474:14: error: no type named 'IndexedPropertyDeleter' in namespace 'v8'
  inline v8::IndexedPropertyDeleter indexedPropertyDeleter() {return RTEST(deleter) ? &IndexedPropertyDeleter : 0;}
         ~~~~^
./rr.h:475:14: error: no type named 'IndexedPropertyEnumerator' in namespace 'v8'
  inline v8::IndexedPropertyEnumerator indexedPropertyEnumerator() {return RTEST(enumerator) ? &IndexedPropertyEnumerator : 0;}
         ~~~~^
./rr.h:481:20: error: no type named 'AccessorInfo' in namespace 'v8'
    Info(const v8::AccessorInfo& info);
               ~~~~^
./rr.h:487:22: error: no type named 'AccessorInfo' in namespace 'v8'
    inline const v8::AccessorInfo* operator->() {return this->info;}
                 ~~~~^
./rr.h:501:15: error: no type named 'AccessorInfo' in namespace 'v8'
    const v8::AccessorInfo* info;
          ~~~~^
./rr.h:505:89: error: no type named 'AccessorInfo' in namespace 'v8'
  static v8::Handle<v8::Value> AccessorGetter(v8::Local<v8::String> property, const v8::AccessorInfo& info);
                                                                                    ~~~~^
./rr.h:506:100: error: no type named 'AccessorInfo' in namespace 'v8'
  static void AccessorSetter(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
                                                                                               ~~~~^
./rr.h:508:94: error: no type named 'AccessorInfo' in namespace 'v8'
  static v8::Handle<v8::Value> NamedPropertyGetter(v8::Local<v8::String> property, const v8::AccessorInfo& info);
                                                                                         ~~~~^
./rr.h:509:122: error: no type named 'AccessorInfo' in namespace 'v8'
  static v8::Handle<v8::Value> NamedPropertySetter(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::AccessorInfo& info);
                                                                                                                     ~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [accessor.o] Error 1


Gem files will remain installed in /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/therubyracer-0.12.0 for inspection.
Results logged to /Users/git/gitlab/vendor/bundle/ruby/2.0.0/gems/therubyracer-0.12.0/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.12.0), and Bundler cannot
continue.
Make sure that `gem install therubyracer -v '0.12.0'` succeeds before bundling.

I know v8/rubyracer are really buggy with Mavericks, but how did you get it working?

A couple of things

  1. the part:
    login: [email protected]
    password: 5iveL!fe

should be
login: root

  1. The section for background jobs should really go after making the changes to redis otherwise it continues to think it needs to read the TCP not the socket

Init script exists? ... no

I've tried asking this question on the official project but support is limited since i'm following these instructions on a mac. Having gone through this tutorial a few times, this is my last hurdle when running the config checks.

Not sure what steps to take to fix the Init script exists? ... no

when i visit my site i get a the following page:

500

We're sorry, but something went wrong.

Please contact your GitLab administrator if this problem persists.

Problem with "rake"

Hello, I am on OS X 10.10.3
I am using mysql and have followed all the steps
I am getting the following error at this step:

sudo -u git -H bash -l -c 'bundle exec rake gitlab:setup RAILS_ENV=production'

Error:

Could not find rake-10.4.2 in any of the sources
Run `bundle install` to install missing gems.

running bundle install results in this error:

Gem::FilePermissionError: You don't have write permissions for the /Users/git/gitlab/vendor/cache/ruby/2.0.0 directory.
An error occurred while installing pg (0.15.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.15.1'` succeeds before bundling.

Running it with sudo results in this error:

An error occurred while installing pg (0.15.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.15.1'` succeeds before bundling.

Running "sudo gem install pg -v '0.15.1'"

Can't find the PostgreSQL client library (libpq)
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

I have postgres installed using brew install postgres

I've even tried

sudo bundle install --path vendor/cache

That installed many new packaged including the rake version that was needed, but I get the same error

Help!

Hello, I having a problem when running this command:

sudo bundle install --deployment --without development test mysql aws -- --with-iconv-lib=/usr/local/Cellar/libiconv/1.13.1/lib --with-iconv-include=/usr/local/Cellar/libiconv/1.13.1/include

Response:

Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will
break this application for all non-root users on this machine.
Gemfile syntax error on line 155: syntax error, unexpected tIDENTIFIER, expecting end-of-input

gem "sanitize", "~> 2.1โ€

Connecting to posgresql

Hi, the instruction for checking the database connection at:

sudo -u git -H psql -d gitlabhq_production

didn't work. I'm not sure if its my system or its wrong/mistyped. I used:

sudo psql -d gitlabhq_production -U git

bundle/gem commands should probably be run as user git

Hi,

in sect. 8, subsection "Install Gems", I would recommend running the commands gem install bundler and bundle install ... as user git. The reason is, that otherwise it seems these commands are run in root's ruby environment. That is probably different from the one of user git, though. Also, there will be some directories created (.bundle or something) that will be owned by root.
This was the cause of the installation failing for us recently. (I would send you a full error report if I had it handy, but i have not anymore, sorry.)

So, my recommendations: Change

sudo gem install bundler
sudo bundle install --deployment --without development test <mysql/postgres> aws

to

sudo -u git -H -i gem install bundler
sudo -u git -H -i bundle install --deployment --without development test <mysql/postgres> aws

Check GitLab API access: FAILED. code: 404

GitLab user. git by default

user: git

Url to gitlab instance. Used for api calls. Should end with a slash.

gitlab_url: "http://localhost/"

http_settings:

user: someone

password: somepass

ca_file: /etc/ssl/cert.pem

ca_path: /etc/pki/tls/certs

self_signed_cert: false

Repositories path

Give the canonicalized absolute pathname,

REPOS_PATH MUST NOT CONTAIN ANY SYMLINK!!!

Check twice that none of the components is a symlink, including "/home".

repos_path: "/Users/git/repositories"

File used as authorized_keys for gitlab user

auth_file: "/Users/git/.ssh/authorized_keys"

Redis settings used for pushing commit notices to gitlab

redis:
bin: /usr/local/bin/redis-cli
host: 127.0.0.1
port: 6379

socket: /tmp/redis.socket # Only define this if you want to use sockets

namespace: resque:gitlab

Log file.:q!:

Default is gitlab-shell.log in the root directory.

log_file: "/Users/git/gitlab-shell/gitlab-shell.log"

Log level. INFO by default

log_level: INFO

Audit usernames.

Set to true to see real usernames in the logs instead of key ids, which is easier to follow, but

incurs an extra API call on every gitlab-shell command.

audit_usernames: false

Error adding listener, 'Invalid argument' socket issue starting Unicorn & gitlab http server

I followed the OSX installation instructions on my OSX server 10.8.
Thanks for such thorough instructions, unfortunately I've fallen at the final hurdle, getting it all running.

Unicorn & the gitlab http server won't start.
Giveing the following error (full error logs below):

F, [2015-11-09T11:31:55.464083 #75537] FATAL -- : error adding listener addr=/Users/git/gitlab/tmp/sockets/gitlab.socket
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/socket_helper.rb:158:in `initialize': Invalid argument - connect(2) for /Users/git/gitlab/tmp/sockets/gitlab.socket (Errno::EINVAL)

Errno::EINVAL according to the ruby docs for socket

Errno::EINVAL - the address length used for the sockaddr is not a valid length for the address family or there is an invalid family in sockaddr

I've checked permissions on the sockets dir, infact there are two sockets in there so they're being created.
I tried skipping the init script incase there was something funky going on, I ran unicorn manually with bundle exec unicorn_rails -D -c config/unicorn.rb -E production
It gives the same issue.

Here's the port/socket config from config/unicorn.rb

listen "/Users/git/gitlab/tmp/sockets/gitlab.socket", :backlog => 1024
listen "127.0.0.1:8085", :tcp_nopush => true

=> unicorn.stderr.log

I, [2015-11-09T11:27:03.675686 #75337]  INFO -- : Refreshing Gem list
F, [2015-11-09T11:27:13.813564 #75337] FATAL -- : error adding listener addr=/Users/git/gitlab/tmp/sockets/gitlab.socket
/Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/socket_helper.rb:158:in `initialize': Invalid argument - connect(2) for /Users/git/gitlab/tmp/sockets/gitlab.socket (Errno::EINVAL)
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/socket_helper.rb:158:in `new'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/socket_helper.rb:158:in `bind_listen'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:242:in `listen'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `block in bind_new_listeners!'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `each'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:809:in `bind_new_listeners!'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:138:in `start'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/gems/unicorn-4.8.3/bin/unicorn_rails:209:in `<top (required)>'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `load'
    from /Users/git/gitlab/vendor/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `<main>'

=> gitlab-git-http-server.log

2015/11/09 11:27:14 Starting gitlab-git-http-server 0.3.0-20151106.175414
2015/11/09 11:27:14 listen unix /Users/git/gitlab/tmp/sockets/gitlab-git-http-server.socket: bind: invalid argument

users/sign_in Proxy Error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request GET /users/sign_in.

Reason: Error reading from remote server


config/unicorn.rb 30 -->60 not work~~~

I, [2014-07-15T17:54:44.833588 #936] INFO -- : worker=1 ready
E, [2014-07-15T18:08:04.009331 #659] ERROR -- : worker=0 PID:707 timeout (62s > 60s), killing
E, [2014-07-15T18:08:04.030203 #659] ERROR -- : reaped #<Process::Status: pid 707 SIGKILL (signal 9)> worker=0
I, [2014-07-15T18:08:04.036174 #1754] INFO -- : worker=0 ready

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.