unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: huet bartels <hbartels@i-neda.com>
To: mongrel-unicorn@rubyforge.org
Subject: Sysadmin Setup question for Unicorn
Date: Tue, 03 Nov 2009 12:19:07 +0000	[thread overview]
Message-ID: <1257250747.10247.135.camel@hbartels-laptop> (raw)

Dear List,

I am very new to ruby and this list.

I am trying to setup unicorn to run on ubuntu 8.10.  When I try to run
unicorn I am getting the following error.

with the following command I get the following error.  Is this because I
dont have a ruby rails app installed yet?

unicorn@install01:/app/unicorn/config$ unicorn_rails -c config.ru 
I, [2009-11-03T13:05:47.609036 #30824]  INFO -- : unlinking existing
socket=/app/unicorn/tmp/sockets/unicorn.sock
I, [2009-11-03T13:05:47.609458 #30824]  INFO -- : listening on
addr=/app/unicorn/tmp/sockets/unicorn.sock fd=3
I, [2009-11-03T13:05:47.609541 #30824]  INFO -- : Refreshing Gem list
/app/ruby/bin/unicorn_rails must be run inside RAILS_ROOT: #<LoadError:
no such file to load -- config/boot>



The other error i get is when I run unicorn with the command line.

unicorn@install01:/app/unicorn/config$ unicorn -c config.ru
{:daemonize=>false,
 :unicorn_options=>
  {:listeners=>[], :config_file=>"/app/unicorn/config/config.ru"},
 :app=>

#<Proc:0xb7bf2a68@/app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/bin/unicorn:123>}
I, [2009-11-03T13:03:53.555204 #30820]  INFO -- : unlinking existing
socket=/app/unicorn/tmp/sockets/unicorn.sock
I, [2009-11-03T13:03:53.555538 #30820]  INFO -- : listening on
addr=/app/unicorn/tmp/sockets/unicorn.sock fd=3
I, [2009-11-03T13:03:53.555596 #30820]  INFO -- : Refreshing Gem list
Exception `NoMethodError' at config.ru:6 - undefined method
`worker_processes' for #<Rack::Builder:0xb7a107b8 @ins=[]>
Exception `NoMethodError'
at /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/bin/unicorn:130 - undefined method `worker_processes' for #<Rack::Builder:0xb7a107b8 @ins=[]>
config.ru:6: undefined method `worker_processes' for
#<Rack::Builder:0xb7a107b8 @ins=[]> (NoMethodError)

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `instance_eval'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/builder.rb:29:in `initialize'
	from config.ru:1:in `new'
	from config.ru:1

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/lib/unicorn.rb:697:in `eval'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/bin/unicorn:130

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/lib/unicorn.rb:697:in `call'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/lib/unicorn.rb:697:in `build_app!'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/lib/unicorn.rb:170:in `start'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/lib/unicorn.rb:20:in `run'

from /app/ruby.1.8.7-p174/lib/ruby/gems/1.8/gems/unicorn-0.93.4/bin/unicorn:165
	from /app/ruby/bin/unicorn:19:in `load'
	from /app/ruby/bin/unicorn:19
unicorn@install01:/app/unicorn/config$ 

Now is this error generanted because it requires a rails envoiroment.

I am happy to be pointed to a website that will help me learn what is
required if such a thing exists.

thank you for your time

regards

Huet Bartels

             reply	other threads:[~2009-11-03 12:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-03 12:19 huet bartels [this message]
2009-11-03 17:07 ` Sysadmin Setup question for Unicorn Eric Wong
2009-11-03 17:13 ` Chris Wanstrath

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=1257250747.10247.135.camel@hbartels-laptop \
    --to=hbartels@i-neda.com \
    --cc=mongrel-unicorn@rubyforge.org \
    /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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).