unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* Re: Unicorn could not find log file
  2017-02-05  8:21  7% Unicorn could not find log file Aashish Kiran
@ 2017-02-05  8:37  0% ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2017-02-05  8:37 UTC (permalink / raw)
  To: Aashish Kiran; +Cc: unicorn-public

Aashish Kiran <aashish.kiran@gmail.com> wrote:
> Hi,
> I facing the following error, inspite of creating
> ~/apps/voice_rules/shared/log/unicorn.stderr.log.
> Can you help.
> 
> 
> $ bundle exec unicorn -c config/unicorn.rb
> 
> /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
> `initialize': No such file or directory @ rb_sysopen -
> ~/apps/voice_rules/shared/log/unicorn.stderr.log (Errno::ENOENT)

I guess you have the literal "~/" in your config/unicorn.rb?

Instead of the "~/", you should probably have the value of
the HOME environment variable.

In other words, use:

  stderr_path "#{ENV['HOME']}/apps/voice_rules/shared/log/unicorn.stderr.log"

Not this:

  stderr_path "~/apps/voice_rules/shared/log/unicorn.stderr.log"


The "~/" is only evaluated to be the value of ENV['HOME']
by your shell (probably bash if you use a GNU/Linux system).
Most other tools (like unicorn) will interpret '~/' literally.

^ permalink raw reply	[relevance 0%]

* Unicorn could not find log file
@ 2017-02-05  8:21  7% Aashish Kiran
  2017-02-05  8:37  0% ` Eric Wong
  0 siblings, 1 reply; 4+ results
From: Aashish Kiran @ 2017-02-05  8:21 UTC (permalink / raw)
  To: unicorn-public

Hi,
I facing the following error, inspite of creating
~/apps/voice_rules/shared/log/unicorn.stderr.log.
Can you help.


$ bundle exec unicorn -c config/unicorn.rb

/home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
`initialize': No such file or directory @ rb_sysopen -
~/apps/voice_rules/shared/log/unicorn.stderr.log (Errno::ENOENT)
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
`open'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:762:in
`redirect_io'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:164:in
`stderr_path='
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/configurator.rb:108:in
`block in commit!'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/configurator.rb:105:in
`each'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/configurator.rb:105:in
`commit!'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/lib/unicorn/http_server.rb:102:in
`initialize'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/bin/unicorn:126:in
`new'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/gems/unicorn-5.2.0/bin/unicorn:126:in
`<top (required)>'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/bin/unicorn:23:in
`load'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/bin/unicorn:23:in
`<main>'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/bin/ruby_executable_hooks:15:in
`eval'
    from /home/chittimilla/.rvm/gems/ruby-2.2.3@voice_rules/bin/ruby_executable_hooks:15:in
`<main>'

thanks,
Aashish Kiran

^ permalink raw reply	[relevance 7%]

* Build error of 5.1.0 due to RString
@ 2016-11-07 17:13  3% Olivier FAURAX
  0 siblings, 0 replies; 4+ results
From: Olivier FAURAX @ 2016-11-07 17:13 UTC (permalink / raw)
  To: unicorn-public

Hello,

I'm new to Ruby & Unicorn, and I get a build error trying to compile 
unicorn 5.1.0.

It is about a RString that has not some members, so perhaps an API has 
been modified somewhere.
I tried with unicorn 5.2.0, and I get the same error.

Thanks in advance
Olivier

$ uname -a
Linux git.example.com 3.16.0-76-generic #98~14.04.1-Ubuntu SMP Fri Jun 
24 17:04:54 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

$ ruby --version
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-linux]

