Re: unicorn_rails cleanup (possible fix for Rails3) pushed

2010-06-08 Thread Hongli Lai
On Tue, Jun 8, 2010 at 9:20 PM, Eric Wong normalper...@yhbt.net wrote: Thanks Hongli, so this only affects people who remove the config.ru that Rails 3 creates for them?  Yikes... No. The problem even occurs if you already have config.ru. But the thing is, Rails 3 has deprecated

Re: unicorn_rails cleanup (possible fix for Rails3) pushed

2010-06-08 Thread Eric Wong
Hongli Lai hon...@phusion.nl wrote: On Tue, Jun 8, 2010 at 9:20 PM, Eric Wong normalper...@yhbt.net wrote: Thanks Hongli, so this only affects people who remove the config.ru that Rails 3 creates for them?  Yikes... No. The problem even occurs if you already have config.ru. But the thing

unicorn prerelease 0.990.0.5.gbfb1

2010-06-08 Thread Eric Wong
Hi all, I decided to try out the prerelease feature of Rubygems for the first time, it seems to work... So yes, gem install --pre unicorn if you're using Rails 3 (and probably like to type 'rm config.ru' :) Same list of changes since v0.990.0: Eric Wong (4): t0300: Rails 3 test

Re: funky process tree + stillborn masters

2010-06-08 Thread Jamie Wilkinson
On Apr 28, 2010, at 12:05 AM, Jamie Wilkinson wrote: Update from the trenches: I've traced this down to the newrelic_rpm agent I've also filed a bug with NewRelic: http://support.newrelic.com/discussions/support/2577-newrelic-agentbundler-causing-stillborn-unicorn-processes?unresolve=true

Re: Logging errors from Unicorn

2010-06-07 Thread Peter
Thanks Eric! It really helps knowing the stderr_path configuration option :) doh. I haven't yet run into the issue since, but I will have my unicorn logs ready when it does. By the way, have you ever thought about moving the unicorn mailing list to a Google group? It's much easier to interact

Re: Read error: #TypeError: can't modify frozen string raised from HttpParser

2010-06-07 Thread Eric Wong
Augusto Becciu augu...@jadedpixel.com wrote: Hi Eric, Thanks for the ideas. Ended up adding some debugging code to unicorn that lead me to the culprit of the problem. It turned out being a bug in the HttpParser. Thank you Augusto, Your explanation was good so I'll just use it as a commit

Re: Read error: #TypeError: can't modify frozen string raised from HttpParser

