Do not edit nginx.conf directly but edit /etc/gitlab/gitlab.rb as
shown in https://gitlab.com/gitlab-org/omnibus-gitlab/tree/master#configuration

On Fri, Jun 27, 2014 at 12:16 AM, Matt Kidd <[email protected]> wrote:
> Hi,
>
> I'm tried to install GitLab 7 on our Oracle Linux Server using the Omnibus
> installer found on the Downloads page. The installation appeared to go fine
> as I did not find an instance of "ERROR" in the installation log that I
> copied from the terminal window. After a little confusion I ran the chef
> recipe (first time using anything like puppet or chef) with the command sudo
> gitlab-ctl reconfigure and everything again appears to have downloaded
> correctly.
>
> Running sudo gitlab-ctl status gives the following result:
>
> run: nginx: (pid 25360) 0s; run: log: (pid 22033) 18719s
> run: postgresql: (pid 19967) 2617s; run: log: (pid 21942) 18743s
> run: redis: (pid 19969) 2617s; run: log: (pid 21871) 18749s
> run: sidekiq: (pid 19979) 2616s; run: log: (pid 22022) 18721s
> run: unicorn: (pid 25339) 12s; run: log: (pid 22000) 18727s
>
> So I'm thinking the installer works correctly. I attempted to navigate to
> the nginx default page after editing the nginx.conf file in
> /opt/gitlab/embedded/conf and edited the following (commented out code
> removed):
>
>     server {
>         listen       81;
>         server_name  localhost;
>         location / {
>             root   html;
>             index  index.html index.htm;
>         }
>         error_page   500 502 503 504  /50x.html;
>         location = /50x.html {
>             root   html;
>         }
>     }
>
> So the idea would be that on localhost:81 the default nginx page would
> appear. I'm putting localhost here but from my workstation it would be the
> ip address for now.
>
> I was unable to navigate to the site. I tried changing the gitlab.rb file
> located in /etc/gitlab and then reconfigured. There was still no response.
>
> A little more digging I found that if I ran bundle exec rake gitlab:check
> RAILS_ENV=production it should tell me where I possibly made a mistake. I
> had to change the command to reference the ombnibus installed ruby as ruby
> is not installed on this server. Even then the only response I got was
> 'Gemfile not found'.
>
> Caveat to all this is that this is on a hosted cloud server and I had to ask
> for sudo permission just to install any of this so permissions being a
> problem is possible and should not be ruled out.
>
> And I did run the 'sudo lokkit -s http -s ssh' command but I'm not sure if
> it did anything.
>
> Ultimately I intend to have Tomcat at as a proxy on this server for Nginx so
> the exposed url for internal developers will be http://localhost/gitlab/.
>
>
> Thoughts?
>
> Matt
>
> --
> 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/5c89d65d-8dce-4ff5-bc16-dd8b6c86ef17%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
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/CAEG31mOaPkqx%2B6RfwthqXGi7Wd%3DwHx%2BL0HAr8XRs1mB9aBjNjQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to