unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <e@80x24.org>
To: Onno van der Straaten <onno.van.der.straaten@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Unicorn not working in GitLab 7.3
Date: Tue, 7 Oct 2014 05:08:48 +0000	[thread overview]
Message-ID: <20141007050848.GA338@dcvr.yhbt.net> (raw)
In-Reply-To: <CADKMi6KJ84Ck53tFXUzHz38VfW0RnnL4cbdGndZOQkuBU3T8-Q@mail.gmail.com>

Onno van der Straaten <onno.van.der.straaten@gmail.com> wrote:
> On Mon, Oct 6, 2014 at 5:04 PM, Onno van der Straaten wrote:

(Top-posting corrected.  Please do not send HTML email as it ends up
 marked as spam.  You would've gotten a response much earlier if you
 sent as plain text)

> > Hi,
> > I am using unicorn in GitLab 7.3. I found that unicorn will not serve
> > javascript files. There is no response. Other files such as css files work
> > fine.
> >
> > I have created an issue at the GitLab site as unicorn is part of his
> > product. For your information
> > https://github.com/gitlabhq/gitlabhq/issues/7973

This doesn't seems to be a configuration error or a bug in GitLab.
unicorn itself does not serve files, but just returns what Rack tells
it to do.

But since you're getting 60s timeouts, something seems seriously wrong
with that config; but at least you're on Linux so maybe strace can
help...

> This is unicorn 4.6.3 btw. On the other machine it is the same
> version 4.6.3. So maybe this issue is releated to using unicorn on CentOS.

Can you try:

1) configuring only single worker process
2) strace that worker process (strace -p $PID_OF_WORKER)
3) send only one request for a JS file to see what's happening?


In any case, if this GitLab instance is meant for any slow/unreliable
client connections outside your LAN, nginx should be serving static
files.  unicorn is grossly inefficient for that (as explained on our
website):

  http://unicorn.bogomips.org/PHILOSOPHY.html

      reply	other threads:[~2014-10-07  5:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-06 15:04 Onno van der Straaten
2014-10-06 15:07 ` Onno van der Straaten
2014-10-07  5:08   ` Eric Wong [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141007050848.GA338@dcvr.yhbt.net \
    --to=e@80x24.org \
    --cc=onno.van.der.straaten@gmail.com \
    --cc=unicorn-public@bogomips.org \
    --subject='Re: Unicorn not working in GitLab 7.3' \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:

	../../unicorn.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).