2010-06-07 Thread Augusto Becciu
That looks perfect. Thanks Eric! On Mon, Jun 7, 2010 at 11:45 PM, Eric Wong normalper...@yhbt.net wrote: Augusto Becciu augu...@jadedpixel.com wrote: Hi Eric, Thanks for the ideas. Ended up adding some debugging code to unicorn that lead me to the culprit of the problem. It turned out

Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
Hi, HTML attachments are wasteful and thus rejected from the mailing list. On the other hand, it actually helps to include the patch itself (inline) so it's readable without a (human) context switch :) - Forwarded message from Pierre Baillet o...@fotonauts.com - Subject: Fwd: Support

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Eric Wong
Pierre Baillet wrote: We use Unicorn at fotopedia since yesterday in production. We switched from Passenger due to an issue in the way Passenger was handling some error in our main application. Things run very well on Unicorn. We have also modified Unicorn to handle a soft timeout for its

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Pierre Baillet
Eric, On Thu, Jun 3, 2010 at 8:22 PM, Eric Wong normalper...@yhbt.net wrote: This would be doable as middleware, too, and if done carefully, even safely reusable in multi-threaded web servers.  This would be a good addition to rack-contrib, even.  I might consider doing it myself if I had

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Pierre Baillet
Ohai, On Thu, Jun 3, 2010 at 9:38 PM, Chris Wanstrath ch...@ozmm.org wrote: On Thu, Jun 3, 2010 at 11:47 AM, Eric Wong normalper...@yhbt.net wrote: Actually, internally, Unicorn only knows about Rack and wraps older CGI-based Rails using the Unicorn::App::OldRails application (via

Re: Fwd: Support for Soft Timeout in Unicorn

2010-06-03 Thread Chris Wanstrath
On Thu, Jun 3, 2010 at 11:47 AM, Eric Wong normalper...@yhbt.net wrote: Actually, internally, Unicorn only knows about Rack and wraps older CGI-based Rails using the Unicorn::App::OldRails application (via Unicorn::CGIWrapper). unicorn_rails basically wraps up the following config for you,

Forking off the unicorn master process to create a background worker

2010-05-25 Thread Russell Branca
Hello, I'm trying to find an efficient way to create a new instance of a rails application to perform some background tasks without having to load up the entire rails stack every time, so I figured forking off the master process would be a good way to go. Now I can easily just increment the

Re: [ANN] golden_brindle

2010-05-24 Thread Alexander Simonov
The main idea give automatization tool for manage(start/stop/restart) a lot of unicorn instances. On May 24, 2010, at 9:10 PM, Wincent Colaiuta wrote: El 24/05/2010, a las 19:59, Alexander Simonov escribió: Golden Brindle - Unicorn HTTP server clustering tool like mongrel_cluster for

Re: Some issues in the HTTP parser (and suggestions)

2010-05-08 Thread Iñaki Baz Castillo
2010/5/7 Eric Wong normalper...@yhbt.net: Underscore isn't valid for hostnames, but it is allowed in domain names and most DNS servers will resolve them.  I've personally seen websites with underscores in their domain names in the wild[1]. Hi Eric, could you point me to the spec stating that

Re: Some issues in the HTTP parser (and suggestions)

2010-05-08 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: 2010/5/7 Eric Wong normalper...@yhbt.net: Underscore isn't valid for hostnames, but it is allowed in domain names and most DNS servers will resolve them.  I've personally seen websites with underscores in their domain names in the wild[1]. Hi

testing, ignore

2010-05-08 Thread Eric Wong
(somebody had a stupid autoreply on, I subscribed them) ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

bizarre autoresponder [was: Re: testing, ignore]

2010-05-08 Thread Eric Wong
Somebody used a support address that automatically entered mailing list posts into a ticketing system. I don't believe it was spam (it wasn't obviously trying to anything, there were no embedded images, it was in correct English). Nevertheless, they've been unsubscribed now. For the record,

Re: [PATCH] Add worker interrogation via INFO signals

2010-05-07 Thread Joel Watson
Yep, I got your original reply. I've been really busy since my initial post and haven't had much time to take a close look at your proposed middleware. I agree with you on it being unnecessary overhead for every request considering it won't be used all that often, so being able to include it as

Some issues in the HTTP parser (and suggestions)

2010-05-07 Thread Iñaki Baz Castillo
Hi, by inspecting the Ragel grammar of the HTTP parser (coming from Mongrel) I've realized of some possible issues and bugs: hostname = (alnum | - | . | _)+; - It doesn't allow IPv6. This is important IMHO. - It allows _ which is an invalid symbol (not valid for a domain). I suggest:

Sandbox (bundler+isolate) tips RDoc added

2010-05-07 Thread Eric Wong
http://unicorn.bogomips.org/Sandbox.html Please send patches/pull requests for any more tips you'd like to share, including for similar tools. Thanks to Jamie Wilkinson for the Bundler tips! -- Eric Wong ___ Unicorn mailing list -

Re: Garbage collection outside of request cycle?

2010-05-06 Thread Eric Wong
Luke Melia l...@lukemelia.com wrote: I've been analyzing our Unicorn-powered Rails app's performance, and have found that garbage collection is a big factor in slow requests. In the interest of avoiding those performance hits while handling requests, would it be possible to have a unicorn

Re: [ANN] unicorn 0.99.0 - simplicity wins

2010-05-06 Thread Eric Wong
Jamie Wilkinson ja...@internetfamo.us wrote: Re: bundling/isolating: If it is not possible to only have one Rack version installed globally, then they should either use Isolate or Bundler and install a private version of Unicorn along with their preferred version of Rack. Users who

Re: Garbage collection outside of request cycle?

2010-05-06 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: I guess I should throw this into the examples section Added a few more comments, but the code is still the same: http://unicorn.bogomips.org/examples/big_app_gc.rb http://git.bogomips.org/cgit/unicorn.git/commit/?id=510a48dafc5f7e2cb618d785885395c79570821c

