Displaying 20 results from an estimated 21 matches for "unicorn_rails".
2010 Jun 04
8
unicorn_rails cleanup (possible fix for Rails3) pushed
Hi all,
I''ve pushed the following patch out go git://git.bogomips.org/unicorn
along with a few other Rails-related test updates. This is more of a
shotgun fix (but less code is better :) since I haven''t been able to
reproduce the brokeness people have been seeing with "unicorn_rails"
and Rails 3 betas.
Even though "unicorn" works perfectly well for Rails3, some folks will
inevitably run "unicorn_rails" because of the "rails" in its name.
If I were to do it all over again, I would''ve just made everybody write
config.ru files for Rai...
2010 Feb 18
4
Rails 3 "RAILS_ENV not defined by config/boot" error
I''m running unicorn and unicorn-rails 0.96.1 and the latest Rails 3
beta gem. ?Firing up unicorn_rails spews "RAILS_ENV not defined by
config/boot". ?I know this is likely a result of RAILS_ROOT being
deprecated?in Rails 3 but I can''t seem to config my way around it.
I''m sure other people must have run into this before. ?Is there a
quick fix?
Thanks
2012 Dec 05
3
Fwd: Issue starting unicorn with non-ActiveRecord Rails app
...ed/bundle/ruby/1.9.1/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:491:in
`spawn_missing_workers''
/var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:141:in
`start''
/var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/gems/unicorn-4.4.0/bin/unicorn_rails:209:in
`<top (required)>''
/var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/bin/unicorn_rails:23:in `load''
/var/www/webapps/fugu-cp/shared/bundle/ruby/1.9.1/bin/unicorn_rails:23:in
`<main>''
This repeats until I kill Unicorn.
If you''re curious, the w...
2011 Jul 23
3
Problems running unicorn_rails without bundle exec (in a RVM context)
Hello,
I cannot run unicorn_rails out without using bundle exec . This is the error:
/home/user/.rvm/gems/ruby-1.9.2-p180/gems/bundler-1.0.15/lib/bundler/runtime.rb:31:in
`block in setup'': You have already activated rack 1.3.1, but your
Gemfile requires rack 1.2.3. Consider using bundle exec.
(Gem::LoadError)
Maybe RVM i...
2010 May 28
4
unicorn failing to start
Hi,
i''m trying to start up unicorn_rails with a rails 3 beta3 project. All I
can get out of it is this:
I, [2010-05-28T08:54:45.770957 #17852] INFO -- : reaped
#<Process::Status: pid 17854 exit 1> worker=0
I, [2010-05-28T08:54:45.771200 #17852] INFO -- : worker=0 spawning...
I, [2010-05-28T08:54:45.774049 #17858] INFO -- : worker...
2010 Sep 07
1
unicorn_rails and rails 2.3.8
...ctly. I have rails 2.3.8 and dependencies installed. I am sure it is something simple.... See output below.
Much thanks!
Matt
config/environment.rb
...
RAILS_GEM_VERSION = ''2.3.8'' unless defined? RAILS_GEM_VERSION
...
ruby-1.9.2-p0 repositories/rails_apps/fat_free_crm[master]% unicorn_rails
I, [2010-09-07T12:20:54.342354 #9085] INFO -- : reaped #<Process::Status: pid 9087 exit 1> worker=0
I, [2010-09-07T12:20:54.343368 #9085] INFO -- : worker=0 spawning...
I, [2010-09-07T12:20:54.348304 #9088] INFO -- : worker=0 spawned pid=9088
I, [2010-09-07T12:20:54.349106 #9088] INFO --...
2012 Feb 17
2
Bug in unicorn_rails when Encoding.default_internal is set
Hi,
We recently made the switch to 1.9 for our large rails 2.3.14 project
and ran into some strange behavior from the unicorns where encoding
problem would cause blank 500 pages to be "randomly" served to users
(we run ~10 x 5 unicorn workers behind our load balancer). We found
that unicorn workers were dying when someone requested a url with
utf-8 in it, and died in such a way that
2011 May 19
2
unicorn doesn't restart properly after cap deploy (not using Bundler)
...ge.org/pipermail/mongrel-unicorn/2010-October/000733.html
http://rubyforge.org/pipermail/mongrel-unicorn/2010-October/000717.html
I''m not using Bundler, and I have working_directory set in my unicorn config:
Unicorn::HttpServer::START_CTX[0] =
"/opt/ruby-enterprise-1.8.7-2010.02/bin/unicorn_rails"
pid "/var/www/lookbook/shared/pids/unicorn.pid"
stderr_path "/var/www/lookbook/shared/log/unicorn.stderr.log"
stdout_path "/var/www/lookbook/shared/log/unicorn.stdout.log"
preload_app true
if GC.respond_to?(:copy_on_write_friendly=)
? GC.copy_on_write_friendly =...
2009 Oct 13
7
Unicorn Nginx Issue
I''ve setup nginx with this
server {
listen 80;
server_name unicorn.local;
location / {
proxy_pass http://unicorn;
}
}
upstream unicorn {
server unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock;
}
When I run unicorn_rails -c config/unicorn.rb -E development I can
access the application just fine on unicorn.local
When I run unicorn_rails -c config/unicorn.rb -E development -D I get this issue
2009/10/13 12:34:22 [error] 1007#0: *62 connect() to
unix:/Users/user/projects/test/unicorn/tmp/sockets/unicorn.sock failed...
2012 Oct 12
3
[PATCH] explicitly use escaped minus in man pages
---
man/man1/unicorn.1 | 32 ++++++++++++++++----------------
man/man1/unicorn_rails.1 | 34 +++++++++++++++++-----------------
2 files changed, 33 insertions(+), 33 deletions(-)
diff --git a/man/man1/unicorn.1 b/man/man1/unicorn.1
index 0b496af..749272a 100644
--- a/man/man1/unicorn.1
+++ b/man/man1/unicorn.1
@@ -4,7 +4,7 @@
unicorn - a rackup-like command to launch the Unicor...
2013 Mar 20
2
Problem With Unicorn
Hello All,
I deployed my application in the local server and i''m using unicorn and
nginx. I tried to run ''bundle exec unicorn_rails'' but it is showing ''ERROR:
Gem bundler is not installed, run `gem install bundler` first.''. even if I
run gem install bundler the bundler getting installed, But it is showing
the same error again i.e. Gem bundler is not installed, run `gem install
bundler`....
2011 Sep 06
1
Workers getting broken after some time
..._missing_workers''
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:496:in
`maintain_worker_count''
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/lib/unicorn/http_server.rb:270:in
`join''
/usr/local/lib/ruby/gems/1.9.1/gems/unicorn-4.1.1/bin/unicorn_rails:209:in
`<top (required)>''
/usr/local/bin/unicorn_rails:19:in `load''
/usr/local/bin/unicorn_rails:19:in `<main>''
Application is running on rails 2.3.14/ruby 1.9.2p290 and maybe it has
something to do with plugin being used, that is template_streaming
(http...
2010 Mar 01
0
unicorn 0.97.0 - polishing and cleaning up
...ariables used in laucher scripts.
* signal handlers are initialized before the pid file is
dropped, so over-eager firing of init scripts won''t
mysteriously nuke a process.
* SIGHUP will return app to original state if an updated
config.ru fails to load due to {Syntax,Load}Error.
* unicorn_rails should be Rails 3 compatible out-of-the-box
(''unicorn'' works as always, and is recommended for Rails 3)
* unicorn_rails is finally "working_directory"-aware when
generating default temporary paths and pid file
* config.ru encoding is the application''s defa...
2013 Mar 24
5
Rails 4.0 has_many_through and fields_for
...rn/http_server.rb:632:in `worker_loop''
unicorn (4.6.2) lib/unicorn/http_server.rb:500:in `spawn_missing_workers''
unicorn (4.6.2) lib/unicorn/http_server.rb:511:in `maintain_worker_count''
unicorn (4.6.2) lib/unicorn/http_server.rb:277:in `join''
unicorn (4.6.2) bin/unicorn_rails:209:in `<top (required)>''
/home/john/.rvm/gems/ruby-2.0.0-p0@rails-4/bin/unicorn_rails:23:in `load''
/home/john/.rvm/gems/ruby-2.0.0-p0@rails-4/bin/unicorn_rails:23:in `<top (required)>''
ruby-debug-ide (0.4.17.beta16) lib/ruby-debug-ide.rb:86:in `debug_load'...
2010 Feb 14
6
Nginx Sock And Rails Envinroment Error
...nx, the site shows errors in development form.
Interestingly, when running on a port rather than a sock, if i visit that port, the errors are rendered as normal with a 500 page, the same port, throught nginx, shows errors like you do in development.
The app is rails latest (not 3), i run it with unicorn_rails -E production -c /root/pbr/current/config/unicorn.rb -D
and unicorn.rb looks like..
worker_processes (20)
preload_app(true)
Im thinking it could be a permissions problem, the rails directory is in under root, nginx runs as user nginx, but i have given chown permission the the directory?
Cheers,...
2009 Mar 23
0
OldRails Rack handler added to Unicorn
...committed support to Unicorn for old versions of Rails that didn''t
support Rack. I think it could be useful for Mongrel 2 (or any other
server) as well:
http://git.bogomips.org/cgit/unicorn.git/commit/?id=0b095ea72 [1]
or just fetch/clone git://git.bogomips.org/unicorn.git
The bin/unicorn_rails code is itself a mess, but cleaning it up is on my
ever growing TODO list along with writing automated tests for them.
It actually seems Rails 2.2.0+ could be Racked, but only 2.3+ requires
Rack. (I''ll actually try to read the changelogs at some point but the
long lines are driving me nut...
2012 Dec 07
3
Ubuntu upstart
...s
properly for the following:
* Upstart will restart if unicorn dies
* Can send USR2 signal to unicorn to do a no downtime deploys
* Able to stop upstart job, even after a deploy
I have tried the following:
expect fork
respawn
setuid www-data
chdir /var/www/app/current
exec bundle exec unicorn_rails -E production -c
/var/www/app/current/config/unicorn.rb
I also tried using the following in various combinations:
normal exit 0 QUIT USR2
post-stop exec kill `cat /var/www/app/current/tmp/pids/unicorn.pid`
Can anyone help?
Thanks
Owen
2009 Nov 05
0
unicorn 0.94.0 - small fixes and new features
...s to set things like
CPU affinity[1] on a per-worker basis before dropping
privileges. The master process retains all privileges it
started with.
The ENV["RACK_ENV"] (process-wide) environment variable is now
both read and set for `unicorn'' in the same way RAILS_ENV is
used by `unicorn_rails''. This allows the Merb launcher to read
ENV["RACK_ENV"] in config.ru. Other web servers already set
this and there may be applications or libraries that already
rely on this de facto standard.
Eric Wong (26):
cleanup: avoid redundant error checks for fstat
test_hel...
2010 Jun 02
8
Read error: #<TypeError: can't modify frozen string> raised from HttpParser
...ib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:612:in
`maintain_worker_count''
/usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:276:in `start''
/usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/lib/unicorn.rb:28:in `run''
/usr/lib/ruby/gems/1.8/gems/unicorn-0.99.0/bin/unicorn_rails:203
/usr/bin/unicorn_rails:26:in `load''
/usr/bin/unicorn_rails:26
Ruby version: ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-linux],
MBARI 0x8770, Ruby Enterprise Edition 2010.01
Any ideas? Maybe a bug in the http parser?
Thanks,
Augusto
2013 Aug 23
5
Ruby 2.0 Bad file descriptor (Errno::EBADF)
...ap''
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:745:in `inherit_listeners!''
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/lib/unicorn/http_server.rb:127:in `start''
from /hello/shared/bundle/ruby/2.0.0/gems/unicorn-4.6.3/bin/unicorn_rails:209:in `<top (required)>''
this happens all the time for my legacy rails app, but i''m not able to reproduce on a tiny new rack app. i''m wondering if this could be related:
https://github.com/puma/puma/issues/177
https://github.com/puma/puma/pull/220
any tips?
--p...