$ gem install unicorn -v '5.1.0' -i vendor/bundle/ruby/2.1.0 --verbose
GET https://api.rubygems.org/specs.4.8.gz
200 OK
HEAD https://api.rubygems.org/api/v1/dependencies
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=unicorn
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=raindrops
200 OK
GET https://api.rubygems.org/api/v1/dependencies?gems=kgio
200 OK
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/.CHANGELOG.old
...
[long list of unicorn-5.1.0 files]
...
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0/unicorn.gemspec
Building native extensions.  This could take a while...
/opt/bitnami/ruby/bin/ruby extconf.rb
checking for SIZEOF_OFF_T in ruby.h... yes
checking for SIZEOF_SIZE_T in ruby.h... yes
checking for SIZEOF_LONG in ruby.h... yes
checking for rb_str_set_len() in ruby.h... no
checking for rb_hash_clear() in ruby.h... no
checking for gmtime_r() in time.h... yes
creating Makefile
make "DESTDIR=" clean
make "DESTDIR="
compiling httpdate.c
compiling unicorn_http.c
In file included from unicorn_http.rl:8:0:
ext_help.h: In function ‘rb_18_str_set_len’:
ext_help.h:18:15: error: ‘struct RString’ has no member named ‘len’
    RSTRING(str)->len = len;
                ^
ext_help.h:19:15: error: ‘struct RString’ has no member named ‘ptr’
    RSTRING(str)->ptr[len] = '\0';
                ^
make: *** [unicorn_http.o] Error 1
ERROR:  Error installing unicorn:
         ERROR: Failed to build gem native extension.

     Building has failed. See above output for more information on the 
failure.
make failed, exit code 2

Gem files will remain installed in 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/gems/unicorn-5.1.0 
for inspection.
Results logged to 
/opt/bitnami/apps/gitlab/htdocs/vendor/bundle/ruby/2.1.0/extensions/x86_64-linux/2.1.0-static/unicorn-5.1.0/gem_make.out

^ permalink raw reply	[relevance 3%]

* [ANN] unicorn 5.2.0 - Rack HTTP server for fast clients and *nix
       [not found]     <20161031-unicorn-5.2.0-released@bogomips.org>
@ 2016-10-31 20:04  4% ` Eric Wong
  0 siblings, 0 replies; 4+ results
From: Eric Wong @ 2016-10-31 20:04 UTC (permalink / raw)
  To: ruby-talk, unicorn-public; +Cc: Mishael A Sibiryakov

unicorn is an HTTP server for Rack applications designed to only serve
fast clients on low-latency, high-bandwidth connections and take
advantage of features in Unix/Unix-like kernels.  Slow clients should
only be served by placing a reverse proxy capable of fully buffering
both the the request and response in between unicorn and slow clients.

* https://bogomips.org/unicorn/
* public list: unicorn-public@bogomips.org
* mail archives: https://bogomips.org/unicorn-public/
* git clone git://bogomips.org/unicorn.git
* https://bogomips.org/unicorn/NEWS.atom.xml
* nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn

Changes:

    Most notably, this release allows us to support requests with
    lines delimited by LF-only, as opposed to the standard CRLF
    pair and allowed by RFC 2616 sec 19.3.

    Thanks to Mishael A Sibiryakov for the explanation and change:

      https://bogomips.org/unicorn-public/1476954332.1736.156.camel@junki.org/

    Thanks to Let's Encrypt, the website also moves to HTTPS
    <https://bogomips.org/unicorn/> to improve reader privacy.  The
    "unicorn.bogomips.org" subdomain will be retired soon to reduce
    subjectAltName bloat and speed up certificate renewals.

    There's also the usual round of documentation and example
    updates, too.

    Eric Wong (7):
          examples/init.sh: update to reduce upgrade raciness
          doc: systemd should only kill master in example
          examples/logrotate.conf: update example for systemd
          doc: update gmane URLs to point to our own archives
          relocate website to https://bogomips.org/unicorn/
          TODO: remove Rack 2.x item
          build: "install-gem" target avoids network

    Mishael A Sibiryakov (1):
          Add some tolerance (RFC2616 sec. 19.3)

^ permalink raw reply	[relevance 4%]

Results 1-4 of 4 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
     [not found]     <20161031-unicorn-5.2.0-released@bogomips.org>
2016-10-31 20:04  4% ` [ANN] unicorn 5.2.0 - Rack HTTP server for fast clients and *nix Eric Wong
2016-11-07 17:13  3% Build error of 5.1.0 due to RString Olivier FAURAX
2017-02-05  8:21  7% Unicorn could not find log file Aashish Kiran
2017-02-05  8:37  0% ` Eric Wong

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

	https://yhbt.net/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).