new business mailing list

2010-05-05 Thread Levi phosphorylate
Here's a list package on sale this week only: Consumer List Package Credit Inquiries Database - 1 million Full Data Records all with emails American Consumer Database - 1,300,000 records all with emails American Homeowners - 1 million Full Data Records all with emails All complete lists above:

[ANN] unicorn 0.98.0 - Rack HTTP server for fast clients and Unix

2010-05-04 Thread Eric Wong
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

Re: funky process tree + stillborn masters

2010-04-28 Thread Eric Wong
Jamie Wilkinson ja...@tramchase.com wrote: Update from the trenches: I've traced this down to the newrelic_rpm agent Noticed this is not the 1st time this has been brought up, since newrelic spins up the stats collector in its own thread. Attempted the (old) logger mutex monkeypatch

Re: [PATCH] Add worker interrogation via INFO signals

2010-04-27 Thread Eric Wong
Joel Watson j...@watsonian.net wrote: Hey all, Below is a proposed patch I worked on over the weekend. Just adding a note here to mention that I'm currently not a subscriber to the mailing list, so please CC me on any replies. Let me know what you all think. This change was made on a local

Re: funky process tree + stillborn masters

2010-04-27 Thread Jamie Wilkinson
Update from the trenches: I've traced this down to the newrelic_rpm agent Noticed this is not the 1st time this has been brought up, since newrelic spins up the stats collector in its own thread. Attempted the (old) logger mutex monkeypatch mentioned in the unicorn docs without luck. Noodled

Shared memory between workers

2010-04-26 Thread Iñaki Baz Castillo
Hi, I plan to build a SIP TCP server (no UDP) based on Unicorn/Rainbows! HTTP server. The main different between a SIP server and HTTP server are: - SIP uses persistent TCP connections, so I should use Rainbows!. - For a SIP server it's not valid a simple request-response model. Different workers

Re: Shared memory between workers

2010-04-26 Thread Iñaki Baz Castillo
2010/4/26 Eric Wong normalper...@yhbt.net: Hi Iñaki, First off I wouldn't call Memcached slow...  How many requests do you need out of it and what kind of access patterns are you doing? Well, I want to do as efficient as possible. This is not the main purpose (if so I wouldn't use Ruby) but

[PATCH] Add worker interrogation via INFO signals

2010-04-26 Thread Joel Watson
Hey all, Below is a proposed patch I worked on over the weekend. Just adding a note here to mention that I'm currently not a subscriber to the mailing list, so please CC me on any replies. Let me know what you all think. This change was made on a local topic branch off of the maint branch. If

Re: funky process tree + stillborn masters

2010-04-19 Thread Eric Wong
Hi Jamie, any more news on this issue? I plan on doing a minor release later today or tomorrow with a few minor bug fixes in unicorn.git -- Eric Wong ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org

Work From Home!

2010-04-18 Thread JJames
Hello, We are going to show you the fastest way to make money at home! Can you picture yourself working from home and and filling out short and simple online forms for fast and easy cash? Getting paid for the easiest work imaginable? What's more, what if you could do this all while

Using HTTP/1.1 and permanent connections

2010-04-16 Thread Iñaki Baz Castillo
Hi, I know that Unicorn forces TCP disconnection as it's explained at the top of lib/unicorn/http_response.rb: # A design decision was made to force the client to not pipeline or # keepalive requests. HTTP/1.1 pipelining really kills the # performance due to how it has to be handled and

Re: Using HTTP/1.1 and permanent connections

2010-04-16 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: Hi, I know that Unicorn forces TCP disconnection as it's explained at the top of lib/unicorn/http_response.rb: # A design decision was made to force the client to not pipeline or # keepalive requests. HTTP/1.1 pipelining really kills the #

Explanation of how Unicorn returns error code when daemonized and cannot bind the address

2010-04-15 Thread Iñaki Baz Castillo
Hi Eric, as you remember you did an improvement in Unicorn in order it to return an error code (maybe 1) when running daemonized and trying to bind in a wrong address (i.e. a non local address). As far as I remember you implemented a pipe between daemon and master process, so if the master

