I uninstalled gitlab and started over and edited the gitlab.rb file to the following:
# Change the external_url to the address your users will type in their > browser > #external_url 'http://gitlab.example.com' > external_url 'http://255.255.255.255:81' where 255.255.255.255 is the IP address of the server I have installed gitlab. Running sudo gitlab-ctl reconfigure after this change gave me the following output for sudo gitlab-ctl show-config: Starting Chef Client, version 11.12.2 > Compiling Cookbooks... > { > "gitlab": { > "bootstrap": { > }, > "user": { > "git_user_email": "[email protected]" > }, > "redis": { > }, > "gitlab-rails": { > "secret_token": > "9asdlkjn23897489alk09q823904lkalskjdy879fy47hjl83489287a", > "gitlab_host": "255.255.255.255", > "gitlab_email_from": "[email protected]", > "gitlab_https": false, > "gitlab_port": 81 > }, > "gitlab-shell": { > }, > "unicorn": { > }, > "sidekiq": { > }, > "nginx": { > }, > "logging": { > }, > "postgresql": { > } > } > } > Converging 0 resources > Running handlers: > Running handlers complete > Chef Client finished, 0/0 resources updated in 1.772259359 seconds Now I tried navigating via a browser to the ip address but Apache2 responds when the port is removed from the url. Adding the port results in a Connection Timed out error in Chrome. I attempted to telnet from the server to itself and was able to on port 81. A GET command resulted in the following response: Trying 255.255.255.255... > Connected to 255.255.255.255. > Escape character is '^]'. > GET / > <!DOCTYPE html> > <html> > <head> > <title>GitLab is not responding (502)</title> > <link href="/static.css" media="screen" rel="stylesheet" type="text/css" > /> > </head> > <body> > <h1>502</h1> > <h3>GitLab is not responding.</h3> > <hr/> > <p>Please contact your GitLab administrator if this problem persists.</p> > </body> > </html> > Connection closed by foreign host. On whim I tailed the log and I saw this: 2014-06-27_17:06:53.00228 master failed to start, check stderr log for > details > 2014-06-27_17:06:54.01267 failed to start a new unicorn master > 2014-06-27_17:06:54.01802 starting new unicorn master > ==> /var/log/gitlab/unicorn/unicorn_stderr.log <== > I, [2014-06-27T12:06:54.914285 #27152] INFO -- : Refreshing Gem list > Instance method "lock!" is already defined in ActiveRecord::Base, use > generic helper instead or set StateMachine::Machine.ignore_method_conflicts > = true. > E, [2014-06-27T12:07:03.184199 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > E, [2014-06-27T12:07:03.184611 #27152] ERROR -- : retrying in 0.5 seconds > (4 tries left) > E, [2014-06-27T12:07:03.685240 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > E, [2014-06-27T12:07:03.685606 #27152] ERROR -- : retrying in 0.5 seconds > (3 tries left) > E, [2014-06-27T12:07:04.186256 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > E, [2014-06-27T12:07:04.186603 #27152] ERROR -- : retrying in 0.5 seconds > (2 tries left) > E, [2014-06-27T12:07:04.687036 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > E, [2014-06-27T12:07:04.687245 #27152] ERROR -- : retrying in 0.5 seconds > (1 tries left) > E, [2014-06-27T12:07:05.187725 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > E, [2014-06-27T12:07:05.187964 #27152] ERROR -- : retrying in 0.5 seconds > (0 tries left) > E, [2014-06-27T12:07:05.688336 #27152] ERROR -- : adding listener failed > addr=127.0.0.1:8080 (in use) > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in > > `initialize': Address already in use - bind(2) for "127.0.0.1" port 8080 > (Errno::EADDRINUSE) > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in > > `new' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/socket_helper.rb:147:in > > `bind_listen' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:229:in > > `listen' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in > > `block in bind_new_listeners!' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in > > `each' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:773:in > > `bind_new_listeners!' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:141:in > > `start' > from > /opt/gitlab/embedded/service/gem/ruby/2.1.0/gems/unicorn-4.6.3/bin/unicorn:126:in > > `<top (required)>' > from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in > `load' > from /opt/gitlab/embedded/service/gem/ruby/2.1.0/bin/unicorn:23:in > `<main>' So I modified the port to 8081 in the gitlab.rb file and ran reconfigure. Still unable to reach the site. What is misconfigured? -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/da5c1a89-c902-460c-9df9-d51d1ef2aa56%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