Re: Explanation of how Unicorn returns error code when daemonized and cannot bind the address

2010-04-15 Thread Iñaki Baz Castillo
2010/4/15 Iñaki Baz Castillo i...@aliax.net: Hi Eric, as you remember you did an improvement in Unicorn in order it to return an error code (maybe 1) when running daemonized and trying to bind in a wrong address (i.e. a non local address). As far as I remember you implemented a pipe between

Re: funky process tree + stillborn masters

2010-04-11 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Do the following two patches help? I've also pushed out a few cleanups to unicorn.git and also put up a prerelease gem at: Hi Jamie, did you get a chance to try this? -- Eric Wong ___ Unicorn mailing list -

funky process tree + stillborn masters

2010-04-08 Thread Jamie Wilkinson
Since upgrading bundler (but applying the RUBYOPT path fixes) we've started experiencing intermittent, difficult-to-isolate USR2 restart failures. After a USR2 signal our process tree winds up looking like this, with several master-esque processes listed as children (but without the worker[N]

bundler's RUBYOPT prefixing has been fixed

2010-04-07 Thread Jamie Wilkinson
I filed a bug yesterday with the bundler crew after running into the (crippling) bundler+unicorn+capistrano RUBYOPT-accumulates-over-time issue discussed on this list previously: http://www.mail-archive.com/mongrel-unicorn@rubyforge.org/msg00273.html ...and am happy to report it has already

Re: Nginx Socket with Multiple Unicorn instances

2010-04-05 Thread William N Prater III
On Apr 5, 2010, at 1:34 PM, Iñaki Baz Castillo wrote: 2010/4/5 William N Prater III w...@thesuperformula.com: Hello, Is it possible to run one Nginx socket that is used by multiple master Unicorn processes for different applications? Or does one need to setup a new upstream for each?

Re: Nginx Socket with Multiple Unicorn instances

2010-04-05 Thread Eric Wong
William N Prater III w...@thesuperformula.com wrote: Hello, Is it possible to run one Nginx socket that is used by multiple master Unicorn processes for different applications? Or does one need to setup a new upstream for each? Hi William, Nginx socket? It's ambiguous what you mean by

Re: Unicorn 0.97.0 old master is never dying

2010-03-19 Thread Eric Wong
gha...@gmail.com wrote: On Thu, Mar 18, 2010 at 1:40 AM, Eric Wong normalper...@yhbt.net wrote: gha...@gmail.com wrote: I upgraded to Unicorn 0.97.0 from 0.96.1. Unicorn starts fine, but sending a USR2 to the 0.97.0 master launches a new master and all the workers, but never kills the old

Re: Unicorn 0.97.0 old master is never dying

2010-03-18 Thread ghazel
On Thu, Mar 18, 2010 at 1:40 AM, Eric Wong normalper...@yhbt.net wrote: gha...@gmail.com wrote: I upgraded to Unicorn 0.97.0 from 0.96.1. Unicorn starts fine, but sending a USR2 to the 0.97.0 master launches a new master and all the workers, but never kills the old master. The new workers

Issue with unicorn not starting via bluepill?

2010-03-18 Thread James Cox
trying to start my unicorn via bluepill, and running into this : Starting unicorn...\n{:unicorn_options= {:config_file=/home/configs/unicorn/marketing.rb, :listeners=[]}, :daemonize=true, :app=

Newbie problems

2010-03-16 Thread Matt Davies
Hello everyone I'm trying out Unicorn at the moment, I've used nginx and passenger extensively for some time now but I fancy a change :-). Here's the specs nginx version: nginx/0.7.65 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0] unicorn (0.97.0) rails 2.3.5 bundler 0.9.7 When I

Re: Newbie problems

2010-03-16 Thread Eric Wong
Matt Davies mjdav...@glam.ac.uk wrote: Hello everyone I'm trying out Unicorn at the moment, I've used nginx and passenger extensively for some time now but I fancy a change :-). Here's the specs nginx version: nginx/0.7.65 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10.2.0]

TCP reset and socket buffer draining responsibility

2010-03-15 Thread John Fieber
I have a bug where some Rack middleware that determines certain PUT/POST error responses without needing to read the request body. On Linux, this causes a TCP reset when Unicorn closes the socket with unread data in the input buffer. The reset preempts the delivery written but still buffered

unicorn segfaulting on Array.shuffle under ruby 1.9.1

2010-03-14 Thread Bharanee Rathna
Hi Guys, http://gist.github.com/332266 results in a segfault when run under unicorn. It seems to be fine with webrick or thin. Any ideas ? - bharanee ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org

Re: unicorn segfaulting on Array.shuffle under ruby 1.9.1

2010-03-14 Thread Eric Wong
Bharanee Rathna deepfr...@gmail.com wrote: Hi Guys, http://gist.github.com/332266 results in a segfault when run under unicorn. It seems to be fine with webrick or thin. Any ideas ? Hi Bharanee, it looks like the random number generator needs to be reinitialized after fork()... Try

Re: Monit configuration

2010-03-08 Thread Iñaki Baz Castillo
El Lunes 08 Marzo 2010, Florian Munz escribió: Hi, is anyone using monit together with Unicorn? I'd like to monitor the Unicorn child processes for memory growth. But monit needs a pid file for each process Why do you say that? I use monit to monitorize some forking servers and it

Re: Monit configuration

2010-03-08 Thread Florian Munz
Iñaki Baz Castillo i...@aliax.net wrote: Why do you say that? I use monit to monitorize some forking servers and it takes into accoutn of the child processes. The trick is telling monit to inspect the master process pid (that present unde /var/lib/SERVER.pid). Interesting. From the

Re: feature request - when_ready() hook

2010-03-08 Thread Suraj Kurapati
Hi Eric, On Mon, Nov 30, 2009 at 3:47 PM, Suraj Kurapati wrote: from Capistrano, I send SIGUSR2 to the existing Unicorn master (which will become the old Unicorn master), wait 90 seconds, and then send SIGQUIT to the old Unicorn master. [...] The only thing I'm worried about is that I'll have

Re: fork on client connection?

2010-02-25 Thread Suraj Kurapati
On Thu, Feb 25, 2010 at 11:37 AM, Joseph McDonald super...@gmail.com wrote: Would it be possible to configure unicorn to fork off your rack process when it gets a connection from a client as opposed to preforking  the workers? +1 ___ Unicorn mailing

Re: Launch Problem

2010-02-25 Thread Eric Wong
John Wulff johnwu...@gmail.com wrote: I'm experiencing this, can't seem to figure it out. Any help would be appreciated, thanks! $ unicorn_rails -c current/config/unicorn.rb -E production current/config/unicorn.rb:2:in `reload': uninitialized constant Unicorn::Configurator::YAML

Re: Launch Problem

2010-02-25 Thread John Wulff
Thanks for the gentle response Eric. I did indeed forget an include, so emberrasing. On Feb 25, 2010, at 11:45 PM, Eric Wong normalper...@yhbt.net wrote: John Wulff johnwu...@gmail.com wrote: I'm experiencing this, can't seem to figure it out. Any help would be appreciated, thanks! $

Re: Nginx Sock And Rails Envinroment Error

2010-02-18 Thread Alex Barlow
Cool, thanxs for your support and great software. I get about 40 requests per second on a 1.7 gb instance with the db on the same host. Thats awesome! Well, i think so.. Alex On 17 Feb 2010, at 23:35, Eric Wong wrote: Alex Barlow alexbarlo...@me.com wrote: Fixed it! Rails was

Rails 3 RAILS_ENV not defined by config/boot error

2010-02-18 Thread John Wulff
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

Re: Rails 3 RAILS_ENV not defined by config/boot error

2010-02-18 Thread Eric Wong
John Wulff johnwu...@gmail.com wrote: 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

Re: Rails 3 RAILS_ENV not defined by config/boot error

2010-02-18 Thread John-Paul Bader
Hey guys, actually I was running my new blog on rails3 and unicorn. I wanted to post about it here but didn't have the time yet. Indeed you just need unicorn - not unicorn rails. It seems to run all really well - I just need to modify my rc script a bit. Kind regards, John On 18.02.2010, at

Re: Rails 3 RAILS_ENV not defined by config/boot error

2010-02-18 Thread John Wulff
Fantastic! Thanks On Thu, Feb 18, 2010 at 11:13 AM, John-Paul Bader h...@h3q.com wrote: Hey guys, actually I was running my new blog on rails3 and unicorn. I wanted to post about it here but didn't have the time yet. Indeed you just need unicorn - not unicorn rails. It seems to run all

Capistrano and Unicorn

2010-02-18 Thread Steve Klabnik
Anyone have any tips for using Capistrano with unicorn? I'm following what GitHub did (http://github.com/blog/517-unicorn) , and for some reason, my old master isn't dying correctly. If I `pkill -9 unicorn_rails unicorn_rails` the new code shows up. I'm thinking the problem may be with how

Re: Capistrano and Unicorn

2010-02-18 Thread Michael Guterl
On Thu, Feb 18, 2010 at 3:41 PM, Steve Klabnik st...@steveklabnik.com wrote: Anyone have any tips for using Capistrano with unicorn? Here's the init script we're using to manage unicorn: http://gist.github.com/308216 some of it may be of use, I can't remember where we originally found it. We

Re: Nginx Sock And Rails Envinroment Error

2010-02-17 Thread Eric Wong
Alex Barlow alexbarlo...@me.com wrote: Fixed it! Rails was considering all requests to be local. As the request was coming from the local ip (from nginx i assume) Awesome. Good to know, I've been setting these headers for so long that it's become second nature and I've forgotten about side

Re: Nginx Sock And Rails Envinroment Error

2010-02-15 Thread Alex Barlow
Hi It goes client - TCP - Unicorn = quiet errors (good) client - TCP - nginx - TCP - Unicorn = quiet errors (good) client - TCP - nginx - Unix socket- Unicorn = verbose errors (bad) Strange i know! Ill try the socket in /tmp/ see what that does. The Nginx

Sonia added you as a friend on eYari

2010-02-15 Thread eYari
Hi, You are receiving this email because Sonia wants to tell you about this website which will analyze your horoscope and answer your Astrology questions free. Please click on the link below or copy and paste the URL into your browser:

Re: Nginx Sock And Rails Envinroment Error

2010-02-15 Thread Eric Wong
Alex Barlow alexbarlo...@me.com wrote: Hi It goes client - TCP - Unicorn = quiet errors (good) client - TCP - nginx - TCP - Unicorn = quiet errors (good) client - TCP - nginx - Unix socket- Unicorn = verbose errors (bad) Strange i know! Hi Alex, My

Re: Nginx Sock And Rails Envinroment Error

2010-02-15 Thread Alex Barlow
Fixed it! Rails was considering all requests to be local. As the request was coming from the local ip (from nginx i assume) i put these headers in nginx proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header

Re: Nginx Sock And Rails Envinroment Error

2010-02-14 Thread Eric Wong
Alex Barlow alexbarlo...@me.com wrote: Hi There, Im running an amazon instance with nginx proxying to a unicorn sock. For some reason, even though i specify the production environment, when being visited by nginx, the site shows errors in development form. Interestingly, when running

[ANN] unicorn 0.96.1 - leak fix for Rainbows!/Zbatery

2010-02-13 Thread Eric Wong
First off, this memory leak doesn't affect Unicorn itself at all (but it doesn't hurt, either). Unicorn itself always allocates the HttpParser once and always reuses it in every sequential request. This leak only affects applications that repeatedly allocate a new HTTP parser. Thus this bug

Darya Serdobintseva telah menambah awak sebagai kawan di tapak web VK.com

2010-02-13 Thread VK
Salam mu alaikum, Darya Serdobintseva telah menambah awak sebagai kawan di tapak web VK.com Awak boleh log in dan lihat laman kawan awak menggunakan email awak dan secara automatik membuat kata laluan: O8Sb2Qkl VK.com adalah laman web yang membantu dozenan jutaan orang mencari kawan lama

Confused classes

2010-02-06 Thread Warren Konkel
I switched from mod_passenger to unicorn on a fairly high traffic site and ran into a strange problem that forced me to move back to mod_passenger... it seems as if classes would sometimes get mixed up with each other. If I had two Rails models: class Foo ActiveRecord::Base; end class Bar

Re: Confused classes

2010-02-06 Thread Iñaki Baz Castillo
El Sábado, 6 de Febrero de 2010, Warren Konkel escribió: I switched from mod_passenger to unicorn on a fairly high traffic site and ran into a strange problem that forced me to move back to mod_passenger... it seems as if classes would sometimes get mixed up with each other. If I had two

Re: Confused classes

2010-02-06 Thread Eric Wong
Iñaki Baz Castillo i...@aliax.net wrote: El Sábado, 6 de Febrero de 2010, Warren Konkel escribió: Could it be that class attributes are somehow being co-mingled when unicorn is starting up under high concurrency? Perhaps a mutex is missing somewhere? IMHO all your Unicorn workers are

Re: Unicorn Tuning

2010-02-05 Thread Eric Wong
Andres Rojas aro...@oogalabs.com wrote: Hi all, we've recently migrated from a mongrel setup to a Unicorn setup on most of our projects and we're trying to figure out how best to get stats about queued requests so we can tune accordingly. Our old setup: Hardware load balancer - Virtual

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
Hrm its getting weirder and weirder. I started unicorn_rails now manually in the app root which is now running on rails 2.3.3 again: sudo unicorn_rails -E production -d -c /usr/local/etc/unicorn.rb Now first of all it throws lots of Exceptions it couldn't find several (important) gems and

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
One more, I reproduced the upgrading on my staging server which was still at the old state in terms of software. I started by upgrading ruby from ruby+nopthreads-1.8.7.160_5,1 - ruby+nopthreads-1.8.7.248,1 ruby18-iconv-1.8.7.160,1 - ruby18-iconv-1.8.7.248,1 And voilá -

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
Hey again, I will try to compile build the svn revision and let you know. I have to do some other work before that so I will report back in the evening (CEST / BERLIN) Thank you for helping out, kind regards, John On 04.02.2010, at 11:11, Eric Wong wrote: John-Paul Bader h...@h3q.com

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
Hey, i checked out the revision 26253 built it and ran it and it seems to work again but: I didn't build it via FreeBSD ports so there might be a difference in configure / build options and I checked out the revision which included the change you suspect for causing the issue so I'm not sure

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
To counter check I just built the latest ruby from source as well and the issue reappeared - so it happened between 26253 and tag/248 Kind regards, John On 04.02.2010, at 15:22, John-Paul Bader wrote: Hey, i checked out the revision 26253 built it and ran it and it seems to work again

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: To counter check I just built the latest ruby from source as well and the issue reappeared - so it happened between 26253 and tag/248 Keep in mind that 1.8.7-p248 is from the ruby_1_8_7 branch, not the ruby_1_8 branch which contains r26253. -- Eric Wong

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
Hmm I see, kind of ;) Do you have a clue what is going wrong or any other things I could check out ? Kind regards, John On 04.02.2010, at 20:42, Eric Wong wrote: John-Paul Bader h...@h3q.com wrote: To counter check I just built the latest ruby from source as well and the issue reappeared -

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@berlin.ccc.de wrote: Hmm I see, kind of ;) Do you have a clue what is going wrong or any other things I could check out ? Can you just backport the r26253 change into your 1.8.7-p248 installation? (see the patch in the previous email). I'm fairly certain that's it

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
I can of course, however I'd rather have an off the shelf ruby version out of the ports tree. But if there is currently no other way to fix this issue I will of course. I wonder if this issue always appears on ruby1.9. I will check that out too. Kind regards, John On 04.02.2010, at 21:14,

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
Sorry one more: Is this something you will address sooner or later or is this a ruby on bsd bug? Kind regards, John ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
One more ;) Backporting on p248 fixed it. Thanks, John On 04.02.2010, at 21:48, John-Paul Bader wrote: Sorry one more: Is this something you will address sooner or later or is this a ruby on bsd bug? Kind regards, John ___ Unicorn mailing

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: Sorry one more: Is this something you will address sooner or later or is this a ruby on bsd bug? This bug actually affects anything that writes to sockets/pipes on BSD, not just Unicorn. So the patch should be backported to 1.8.7 upstream. -- Eric Wong

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: But if there is currently no other way to fix this issue I will of course. I wonder if this issue always appears on ruby1.9. I will check that out too. The original problem doesn't affect 1.9 at all, 1.9 doesn't mix stdio userspace wrapers with low-level

Re: upstream timed out after upgrades

2010-02-04 Thread Eric Wong
John-Paul Bader h...@h3q.com wrote: Hmm, my C skills are really weak but this patch suppresses any IO errors right? At least on BSD? Can you explain what exactly it is doing? Just want to understand entirely. From the beginning (a bit long, feel free to ask me for more clarification, too

Re: upstream timed out after upgrades

2010-02-04 Thread John-Paul Bader
True, and there are already a couple issues filed concerning this. Kind regards, John On 04.02.2010, at 22:25, Eric Wong wrote: John-Paul Bader h...@h3q.com wrote: Sorry one more: Is this something you will address sooner or later or is this a ruby on bsd bug? This bug actually affects

Unicorn Tuning

2010-02-04 Thread Andres Rojas
Hi all, we've recently migrated from a mongrel setup to a Unicorn setup on most of our projects and we're trying to figure out how best to get stats about queued requests so we can tune accordingly. Our old setup: Hardware load balancer - Virtual Machine - Nginx - HAProxy -

Get to the Top of Google: 10 Free SEO Tools (free webinar)

2010-02-02 Thread J . McDonald
Hi, If you're going to keep just one New Year's Resolution, that one should be to get your business SEO fit. (SEO = Search Engine Optimization) Getting physically fit means more exercise and a better diet, getting SEO fit for Google, Yahoo, and Bing means more time identifying your best

About new commit xpath methods can return things other than nodesets

2010-01-22 Thread Iñaki Baz Castillo
Hi, I'm a bit afraid about this recet commit: http://github.com/tenderlove/nokogiri/commit/45c6d1d4902e100fecc3741985870aa4edda9a25 xpath methods can return things other than nodesets In my case I use Nokogiri in a server application which receives Xpath strings from remote clients and

Re: About new commit xpath methods can return things other than nodesets

2010-01-22 Thread Iñaki Baz Castillo
Sorry, wrong list. -- Iñaki Baz Castillo i...@aliax.net ___ Unicorn mailing list - mongrel-unicorn@rubyforge.org http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying

Re: Getting a strange cookie error

2010-01-22 Thread Travis Bell
Just a follow up, it looks like it was rack 1.1.0 causing the issues. I uninstalled it, and am now using rack 1.0.1 and the error has gone away. Why it worked with Thin + Rack 1.1.0 and not Unicorn, still not sure. Cheers guys. -- Travis Bell http://www.twitter.com/travisbell

Re: Getting a strange cookie error

2010-01-22 Thread Eric Wong
Travis Bell tra...@meticulo.com wrote: Just a follow up, it looks like it was rack 1.1.0 causing the issues. I uninstalled it, and am now using rack 1.0.1 and the error has gone away. Why it worked with Thin + Rack 1.1.0 and not Unicorn, still not sure. Sorry, I keep getting

Re: Getting a strange cookie error

2010-01-22 Thread Eric Wong
Eric Wong normalper...@yhbt.net wrote: Travis Bell tra...@meticulo.com wrote: Just a follow up, it looks like it was rack 1.1.0 causing the issues. I uninstalled it, and am now using rack 1.0.1 and the error has gone away. Why it worked with Thin + Rack 1.1.0 and not Unicorn, still not

Re: Getting a strange cookie error

2010-01-22 Thread Travis Bell
Hi Eric, Thanks for looking into this. I'll strip down my app and do a similar Hello World version and see how I make out. I will give that method of loading Thin a try too. Report back when I know more. Thanks! -- Travis Bell On 2010-01-22, at 1:06 PM, Travis Bell wrote: Just a

Re: Suggestion for reload action (USR2)

2010-01-21 Thread Iñaki Baz Castillo
El Miércoles, 20 de Enero de 2010, Eric Wong escribió: Iñaki Baz Castillo i...@aliax.net wrote: El Miércoles, 20 de Enero de 2010, Eric Wong escribió: While the patch was not needed for this case, inline patches are strongly preferred here. Inline patches are far easier to read,

<    5   6   7   8   9   10   11   >